This release is a pre-release and may not be stable for production use.
bike-power-model
A cycling physics engine for power, speed, and race-time prediction, plus a generator for Garmin Power Guide FIT files (messages 352/353).
Pre-release. This alpha reserves the package name and wires up the build and publish pipeline. The physics solver, FIT tooling, and the full
bpmcommand set land in a later release. Install it now if you want to track progress; the API is not stable yet.
What it does
Give it a route (GPX or FIT), a rider (weight, FTP, CdA), and conditions (wind, temperature, surface), and it predicts the power you would hold and the speed and time that follow from it. The direction matters: it solves logic to power to physics to speed, never the other way around. It does not read a speed profile off a file and back out the power.
The same engine writes Garmin Power Guide FIT files, so the plan you compute can be sideloaded onto a head unit and followed on the road.
It is calibrated and checked against real race telemetry, per rider and per terrain type (climbs, flats, descents, cobbles, gravel), not against a single averaged error number that hides where the model is wrong.
Install
pip install --pre bike-power-model
The --pre flag is required while the package is in alpha.
bpm --version
bpm status
The planning, decoding, and FIT-generation commands arrive with the engine.
bpm status tells you what the current install can do.
Requirements
Python 3.11, 3.12, or 3.13. No system libraries for the core install.
Documentation
docs/DEVELOPMENT.md: local setup, tests, the offline gatedocs/RELEASING.md: how a (pre-)release is cut and publishedCONTRIBUTING.md: what is welcome and how to set upCHANGELOG.md: what changed, per version
Reference docs for the physics, the FIT format, and the validation method ship with the engine.
License
MIT. See LICENSE.
Metadata
Release files for bike-power-model 0.0.1a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bike_power_model-0.0.1a0.tar.gz | 31.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bike_power_model-0.0.1a0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.5 kB
Release files / bike_power_model-0.0.1a0.tar.gz
| Download URL | bike_power_model-0.0.1a0.tar.gz |
|---|---|
| Size | 31.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02e04a0bbea8634db86f80756bc188bf6b710354fd509bce32e998a1a3845bd9
|
|
BLAKE2b-256 checksum How to use checksums |
5756dcdb822ca56bb646d665208d75c0e48548df39f19fb4b923b0eddd746748
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 6, 2026.
Transparency logRelease files / bike_power_model-0.0.1a0-py3-none-any.whl
| Download URL | bike_power_model-0.0.1a0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01eb43892fb12e57e78bbdc22917039b20d26e0fd68a4ca806dc9f7cc9495ec7
|
|
BLAKE2b-256 checksum How to use checksums |
8c04a6971a032ab3503081c18366e8c20f14c80abe04ffc19c48f640aa80d165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 6, 2026.
Transparency logSecurity for bike-power-model 0.0.1a0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for bike_power_model-0.0.1a0.tar.gz
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 Jul 6, 2026.
Transparency logA 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.