Skip to main content

Nutrilog

Write explicit nutrient data to Google Health.

nutrilog auth login
nutrilog log "Bean salad" --grams 350 --kcal 420 --protein 25 --fat 12 --carbs 48
nutrilog log --input meal.json
cat meal.json | nutrilog log --input -
nutrilog history
nutrilog duplicate POINT_ID --protein 0
nutrilog delete POINT_ID

JSON input is a flat item carrying name, meal_type, time, optional grams, and nutrient fields. Every new entry needs kcal, protein, fat, and carbs; explicit zero is a valid value. Use --nutrient NAME=GRAMS for another Google Health nutrient. Explicit flags override the input. grams is written to Google as a gram serving and survives reads. When it is absent, the shared format treats the nutrients as a 100 g fallback.

duplicate always keeps the source and accepts the same overrides as log. To correct an entry, duplicate it with the correction, inspect the result, then delete the source explicitly. JSON overrides may use null to remove a value.

Missing legacy Google core macros render as zero in Nutrilog output. Other unknown values stay null and are omitted from writes. --dry-run --json shows the record without authenticating or writing.

nutrilog history --json reads today's food entries. Daily totals sum reported values and ignore null; a total is null only when no entry reports it.

OAuth tokens remain in ~/.config/nutrilog/tokens.json with mode 0600.

Release files for nutrilog 0.4.0

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

Source distribution (sdist)

Source distribution for nutrilog 0.4.0
File Size Uploaded
nutrilog-0.4.0.tar.gz 45.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nutrilog 0.4.0
File Interpreter ABI Platform
nutrilog-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 62.0 kB

Release files / nutrilog-0.4.0.tar.gz

Download URL nutrilog-0.4.0.tar.gz
Size 45.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7536138ea1d3f29ec6234e5d9a908bb082b65ef7000a6495d2707e3638dd47fa
BLAKE2b-256 checksum
How to use checksums
d90425245638c016b05f28c94b1d7050cbc9b2ddb9cfaa1572415aefd26b2ac8
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 22, 2026.

Transparency log

Release files / nutrilog-0.4.0-py3-none-any.whl

Download URL nutrilog-0.4.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb4d3f7b4d052b4d19a2ff3dc16a51c3d446e5cf8a740ce3d9cb074ada096a0f
BLAKE2b-256 checksum
How to use checksums
783cba8664d9e156ae17ca04bda3007f04fd5a35debce574d498df3d9cb47dbb
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 22, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.1

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

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