Grocery management CLI application
Clone this repo and install the package by running:
pip install -r requirements/pkg.txt
pip install .
Installing the package makes a shell command
To see the available options, run:
The path to the grocery list file to use can be provided
by setting the environment variable
Two storage backends are supported:
todo.txt format (can be synced to mobile with e.g. SimpleTask)
It is possible to convert between the formats with
groceries export > file.txt and
groceries import file.txt.
The format is detected based on the scheme of the URI provided. Examples of allowed formats:
The default priority levels are: Today, Soon, Upcoming, Maybe later.
This can be changed by setting the environment variable
to a comma-separated list of the desired levels, e.g.:
In a Python ≥ 3.8 virtual environment, run:
To upgrade all dependencies, run:
To run all tests and linter checks, run:
To run the REST API server in development mode,
set the FLASK_APP and FLASK_ENV environment variables as follows
.envrc if using direnv):
Then start the development server with: