Skip to main content

Python client for Strava Flyby

Project description

Python client for Strava Flyby

PyPI version Build Status

Install

$ pip install strava-flyby

Usage

strava-flyby provides a convenience object wrapping of the Strava Labs Flyby API response. Next to providing a direct access to the unmodified content of the Flyby API response, the object will expose number of convenience attributes and methods to access the list of activity, ids, matches and athletes.

Jupyter notebook example with real data is here

Create a flyby object using the Strava activity ID with a help of the flyby() factory function:

from flyby import flyby
fb = flyby(activity_id=12345)
fb
>>> Flyby object with 17 matches. 
        Attributes: ids, activity, matches, athletes
        Methods: matches_to_list(), matches_to_json(), get_ids()

Filter by distance in km and print all matched ids:

print(fb.get_ids(distance=(110, 130)))

Dump filtered by distance flattened matches into a list:

print(fb.matches_to_list(distance=120, tol=0.1))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for strava-flyby, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size strava_flyby-0.0.6-py2.py3-none-any.whl (4.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size strava-flyby-0.0.6.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page