Zwift Mobile API client
Zwift Mobile API client written in Python. Heavily inspired by zwift-mobile-api.
Installation
$ pip install zwift-client
Usage
Client
>>> from zwift import Client >>> username = 'your-username' >>> password = 'your-password' >>> player_id = your-player-id >>> client = Client(username, password)
Profile
>>> profile = client.get_profile() >>> profile.profile # fetch your profile data >>> profile.followers >>> profile.followees >>> profile.get_activities() # metadata of your activities >>> profile.latest_activity # metadata of your latest activity
Activity
>>> activity = client.get_activity(player_id) >>> activities = activity.list() # your activities (default start is 0, default limit is 20) >>> activities = activity.list(start=20, limit=50) >>> latest_activity_id = activities[0]['id'] >>> activity.get_activity(latest_activity_id) # metadata of your latest activity >>> activity.get_data(latest_activity_id) # processed FIT file data
World
>>> world = client.get_world(1) # get world with id 1 >>> world.players # players currently present in this world >>> world.player_status(player_id) # current player status information like speed, cadence, power, etc.
Credits
This package was created with cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.2.0 (2018-03-02)
Add optional start and limit keyword arguments to Activity.list().
0.1.0 (2018-01-14)
Initial release.
Metadata
Release files for zwift-client 0.2.0
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 |
|---|---|---|---|---|
| zwift-client-0.2.0.tar.gz | 19.6 kB | Without provenance | Details for zwift-client-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zwift_client-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for zwift_client-0.2.0-py2.py3-none-any.whl |
Total release size: 33.1 kB
Release files / zwift-client-0.2.0.tar.gz
| Download URL | zwift-client-0.2.0.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
506a8eaa00bbc6031eefb892fe56f812ac6bc5b1bd69f846e68f8ca57d37e7ce
|
|
BLAKE2b-256 checksum How to use checksums |
a69031b4004753a974a6daeb9a690350531e84dbac291fcf9c57226f04abb972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / zwift_client-0.2.0-py2.py3-none-any.whl
| Download URL | zwift_client-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
01c5667520f57e3d5d336a93a29360788e011a3b2c810fa90271a05a74c1afd2
|
|
BLAKE2b-256 checksum How to use checksums |
99568fa834790b682384cbe7e653308e31b8cf30ef86603efe61a17fd775f892
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for zwift-client 0.2.0
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.