Create a SQLite database containing data pulled from Strava
Project description
Table of Contents
strava-to-sqlite
Get started
Install
pip install strava-to-sqlite
Auth and fetch
# - Allow auth via browser oauth flow
# - Saves credentials to database
strava-to-sqlite auth strava_dump.db
# - Fetches and stores strava activities since last sync for all users
strava-to-sqlite sync strava_dump.db
Explore
Strava API sends polylines which are transformed to GeoJSON LineString by strava-to-sqlite
and can rendered on map with datasette-leaflet-geojson and datasette.
# assuming datasette is installed
datasette install datasette-leaflet-geojson
datasette strava_dump.db
Roadmap
- Overall clean-up/refactor
- Add tests
- Client side rate-limiting and retries
- Option to fetch for individual user (currently fetches for all authenticated users)
Links, Resources and Thanks
- Strava: Forum | Strava API | Rate Limits | Auth | Swagger UI
- Similar Projects
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
strava_to_sqlite-0.1.0.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for strava_to_sqlite-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b0d4e32543be44b9ee3d96ab8ff140331d6c3880a7a0d25f4a2587bc04411d0 |
|
MD5 | 9176a35ac5d5c5187a10d7402f1c9144 |
|
BLAKE2b-256 | 518d44911948278255f3e3a4d8174c939dc4da58e0dedb8a1e8ae8759691ad22 |