Skip to main content

CLI tool for interacting with the Strava API

Project description

strava-cli

CLI tool for interacting with the Strava API.

Install

uv pip install -e .

Setup

  1. Create a Strava API app at https://www.strava.com/settings/api
  2. Set callback URL to http://localhost
  3. Run strava auth and follow the prompts

Commands

Command Description
strava auth OAuth2 setup flow
strava profile Show athlete profile
strava stats Athlete stats summary
strava activities List recent activities
strava activity <id> Detailed activity view
strava export Bulk export activities

Usage

# List last 10 activities
strava activities --limit 10

# Filter by type and date
strava activities --type Run --after 2024-01-01

# View a specific activity
strava activity 12345678

# Export activities to JSON
strava export --output ./export --format json --after 2024-01-01

Token Management

Tokens are stored in ~/.config/strava-cli/tokens.json and automatically refreshed when expired (every 6 hours).

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

strava_client_cli-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

strava_client_cli-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file strava_client_cli-0.1.0.tar.gz.

File metadata

  • Download URL: strava_client_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for strava_client_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 84d5b61d3583b0bcd79e22e042c4638330cff235ecb703b8962d01623c2d7d70
MD5 fe325d7fb41948281b9e58ab0a134ac9
BLAKE2b-256 5c57ec217202a8a9beecb1636a6efd75966943680c024eb4f96877875268f10a

See more details on using hashes here.

File details

Details for the file strava_client_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: strava_client_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for strava_client_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d88c9cb261a20034561b0cb129ec5ff3cb5d2696993d1de0725ed65e6450c045
MD5 d03b118557e6cee03f5b45c08106d68d
BLAKE2b-256 8523e42231ba1184fb439b9c1f605c1d3fc60a6cee64d71e1725fc4ee7ca3848

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