r/Python • u/GioGiac • 18h ago
Showcase A lightweight Python wrapper for the Strava API that makes authentication painless
What My Project Does
Light Strava Client is a minimalist Python wrapper around the Strava API that automates the entire OAuth flow and token management. It provides a clean, typed interface for accessing Strava data while handling all the authentication complexity behind the scenes.
Key features:
- Automated OAuth flow (just paste the callback URL and you're done)
- Automatic token refresh handling
- Type-safe responses using Pydantic
- Simple to extend with new endpoints
- No complex dependencies
Target Audience
This is primarily designed for developers who want to quickly prototype or build personal projects with Strava data. While it can be used in production, it's intentionally kept minimal to prioritize hackability and ease of understanding over comprehensive feature coverage.
Comparison
The main alternative is stravalib, which is a mature and feature-complete library. Light Strava Client takes a different approach by offering a minimal, modern (Pydantic, type hints) codebase that prioritizes quick setup and hackability over comprehensive features.
The code is available here: https://github.com/GiovanniGiacometti/Light-Strava-Client
I'd love to hear your thoughts or feature suggestions!