Skip to main content

gopromotional-mugday

Log coffee, tea and other drinks with typical caffeine values, compare the day's total with a limit (400 mg adult, 200 mg in pregnancy), estimate how much caffeine is still in your system, find out when it should drop below a sleep-friendly level, and track how often you used a reusable cup. Typical values only; not medical advice.

  • 16 drinks with typical caffeine (espresso 63 mg, filter coffee 140 mg, tea 75 mg, cola 40 mg...), or pass your own mg.
  • Daily total against a limit: 400 mg (adult) or 200 mg (pregnancy), or your own.
  • Caffeine in your system using a 5-hour half-life (configurable).
  • Sleep-ready time: when the level should fall below a threshold (default 50 mg), rounded up to 15 minutes.
  • Reusable-cup stats for the last 7 days.
  • Plain JSON log shared by the npm, PyPI, crates.io and RubyGems versions.

Install

pip install gopromotional-mugday
# or, for the CLI only:
pipx install gopromotional-mugday

Command line

$ gopromotional-mugday drinks
espresso               63 mg  (30 ml)
double-espresso       126 mg  (60 ml)
americano             126 mg  (350 ml)
latte                 126 mg  (350 ml)
cappuccino            126 mg  (350 ml)
...

$ gopromotional-mugday add flat-white --time 2026-10-19T08:00 --reusable
Logged flat-white (126 mg, reusable cup). Today: 126/400 mg.

$ gopromotional-mugday add tea --time 2026-10-19T11:00 --reusable
Logged tea (75 mg, reusable cup). Today: 201/400 mg.

$ gopromotional-mugday add filter-coffee --time 2026-10-19T14:00
Logged filter-coffee (140 mg). Today: 341/400 mg.

$ gopromotional-mugday today --date 2026-10-19
2026-10-19: 341 mg from 3 drink(s); 59 mg left of 400 mg.

$ gopromotional-mugday in-system --at 2026-10-19T22:00
About 81 mg of caffeine still in your system at 2026-10-19T22:00 (half-life 5 h).

$ gopromotional-mugday sleep-ready
Below 50 mg from about 2026-10-20 01:30.

$ gopromotional-mugday cups --date 2026-10-19
Last 7 days: 2 reusable, 1 disposable (67% reusable).

Every command accepts --json for machine-readable output. Run gopromotional-mugday --help for all options.

Data is kept in ~/.gopromotional-mugday.json (set GOPROMOTIONAL_MUGDAY_FILE or pass --file to use another file). The JSON format is the same across the npm, PyPI, crates.io and RubyGems versions, so you can switch tools without losing your log.

Library

from gopromotional_mugday import CaffeineLog

log = CaffeineLog()                             # limit 400 mg, half-life 5 h
log.add("flat-white", time="2026-10-19T08:00", reusable=True)
log.add("filter-coffee", time="2026-10-19T14:00")
log.day("2026-10-19")["total"]                  # 266
log.in_system("2026-10-19T22:00")               # 64
log.sleep_ready(50)                             # '2026-10-20T00:00'

Pure Python, no dependencies, Python 3.9+.

Metadata

Release files for gopromotional-mugday 1.0.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 gopromotional-mugday 1.0.1
File Size Uploaded Provenance Actions
gopromotional_mugday-1.0.1.tar.gz 9.6 kB Without provenance Details for gopromotional_mugday-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gopromotional-mugday 1.0.1
File Interpreter ABI Platform Actions
gopromotional_mugday-1.0.1-py3-none-any.whl Python 3 none any Details for gopromotional_mugday-1.0.1-py3-none-any.whl

Total release size: 18.6 kB

Release files / gopromotional_mugday-1.0.1.tar.gz

Download URL gopromotional_mugday-1.0.1.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a5e0a9d1d5348959df05eba15e44910a329c30ed582d44cbad85dfafddd20bcf
BLAKE2b-256 checksum
How to use checksums
4cd2ac581d93c649b6fc95584ccf4fd3b33e5c48bb457421a56f3b3b3dd1d228
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / gopromotional_mugday-1.0.1-py3-none-any.whl

Download URL gopromotional_mugday-1.0.1-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
122cb9dd96b93e467a4d222ff7f2c6201623d273f83ace61ecafdea6654d68f9
BLAKE2b-256 checksum
How to use checksums
d778fa690aa5a46fe91c613bb7ccfb67d352a66c6de09ad5d6cb74e0aa435306
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for gopromotional-mugday 1.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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