Skip to main content

Zwift Mobile API client.

Project description

Zwift Mobile API client

https://img.shields.io/pypi/v/zwift-client.svg https://img.shields.io/travis/jsmits/zwift-client.svg Updates

Python port of the Zwift Mobile API Javascript client: zwift-mobile-api.

  • Free software: MIT license

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
>>> 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.1.0 (2018-01-14)

  • Initial release.

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

zwift-client-0.1.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zwift_client-0.1.0-py2.py3-none-any.whl (13.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file zwift-client-0.1.0.tar.gz.

File metadata

  • Download URL: zwift-client-0.1.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zwift-client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a28dc1cf64e48273793f29b559689c3f8dbd2878727d6552552301a9ea816b2
MD5 d54ba9311d749412ae27e3027f61f897
BLAKE2b-256 2226eb5da61a883db922aad4173cd06d3a9e994ea16a9acfff8c805a793d7205

See more details on using hashes here.

File details

Details for the file zwift_client-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for zwift_client-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7fcbf3bdf3ebf03bee58e6bd790d750cdcdd6f6eda2a2ad2bd5a0652cfb00f9c
MD5 8ed2d623ccce7471a159179d32e99800
BLAKE2b-256 4b348dedd1515b19a68e90f7d0f2224b332fbb7f669faaf334f63462853cc63a

See more details on using hashes here.

Supported by

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