Skip to main content

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 add https://www.coles.com.au/product/example-1047
pantry add usda:2476857
pantry add off:0123456789012

Manual input is flat JSON. Nutrients describe the whole item when grams is present; without it they describe 100 g:

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. JSON items can be piped directly to Recipes or Nutrilog.

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 ruff check src

Release files for mealtime-pantry 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mealtime-pantry 0.2.1
File Size Uploaded
mealtime_pantry-0.2.1.tar.gz 108.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mealtime-pantry 0.2.1
File Interpreter ABI Platform
mealtime_pantry-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 207.6 kB

Release files / mealtime_pantry-0.2.1.tar.gz

Download URL mealtime_pantry-0.2.1.tar.gz
Size 108.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7fe50d4880d7913b29e28f97276aa44d741f0d43529e9e91b739809421d926c3
BLAKE2b-256 checksum
How to use checksums
9cdfb4334fbb93e220b545487078e8ea357aa7c66a242323454ab249d7315d99
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 23, 2026.

Transparency log

Release files / mealtime_pantry-0.2.1-py3-none-any.whl

Download URL mealtime_pantry-0.2.1-py3-none-any.whl
Size 99.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5839d22330af55289e21c6b7b6d16c9d7970a16cae937bac9bca8e8b4d49ae4e
BLAKE2b-256 checksum
How to use checksums
f3ba084cfe06086998ef1598578c38bd7a55181255aa62e93544185fdad1460d
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 23, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page