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
- @geudrik made some helpful API docs
- @
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
pypeloton-0.1.0.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file pypeloton-0.1.0.tar.gz
.
File metadata
- Download URL: pypeloton-0.1.0.tar.gz
- Upload date:
- Size: 5.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dc65074293eb56d2870dd22e23244f5eb4633163d8137d7388164749e06d279 |
|
MD5 | b1443aacbbdc5ea2b8bf4f4f8d518cd7 |
|
BLAKE2b-256 | 6ef3265469ad0c3420f49752c8a60ce251de8b8b246aa67ab546c3576ef2c40c |
File details
Details for the file pypeloton-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pypeloton-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4336e315a0876d62a4c8a92a56c85181b3c72343819737c8548420e38f4608cc |
|
MD5 | 448be251915ae712afdbe5a53b070f98 |
|
BLAKE2b-256 | 0520905d5fa87167d51aa740947100073c3d5a97331ec9e266c7725375dc5e5e |