null
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
activity.py-0.1b2.tar.gz
(11.5 kB
view details)
Built Distribution
File details
Details for the file activity.py-0.1b2.tar.gz
.
File metadata
- Download URL: activity.py-0.1b2.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac8dc62e7eeadc7ca49e89a408e02c182ab7594cb3945b9b89f5b2987921a273 |
|
MD5 | 1bb5292adcd211ae9b18f722e7e51331 |
|
BLAKE2b-256 | 360450644e287837d6007042ed827f7ca6187a8230cdc7c450538f2a9838e1d8 |
File details
Details for the file activity.py-0.1b2-py3-none-any.whl
.
File metadata
- Download URL: activity.py-0.1b2-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7421b3217df94e95732b95f07f69b21162d3619280ab0b5bc5a64e606b65ed1d |
|
MD5 | 804534476e683164cffd3fac91e20d23 |
|
BLAKE2b-256 | 101f163f36fac36671f716b0e59d871f5c94d08eb184d897aa50f4aa7875b6c0 |