Skip to content

stravalib/stravalib

Repository files navigation

Welcome to stravalib

All Contributors DOI PyPI PyPI - Python Version Documentation Status Package Tests Status PyPI - Downloads codecov

The stravalib Python package provides easy-to-use tools for accessing and downloading Strava data from the Strava V3 web service. Stravalib provides a Client class that supports:

  • Authenticating with stravalib
  • Accessing and downloading Strava activity, club, and profile data
  • Making changes to account activities

It also provides support for working with date/time/temporal attributes and quantities through the Python Pint library.

Dependencies

Installation

stravalib is available on PyPI and can be installed using pip:

pip install stravalib

Get started using Stravalib

Most of the methods that you will use with stravalib are in the stravalib.client.Client class.

You may be interested in the following tutorials to get started

  1. How to create a Strava app.
  2. How to authenticate with Strava using stravalib.
  3. How to get activities using stravalib.
  4. Athlete data using stravalib
  5. Unit conversion and stravalib

We welcome contributions to our tutorials and get started documentation if you are a stravalib user and want to contribute!

How to Contribute to Stravalib

Contributing quickstart

Ready to contribute? Here's how to set up Stravalib for local development.

  1. Fork the repository on GitHub

To create your own copy of the repository on GitHub, navigate to the stravalib/stravalib <https://github.com/stravalib/stravalib> repository and click the Fork button in the top-right corner of the page.

  1. Clone your fork locally

Use git clone to get a local copy of your stravalib repository on your local filesystem:

git clone git@github.com:your_name_here/stravalib.git
cd stravalib/
  1. Set up your fork for local development

Read through our development guide to learn how to:

Building from source

To build the project locally and install in editable mode:

  1. access the project root directory
  2. run:
$ pip install -e .

Pull Requests and tests

Please add tests that cover any changes that you make to stravalib. Adding tests will greatly reduce the effort of reviewing and merging your Pull Request. Read more about our test suite here.. We developed a mock fixture that ensures that when tests are run, they are not hitting the Strava API.

Still reading?

The published sphinx documentation provides much more.

Danny Cunningham
Danny Cunningham

📖 🤔
Jerome Lelong
Jerome Lelong

🐛
Jonatan Samoocha
Jonatan Samoocha

💻 👀 📖 🚧
Leah Wasser
Leah Wasser

💻 👀 📖
Yotam
Yotam

📖
Émile Nadeau
Émile Nadeau

💻 👀 📖 🚧