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
- @
Metadata
Release files for pypeloton 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pypeloton-0.1.1.tar.gz | 5.4 kB | Without provenance | Details for pypeloton-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pypeloton-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pypeloton-0.1.1-py2.py3-none-any.whl |
Total release size: 12.3 kB
Release files / pypeloton-0.1.1.tar.gz
| Download URL | pypeloton-0.1.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3e5f0f8d1a7946a8f995e066ba83ffdd4c703a0430f10978dfff2c422c8fda9
|
|
BLAKE2b-256 checksum How to use checksums |
dd5ef65359a24a7aadf0b275d4da33463e3a4568a3ba7e662345ed6fba2720f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pypeloton-0.1.1-py2.py3-none-any.whl
| Download URL | pypeloton-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
07a5a216ae5393727b3312cf059293db883d8a0043de685a7f541ebcf1984435
|
|
BLAKE2b-256 checksum How to use checksums |
2966a8bfc75d36d32183fae5d8fbb3751d7558deef40a80f0197962a381d588d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pypeloton 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.