Skip to main content

como — track battery health from the command line

CI PyPI Version PyPI Python Versions License: MIT Ruff

como is a minimal CLI for recording and inspecting your laptop battery's health over time. It runs on macOS and Linux, stores everything locally in SQLite, and can schedule itself via launchd or cron.

Naming

Alessandro Volta — who invented the battery — grew up in Como, Italy. The name stuck.

Map of Como, Italy

Install

uv tool install como     # recommended
pipx install como        # alternative
pip install como         # also fine

Usage

Command Description
como / como save Record the current battery snapshot
como info Show current battery details (capacity, cycles, voltage, power, health)
como data [--since 30d] Show database stats and capacity/cycle history graphs. --since accepts d/w/m/y (e.g. 30d, 4w, 6m, 1y)
como export Write como.csv to the current directory
como import <file.csv> Import battery records from a CSV file
como automate Toggle scheduled saves (launchd on macOS, cron on Linux) at 8:00, 14:00, 20:00
como reset Delete the local database

Storage

Battery records live in a single SQLite database at:

  • macOS / Linux: $XDG_DATA_HOME/como/como.db (defaults to ~/.local/share/como/como.db)
  • Windows: %APPDATA%\como\como.db

The schema captures time, capacity, cycles, voltage_mv, power_mw, and is_charging for every save. Old zlib-compressed JSON databases from previous versions are migrated transparently on first run (a .bak of the original is kept alongside).

Development

Requires mise and uv.

mise install              # installs Python + uv per mise.toml
uv sync                   # creates .venv with all deps
uv run como info          # run the working-tree CLI (no install needed)
uv run pytest             # run tests with coverage
uv run pre-commit install # enable ruff + ty pre-commit hooks

License

MIT — see LICENSE.

Copyright (c) 2012-2026, Cecil Wöbker. Contact: me@cwoebker.com.

Release files for como 0.8.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 como 0.8.1
File Size Uploaded
como-0.8.1.tar.gz 19.1 kB Details

Built distribution (wheel)

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

Total release size: 31.8 kB

Release files / como-0.8.1.tar.gz

Download URL como-0.8.1.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
29b9ba6d71366bffbe410dadac28bb13d0eef966564543cbb34b9391fa4898bf
BLAKE2b-256 checksum
How to use checksums
2eb35a6793f93606465e9b1b381bea92ce77dddcde21d54ba0551d20845dc86b
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 15, 2026.

Transparency log

Release files / como-0.8.1-py3-none-any.whl

Download URL como-0.8.1-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ad726fdc71901a1469e90fe94ec95ed71517c196db504f09cf9df5f38ceb300
BLAKE2b-256 checksum
How to use checksums
2ded89516f4219b61d4dd970fed57ee31301e220c66c885afad6f15b655bbac1
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 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.8.1 This release

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

1 release file

0.5.1

1 release file

0.4.7

1 release file

0.4.6

1 release file

0.4.5

1 release file

0.4.0

0.3.1

0.3

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