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.1.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.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: strava_client_cli-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 9d33b6ab32364eeea48db860f8400d4d6828db583b3a191b021516b6ddf67a11
MD5 f070929ac60a0f65b0c2b730f29f4771
BLAKE2b-256 7b39ecc6c4317d6ee3f78dfcc8cf554f7409ed236e6c426163d2bad7b7842023

See more details on using hashes here.

File details

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

File metadata

  • Download URL: strava_client_cli-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8f9261eb69e243897b8f1eff3b99de287374663c34241b1cb510566265049d0
MD5 7197d047134ed857f8dd346c609d45dd
BLAKE2b-256 423c632db6edd93da2b91a2a3cb32f181afd0f7fece27435701fa93fa672fd73

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