Pantry
Pantry finds and stores food-product nutrition. It searches the local Coles and AFCD shards plus a user's own records, and can acquire one product from a Coles or Woolworths URL, USDA FoodData Central, or Open Food Facts.
pantry --json search "greek yoghurt"
pantry --json search "greek yoghurt" --remote
pantry --json lookup coles 1047
pantry --json lookup coles 1047 --grams 42 | recipes edit "Snack" --input -
pantry add https://www.coles.com.au/product/example-1047
pantry add usda:2476857
pantry add off:0123456789012
pantry delete manual sourdough
Nutrients describe the record's grams, which every record and result carries
and which is 100 unless --grams N asks for another weight. There is no pack
size or serving size. A per-100 mL panel is read as per 100 g and says so in
basis_note. An item is a flat record in the shared
item format,
so it pipes unchanged into Recipes, or into whatever tool records what you ate.
Energy is kcal and every other nutrient is grams. A panel printing
kilojoules is converted where it is read, so no record holds a kj.
Manual input is flat JSON, restated to 100 g before it is stored:
printf '%s\n' '{"grams":90,"kcal":335,"protein":45.6,"fat":7.9,"carbs":4.9}' |
pantry add --input - --id sourdough --name Sourdough
Unknown standard nutrients are null; zero is returned only when the source
explicitly reported zero.
pantry delete SOURCE ID removes a record from that store, and only from
there: a shipped shard row is refused, and deleting a correction leaves the
row it shadowed visible again.
The ignored data/coles.jsonl scrape is irreplaceable. No command writes to
package data. Acquired products go to $XDG_CONFIG_HOME/pantry or
~/.config/pantry.
Retailer requests are deliberately limited and paced. A block stops the run; there is no retry, proxy rotation, or CAPTCHA handling.
Development
uv run pytest -q
uv run --project importers/afcd pytest -q importers/afcd/tests
uv run ruff check src
uv run ruff format --check src
Release files for mealtime-pantry 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mealtime_pantry-0.3.4.tar.gz | 114.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mealtime_pantry-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 220.0 kB
Release files / mealtime_pantry-0.3.4.tar.gz
| Download URL | mealtime_pantry-0.3.4.tar.gz |
|---|---|
| Size | 114.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a695d5e5416d98313505a27fdab2fc117995634a493e74b3b10460022781fd2
|
|
BLAKE2b-256 checksum How to use checksums |
494b431b87f64a8f7ee9654db7bd73df9789cc804aef4540076b77682aa85400
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.
Transparency logRelease files / mealtime_pantry-0.3.4-py3-none-any.whl
| Download URL | mealtime_pantry-0.3.4-py3-none-any.whl |
|---|---|
| Size | 105.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06fee29501047e07d13a77b864393d212d23d8daf0c3237cbf29dd90f7e611e4
|
|
BLAKE2b-256 checksum How to use checksums |
daf2404d3c8a55bd41b55e71cdd81922be7393b8a2ce89daebc24beaa6b41c89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.
Transparency log