Installation¶
powermonitor is published as the powermonitor Python package and provides the powermonitor command.
Requirements¶
- Operating system: macOS 12.0+ Monterey or later
- Python: 3.13+
- Permissions: no root privileges required
- Storage: local SQLite database under
~/.powermonitor/by default
Note
powermonitor is macOS-only because it reads Mac power and battery data through IOKit/SMC or ioreg.
Recommended: install with uv¶
Install the command as an isolated tool:
Upgrade later with:
Run without installing¶
Use uvx for one-off runs:
This is the fastest way to try the real-time MacBook power monitor without changing a project environment.
Install with pipx¶
Upgrade later with:
Install with pip¶
Prefer uv tool install or pipx install when you want to keep the CLI isolated from project dependencies.
Verify the command¶
powermonitor without a subcommand launches the Textual TUI. On non-macOS platforms the command exits because the collector depends on macOS power APIs.
Local development install¶
From a repository checkout:
git clone https://github.com/narumiruna/power-monitor.git
cd power-monitor
uv sync
uv run powermonitor --help
Build the package locally with:
For documentation work, install the docs dependency group: