Skip to main content

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 API. Stravalib provides a Client class that supports:

  • Authenticating with stravalib
  • Managing your authentication to ensure it's current (if you have your environment setup)
  • 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 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 refresh and auto refresh your app token 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.

BPR
BPR

💻
Danny Cunningham
Danny Cunningham

📖 🤔
Hugo van Kemenade
Hugo van Kemenade

💻 👀
Jerome Lelong
Jerome Lelong

🐛
Jonatan Samoocha
Jonatan Samoocha

💻 👀 📖 🚧
Leah Wasser
Leah Wasser

💻 👀 📖
Mike Fiedler
Mike Fiedler

💻 👀 🛡️
Reno Viana
Reno Viana

💻 🐛 👀
Robert Kosara
Robert Kosara

🐛 💬
Yotam
Yotam

📖
yihong
yihong

🐛
Émile Nadeau
Émile Nadeau

💻 👀 📖 🚧

Release files for stravalib 2.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stravalib 2.6.0
File Size Uploaded
stravalib-2.6.0.tar.gz 4.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for stravalib 2.6.0
File Interpreter ABI Platform
stravalib-2.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.3 MB

Release files / stravalib-2.6.0.tar.gz

Download URL stravalib-2.6.0.tar.gz
Size 4.1 MB
Tags Source
SHA-256 checksum
How to use checksums
6aef4055ea3e7cae4977b2d1a30cc8a054c487658e07d3d06bb3b90074025790
BLAKE2b-256 checksum
How to use checksums
b41213845a2c5f1eb99271ea7156b23d200a5e7fa55659aa18e8c020d3638944
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / stravalib-2.6.0-py3-none-any.whl

Download URL stravalib-2.6.0-py3-none-any.whl
Size 134.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c111066e706eaf94aa908dd0308480dc541dc9e903d17058ab3b682863f5d09
BLAKE2b-256 checksum
How to use checksums
fbb7dbf85ef7bff9a3cdfb8c7664d43259ac100f36bb10d17d629f70c74613a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.6.0 This release

2 release files

2.5.0

2 release files

2.4

2 release files

2.3

2 release files

2.2

2 release files

2.1

2 release files

2.0

2 release files

1.7

2 release files

1.6

2 release files

1.5

2 release files

1.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.10.4

1 release file

0.10.3

1 release file

0.10.2

1 release file

0.10.1

1 release file

0.10.0

1 release file

0.9.4

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

3 release files

0.6.6

1 release file

0.6.5

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page