Skip to main content

Workout analysis

Project description

chironpy

Endurance sports analysis library for Python

A fork of sweatpy

Downloads

:warning: This is a fork of the original sweatpy project, which no longer seems to be maintained.

Documentation for the original project can be found here.

Documentation

Usage and examples can be found here.

Publishing

Build and publish using poetry.

TestPyPI

Test using TestPyPI. Create a project-scoped token in TestPyPI. Test publish manually:

poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish --repository testpypi --username __token__ --password pypi-YOURTOKEN

Or use the Github Actions as configured in .github/workflows/publishtestpypi.yml. Ensure:

  • The GitHub repo is connected to the TestPyPI project in TestPyPI.
  • The TestPyPI token has been added to the Github repo nvironment secrets: Settings > Environments > testpypi > Envionment secrets > TESTPYPI_TOKEN
[testpypi]
  repository = https://test.pypi.org/legacy/
  username = __token__
  password = # either a user-scoped token or a project-scoped token you want to set as the default

Install from TestPyPI:

pip install chironpy --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/

Development

Validating Functionality with Scripts

The scripts/ directory contains utility scripts to help validate the functionality of the chironpy library during development. Below are some examples of how to use these scripts:

1. Load any activity

Use the load_files.py script to load and parse a .fit, .gpx, locally saved Strava .json file etc. Example files are provided in chironpy/examples/data.

Usage:

python scripts/load_fit_file.py path/to/your/file.fit

## Contributors

- [Clive Gross](https://github.com/clivegross)
- [Maksym Sladkov](https://github.com/sladkovm) - Original Author (sweatpy)
- [Aart Goossens](https://github.com/AartGoossens) - Original Author (sweatpy)

Credit to [Aaron Schroeder](https://github.com/aaron-schroeder) for tools for running power and elevation metrics published in [heartandsole](https://github.com/aaron-schroeder/heartandsole) and [spatialfriend](https://github.com/aaron-schroeder/spatialfriend).

## License

See [LICENSE](LICENSE) file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chironpy-0.28.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chironpy-0.28.0-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file chironpy-0.28.0.tar.gz.

File metadata

  • Download URL: chironpy-0.28.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.12 Linux/6.11.0-1014-azure

File hashes

Hashes for chironpy-0.28.0.tar.gz
Algorithm Hash digest
SHA256 588f82042f2a2554cd7bec3fb566a27979f64b0c1830ed1bb07b5dcfaff78b75
MD5 9cf04ad0498a72acb5c502f315a5c12b
BLAKE2b-256 050eb4aebbbd82e61aa66db5ae9804de4707ce756114d49dfe3c935226dd3f38

See more details on using hashes here.

File details

Details for the file chironpy-0.28.0-py3-none-any.whl.

File metadata

  • Download URL: chironpy-0.28.0-py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.12 Linux/6.11.0-1014-azure

File hashes

Hashes for chironpy-0.28.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f70ad3f8c796def32b63a2d0050a004558c3d2d870bd6b0676061db2ab1b17b7
MD5 d63535bbcabffa4951d732e56123a427
BLAKE2b-256 620959e83b0cf9ba79e2f7fc429fe7304d43d3364e6510ec6de3c6c8dd33bbe8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page