This release is a pre-release and may not be stable for production use.
activity.py
Load running activities, output into a neat JSON format.
Installation
Install this library using pip:
pip install activity.py
Usage
Import Activity and use the load_fit and load_gpx function to load your activities.
You can access attributes on the activity at that point, or alternatively use as_json to dump your activity as a JSON object.
from activity_py import Activity
activity = Activity.load_fit('fitfile.fit')
print(activity.duration, activity.distance, activity.pace)
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd activity.py
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Using pipenv, this looks like:
pipenv install .[test]
pipenv run pytest
Activity JSON
Documentation TBC.
Metadata
Release files for activity.py 0.1b7
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 | Actions |
|---|---|---|---|---|
| activity_py-0.1b7.tar.gz | 11.8 kB | Without provenance | Details for activity_py-0.1b7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| activity.py-0.1b7-py3-none-any.whl | Python 3 | none | any | Details for activity.py-0.1b7-py3-none-any.whl |
Total release size: 24.0 kB
Release files / activity_py-0.1b7.tar.gz
| Download URL | activity_py-0.1b7.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ff3d5f46bb12d03e06383de8693b9cde2ce1335050dcc01fe16c377268e2743
|
|
BLAKE2b-256 checksum How to use checksums |
f88cdedae3f903debc0ee8c38bf4b30cd831795d10d6d3866ef0b642e81ea6bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.15
|
Release files / activity.py-0.1b7-py3-none-any.whl
| Download URL | activity.py-0.1b7-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3574d3ce2c3966d48e75dbd58b2417b0ae7546ff3f18b3eaff7b05bc8ac2eac3
|
|
BLAKE2b-256 checksum How to use checksums |
2393abf96423dfd96f2c4beef5b14b5bd50c28b5ec695b1ed856731e506ffd67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.15
|
Security for activity.py 0.1b7
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.