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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file pypeloton-0.1.1.tar.gz.

File metadata

  • Download URL: pypeloton-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.7

File hashes

Hashes for pypeloton-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a3e5f0f8d1a7946a8f995e066ba83ffdd4c703a0430f10978dfff2c422c8fda9
MD5 1fba82481098a6d21b24a8d8de2e75cc
BLAKE2b-256 dd5ef65359a24a7aadf0b275d4da33463e3a4568a3ba7e662345ed6fba2720f5

See more details on using hashes here.

File details

Details for the file pypeloton-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pypeloton-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.7

File hashes

Hashes for pypeloton-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 07a5a216ae5393727b3312cf059293db883d8a0043de685a7f541ebcf1984435
MD5 4bedfce5b429321a2ead32ca483a6e58
BLAKE2b-256 2966a8bfc75d36d32183fae5d8fbb3751d7558deef40a80f0197962a381d588d

See more details on using hashes here.

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