Skip to main content

strava_map

PyPI PyPI - Python Version GitHub License

Downloads strava activities and generates a heatmap for each activity type. View all your Strava activity data in one map, or just download and save your activity data to edit as you choose.

Installation

strava_map can be installed via pip using:

pip install strava-map

or run directly from a cloned repo

git clone https://github.com/tcramm0nd/strava_map.git

Example

from strava_map import Map
m = Map()

On the initial run you will be prompted for your Client ID and Client Secret. This is to authorize the App to retrieve activity data from Strava. All Strava keys are stored locally in a .credntials.json file.

You can find your Client ID and Client Secret by navigating to Settings > My API Application. If you have not set up Strava for API applications, you can find directions on how to do so here.

Strava Cient information

Once the Strava Client has been authorized it will proceed to retrieve activity data, stored in Map.activity_database.

Create a Heatmap of all activities

You can create a heatmap of all activiies by simply running

m.create_heatmap()

This will generate a map with different activity types coded as different colors.

Saving activity data

m.save_activities(path='path/to/directory/')

To Do

  • add KML support
  • add colorization options
  • assign gradients to activities

Metadata

Release files for strava-map 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for strava-map 0.1.0
File Size Uploaded
strava-map-0.1.0.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for strava-map 0.1.0
File Interpreter ABI Platform
strava_map-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / strava-map-0.1.0.tar.gz

Download URL strava-map-0.1.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f6ae7609a14d62116c0ef577a49b4962d756dfe78649957da8085f7af72e5083
BLAKE2b-256 checksum
How to use checksums
7e2395e5b2dc740b752333e48b4a89a104c6776a3d591a0e2ff9d184e99fbd4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.5

Release files / strava_map-0.1.0-py3-none-any.whl

Download URL strava_map-0.1.0-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87700a09cfc7b6e71fd54a601e653d69cb8ee5a3cb343ff5f74ee5c8cc2a68ac
BLAKE2b-256 checksum
How to use checksums
789f8179df17d6e581394238da222068c8fca6624722f6c688d2c156a9e09713
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page