polkupy
Python package to analyse and visualise personal cycling activities. Loads
GPX tracks into chainable pandas-backed objects, with built-in filtering,
geography helpers, and rich Jupyter display.
Installation
Install with pixi using:
pixi install --all
pixi shell -e dev
Quick start
from polkupy import Ride, Trips
ride = Ride.from_gpx("path/to/ride.gpx")
ride # -> route map + metadata in Jupyter
trips = Trips.from_gpx("data") # one subfolder per bike
commutes = trips.between(start=(48.14, 11.56), end=(48.35, 11.79))
Structure
Ride/Trips wrap the underlying pandas DataFrame(s) in a chainable API.
src/polkupy/
├── __init__.py # public API: Ride, Trips
├── core/
│ ├── ride.py # Ride: one track
│ └── trips.py # Trips: a collection of rides
├── io/
│ └── gpx.py
├── algorithms/
│ └── filters.py
├── clock.py
└── geo.py
Development
pixi run -e dev test # pytest
pixi run -e dev check # mypy + pylint
pixi run -e dev docs-build # Sphinx HTML docs -> docs/_build/html
See CHANGELOG.md for release history.
Metadata
Release files for polkupy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| polkupy-0.1.0.tar.gz | 26.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| polkupy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.6 kB
Release files / polkupy-0.1.0.tar.gz
| Download URL | polkupy-0.1.0.tar.gz |
|---|---|
| Size | 26.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
158a1c023b96fa7ca1ddedd7c9489624820bf404cc56f4768b2b1a0c74076beb
|
|
BLAKE2b-256 checksum How to use checksums |
8df18b07663f863f51a66986db785fae528bb37261e6c889539d389a26d76d5a
|
| 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 Sep 7, 2026.
Transparency logRelease files / polkupy-0.1.0-py3-none-any.whl
| Download URL | polkupy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 25.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e07dcd54e4814e55154388ceae924897db9643033ff6e2d26440724a496735aa
|
|
BLAKE2b-256 checksum How to use checksums |
762fa5f4107bd89e963fa6a1bb9bc6a50764ab9728c51cbdd7acf4ff3d0d7eda
|
| 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 Sep 7, 2026.
Transparency log