{ "info": { "author": "Sander Smits", "author_email": "jhmsmits@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "=======================\nZwift Mobile API client\n=======================\n\n\n.. image:: https://img.shields.io/pypi/v/zwift-client.svg\n :target: https://pypi.python.org/pypi/zwift-client\n\n.. image:: https://img.shields.io/travis/jsmits/zwift-client.svg\n :target: https://travis-ci.org/jsmits/zwift-client\n\n.. image:: https://pyup.io/repos/github/jsmits/zwift-client/shield.svg\n :target: https://pyup.io/repos/github/jsmits/zwift-client/\n :alt: Updates\n\n\nZwift Mobile API client written in Python. Heavily inspired by zwift-mobile-api_.\n\n\nInstallation\n------------\n\n::\n\n $ pip install zwift-client\n\n\nUsage\n-----\n\n\nClient\n++++++\n\n::\n\n >>> from zwift import Client\n >>> username = 'your-username'\n >>> password = 'your-password'\n >>> player_id = your-player-id\n >>> client = Client(username, password)\n\n\nProfile\n+++++++\n\n::\n\n >>> profile = client.get_profile()\n >>> profile.profile # fetch your profile data\n >>> profile.followers\n >>> profile.followees\n >>> profile.get_activities() # metadata of your activities\n >>> profile.latest_activity # metadata of your latest activity\n\n\nActivity\n++++++++\n\n::\n\n >>> activity = client.get_activity(player_id)\n >>> activities = activity.list() # your activities (default start is 0, default limit is 20)\n >>> activities = activity.list(start=20, limit=50)\n >>> latest_activity_id = activities[0]['id']\n >>> activity.get_activity(latest_activity_id) # metadata of your latest activity\n >>> activity.get_data(latest_activity_id) # processed FIT file data\n\n\nWorld\n+++++\n\n::\n\n >>> world = client.get_world(1) # get world with id 1\n >>> world.players # players currently present in this world\n >>> world.player_status(player_id) # current player status information like speed, cadence, power, etc.\n\n\nCredits\n---------\n\nThis package was created with cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n.. _zwift-mobile-api: https://github.com/Ogadai/zwift-mobile-api\n\n\n\n=======\nHistory\n=======\n\n\n0.2.0 (2018-03-02)\n------------------\n\n- Add optional ``start`` and ``limit`` keyword arguments to ``Activity.list()``.\n\n\n0.1.0 (2018-01-14)\n------------------\n\n* Initial release.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jsmits/zwift-client", "keywords": "zwift", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "zwift-client", "package_url": "https://pypi.org/project/zwift-client/", "platform": "", "project_url": "https://pypi.org/project/zwift-client/", "project_urls": { "Homepage": "https://github.com/jsmits/zwift-client" }, "release_url": "https://pypi.org/project/zwift-client/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Zwift Mobile API client.", "version": "0.2.0" }, "last_serial": 3633235, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8ed2d623ccce7471a159179d32e99800", "sha256": "7fcbf3bdf3ebf03bee58e6bd790d750cdcdd6f6eda2a2ad2bd5a0652cfb00f9c" }, "downloads": -1, "filename": "zwift_client-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8ed2d623ccce7471a159179d32e99800", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 13340, "upload_time": "2018-01-14T15:22:19", "url": "https://files.pythonhosted.org/packages/4b/34/8dedd1515b19a68e90f7d0f2224b332fbb7f669faaf334f63462853cc63a/zwift_client-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d54ba9311d749412ae27e3027f61f897", "sha256": "5a28dc1cf64e48273793f29b559689c3f8dbd2878727d6552552301a9ea816b2" }, "downloads": -1, "filename": "zwift-client-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d54ba9311d749412ae27e3027f61f897", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19603, "upload_time": "2018-01-14T15:22:15", "url": "https://files.pythonhosted.org/packages/22/26/eb5da61a883db922aad4173cd06d3a9e994ea16a9acfff8c805a793d7205/zwift-client-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "1ffd05edfb919de07fa047ce0d7a80a7", "sha256": "01c5667520f57e3d5d336a93a29360788e011a3b2c810fa90271a05a74c1afd2" }, "downloads": -1, "filename": "zwift_client-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1ffd05edfb919de07fa047ce0d7a80a7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13570, "upload_time": "2018-03-02T22:02:41", "url": "https://files.pythonhosted.org/packages/99/56/8fa834790b682384cbe7e653308e31b8cf30ef86603efe61a17fd775f892/zwift_client-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "af618fa7b1b429655c83672c3a338cd6", "sha256": "506a8eaa00bbc6031eefb892fe56f812ac6bc5b1bd69f846e68f8ca57d37e7ce" }, "downloads": -1, "filename": "zwift-client-0.2.0.tar.gz", "has_sig": false, "md5_digest": "af618fa7b1b429655c83672c3a338cd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19580, "upload_time": "2018-03-02T22:02:39", "url": "https://files.pythonhosted.org/packages/a6/90/31b4004753a974a6daeb9a690350531e84dbac291fcf9c57226f04abb972/zwift-client-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1ffd05edfb919de07fa047ce0d7a80a7", "sha256": "01c5667520f57e3d5d336a93a29360788e011a3b2c810fa90271a05a74c1afd2" }, "downloads": -1, "filename": "zwift_client-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1ffd05edfb919de07fa047ce0d7a80a7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13570, "upload_time": "2018-03-02T22:02:41", "url": "https://files.pythonhosted.org/packages/99/56/8fa834790b682384cbe7e653308e31b8cf30ef86603efe61a17fd775f892/zwift_client-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "af618fa7b1b429655c83672c3a338cd6", "sha256": "506a8eaa00bbc6031eefb892fe56f812ac6bc5b1bd69f846e68f8ca57d37e7ce" }, "downloads": -1, "filename": "zwift-client-0.2.0.tar.gz", "has_sig": false, "md5_digest": "af618fa7b1b429655c83672c3a338cd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19580, "upload_time": "2018-03-02T22:02:39", "url": "https://files.pythonhosted.org/packages/a6/90/31b4004753a974a6daeb9a690350531e84dbac291fcf9c57226f04abb972/zwift-client-0.2.0.tar.gz" } ] }