Skip to content
AF
Python library

stravalib

Python · PyPI: stravalib · latest 2.6.0 (2026-08-27) · registry read 2026-10-03

stravalib is a Python package for the Strava V3 API: authenticating, keeping a token current, downloading activity, club and profile data, and changing a user's activities. Its README lists Python 3.11+ with requests, pint, arrow and pydantic 2.x, and it uses Pint for unit-aware quantities. It wraps Strava's API rather than replacing it, so you still register a Strava app first, as its first tutorial explains; its latest PyPI release is 2.6.0.

What it wraps

  • The Strava V3 REST API, through a stravalib.client.Client class, per the README.

    “The stravalib Python package provides easy-to-use tools for accessing and downloading Strava data from the Strava V3 API.”

    Source: README

Named in the registry description: Strava API.

Install

From PyPI

pip install stravalib

From the README

Registry and repository facts

Read from PyPI and the repository by a script, not typed by hand. Where the metadata does not state something, the row says so. Dates are shown as dates, with the gap to our read, rather than as a verdict on whether the project is alive.

Latest version
2.6.0, published 2026-08-2737 days before our 2026-10-03 read
First published
2013-04-06 · 45 versions published
Licence
Apache-2.0PyPI license_expression
Platforms
not stated in registry metadata
Requires
python >=3.11PyPI requires_python
Status classifier
Development Status :: 5 - Production/Stable
Last commit, default branch
2026-09-2211 days before our 2026-10-03 read · read by git on 2026-10-03
GitHub signals
1,000 stars · 19 open issues and PRs · not archived · last push to any branch 2026-10-01GitHub API, read 2026-10-03

Registry description: “A Python package that makes it easy to access and download data from the Strava V3 REST API.”

What the README warns about

Each item is the project’s own statement, checked on 2026-10-03, quoted where the wording matters.

  • Units are objects. The README says stravalib supports quantities through the Pint library, so distances and speeds come back unit-aware rather than as bare floats.

    Source: README

  • Start with the README's tutorials: creating a Strava app, refreshing and auto-refreshing the token, and getting activities and athlete data.

    Source: README

The API underneath

A wrapper inherits every rule of the API it calls. These pages cover that layer directly.

Other Python packages on this list

Python libraries for fitness APIs: every package side by side, and how to choose →

  • garminconnect0.3.17 · 2026-09-29Garmin Connect's web services, signed in as the user with their own credentials.
  • garth0.8.0 · 2026-03-28Garmin's SSO login and the Garmin Connect API, through the mobile auth approach the README says Garmin's change broke.
  • oura-ring1.0.1 · 2026-06-22The Oura API v2.
  • oura1.3.0 · 2024-04-23The Oura API, with v2 clients under oura.v2 (OuraClientV2, OuraClientDataFrameV2) whose methods are named after the URL paths, per the README.
  • fitbit0.3.1 · 2019-05-24The legacy Fitbit Web API, using requests-oauthlib and python-dateutil according to the README's requirements.
  • withings-api2.4.0 · 2022-02-08The Withings Health API over OAuth 2.0, through WithingsAuth and WithingsApi, per the README.

Questions

Which Python version does stravalib require?
Its README lists Python 3.11+, and its PyPI metadata declares requires_python >=3.11. The README also lists requests, pint, arrow and pydantic 2.x as dependencies that pip installs automatically.
Can stravalib edit Strava activities as well as read them?
Yes. The README lists making changes to account activities among the Client class's features, alongside authentication, keeping the token current and downloading activity, club and profile data.

Registry facts read by scripts/fetch-libraries.mjs on 2026-10-03 and refreshed weekly; the latest release was published 37 days before our 2026-10-03 read. README quotes identify the project’s own statements; the selection, grouping and comparisons are AIFitnessAPI’s. For tagged releases of the main bridges, see the SDK release tracker.

← All health and fitness libraries