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 history yesterday
nutrilog history 2026-08-17 2026-08-23
nutrilog history '2026-08-22T20:00:00+10:00' '2026-08-23T01:00:00+10:00'
nutrilog duplicate POINT_ID --protein 0
nutrilog delete POINT_ID

JSON input is a flat item carrying name, meal_type, optional time, optional grams, and nutrient fields. Omit time to use the device's current local time. 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 reads today by default. Pass one date for that day or two dates for an inclusive range; dates may be ISO dates, today, or yesterday. Dates become UTC bounds using the device's local timezone. Offset-aware ISO datetimes are exact bounds; the end datetime is exclusive. Entries are then compared only in UTC. 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.2

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.2
File Size Uploaded
nutrilog-0.4.2.tar.gz 46.1 kB Details

Built distribution (wheel)

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

Total release size: 64.4 kB

Release files / nutrilog-0.4.2.tar.gz

Download URL nutrilog-0.4.2.tar.gz
Size 46.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aba8c3bc7c041c6b0d33fc18d73755cfb601ecc3d0a433f3b016c08fe751eab6
BLAKE2b-256 checksum
How to use checksums
54f9f75e4e1c38cfc5b2a010f0aa560410fda0f3146a2fd1a5412c6c11f55572
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 / nutrilog-0.4.2-py3-none-any.whl

Download URL nutrilog-0.4.2-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79e67e5f39b7c4fbe1ebd5274bac5f9504106e2c59a02c97ccd5eecbc7d02f04
BLAKE2b-256 checksum
How to use checksums
2dd4c4589a920d95c22b5ce0f6b497c9200b0da427c22a7d8eff28307d722e12
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.3

2 release files

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

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