Catalog PyPI
Back to packageRELEASE DETAILS

0.1b7

PyPI

activity.py

null

Published25 Nov 2024
Direct dependencies4
Transitive dependenciesNot calculated

README

Version 0.1b7 documentation

activity.py

Load running activities, output into a neat JSON format.

PyPI Changelog License

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
fitparse
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
fitparse==1.2.0runtime
python-dateutil
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
python-dateutil<2.9runtime
defusedxml
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
defusedxml==0.7.1runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"test\"",
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
pytest; extra == "test"runtime

Distribution files

2 collected
activity.py-0.1b7-py3-none-any.whl

bdist_wheel · 11.91 KB · Python py3

Source file
activity_py-0.1b7.tar.gz

sdist · 11.53 KB · Python source

Source file

Repository

PENDING
sesh/activity.py

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:e02a7be12d93f1e3abf519746b80998bbb8d91c9c526970bb17448daefed32ac

Other collected versions

View all collected versions →