Skip to main content

Client library for the Peloton API

Project description

pypeloton

Peloton API Client

Installation

Use pip

pip install pypeloton

Build locally

$ git clone https://github.com/raman325/pypeloton.git
$ pip install -I pypeloton

Usage

There are synchronous (Peloton) and asynchronous (PelotonAsync) classes available with the same methods available. For the purpose of demonstration we will talk about the synchronous Peloton class.

from pypeloton import Peloton

client = Peloton("my_username_or_email", "my_password")
user_id = client.get_user_id("raman325")
print(client.get_user_achievements(user_id))
print(client.get_user_workouts(user_id))

Most functions will return the full payload received, so it is up to you to figure out how to get the data you need from a given method. As of now you will have to look at the source to see what functions are available, better documentation to come later.

Acknowledgements

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

pypeloton-0.1.1.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

pypeloton-0.1.1-py2.py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page