{ "info": { "author": "Ryan Campbell", "author_email": "campbellr@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "===============\nsmashrun-client\n===============\n\n.. image:: https://travis-ci.org/campbellr/smashrun-client.svg?branch=master\n :target: https://travis-ci.org/campbellr/smashrun-client\n\n\nA Python client for the Smashrun_ API.\n\nInstall\n=======\n\nYou can install the current development release using ``pip``::\n\n pip install --pre smashrun-client\n\n\nUsage\n=====\n\nAuthentication\n--------------\n\nUsing an existing refresh token\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code-block:: python\n\n client = Smashrun(client_id='my_client_id', client_secret='my_secret')\n client.refresh_token(refresh_token='my_refresh_token')\n\nRequesting a token\n~~~~~~~~~~~~~~~~~~\n\n.. code-block:: python\n\n # use urn:ietf:wg:oauth:2.0:oob for applications that aren't a web app\n client = Smashrun(client_id='my_client_id',client_secret='my_secret',\n redirect_uri='urn:ietf:wg:oauth:2.0:auto')\n auth_url = client.get_auth_url()\n code = raw_input(\"Go to '%s' and authorize this application. Paste the provided code here:\" % auth_url[0])\n response = client.fetch_token(code=code)\n print(response['refresh_token'])\n\n\n**NOTE:** The example above assumes that you are running Python 2.x. If You are using Python 3.x you can replace\n``raw_input`` with ``input``.\n\n\nFetching activities\n-------------------\n\nUse ``Smashrun.get_activities`` to get a list of activities (summaries):\n\n.. code-block:: python\n\n activities = client.get_activities() # returns an iterator that handles paginating through the API\n for activity in activities:\n print activity['startDateTimeLocal']\n\n\nFetch a specific activity\n-------------------------\n\nUse ``Smashrun.get_activity`` to get a specific activity:\n\n.. code-block:: python\n\n activity = client.get_activity(1234)\n print activity['recordingKeys']\n\n\nFor more details on what you can do, see `the code`_ and the `Smashrun API`_\n\n\nContributing\n============\n\nContributions are greatly appreciated! Feel free to submit a pull request, or file\nan issue in our `issue tracker`_.\n\n.. _Smashrun: https://smashrun.com\n.. _issue tracker: https://github.com/campbellr/smashrun-client/issues\n.. _the code: https://github.com/campbellr/smashrun-client/blob/master/smashrun/client.py\n.. _Smashrun API: https://api.smashrun.com/\n\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/campbellr/smashrun-client", "keywords": "smashrun", "license": "Apache", "maintainer": "", "maintainer_email": "", "name": "smashrun-client", "package_url": "https://pypi.org/project/smashrun-client/", "platform": "", "project_url": "https://pypi.org/project/smashrun-client/", "project_urls": { "Homepage": "https://github.com/campbellr/smashrun-client" }, "release_url": "https://pypi.org/project/smashrun-client/0.6.0/", "requires_dist": [ "requests", "requests-oauthlib" ], "requires_python": "", "summary": "A Python client for the Smashrun API", "version": "0.6.0" }, "last_serial": 4122360, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "89097a8bad54664532ef9bf422cb1478", "sha256": "2c1182a628e40b16b97c8086e923113be5bcace6fb4378ddca44c3ff0ce28936" }, "downloads": -1, "filename": "smashrun_client-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "89097a8bad54664532ef9bf422cb1478", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6172, "upload_time": "2015-06-10T01:11:25", "url": "https://files.pythonhosted.org/packages/df/d0/24a43aeb60cad61d94b204078a9db2b3db71cdd7d346e27d477bdc213b86/smashrun_client-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ad30c17cda364ad787f08e7c8e639b2", "sha256": "0a8300e14ab16d5f6d440c7b834141201f0b0852b8e7de364f69a3225de282bb" }, "downloads": -1, "filename": "smashrun-client-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2ad30c17cda364ad787f08e7c8e639b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9197, "upload_time": "2015-06-10T01:11:22", "url": "https://files.pythonhosted.org/packages/ee/63/8006568760a97def4e8fecdea7870c49ea3ab9fd85746dae8f2c13b54f3d/smashrun-client-0.1.0.tar.gz" } ], "0.1.0a1": [], "0.1.0a2": [ { "comment_text": "", "digests": { "md5": "2b45755fa36511a5a4bf5ab2d10b6b7f", "sha256": "dce05a2607eee9bbbe03c83b84b5e4a1086db6fd78cf5d5f063eb3c71f9f39c4" }, "downloads": -1, "filename": "smashrun_client-0.1.0a2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2b45755fa36511a5a4bf5ab2d10b6b7f", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6204, "upload_time": "2015-06-08T04:38:17", "url": "https://files.pythonhosted.org/packages/22/93/b90538cea0af50ba22582e189e49f4dde05c9e4256794c075d50bf050b31/smashrun_client-0.1.0a2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7e1b4e67c54af91499d51a0f425ed522", "sha256": "c24f508817d4ce2d6bd8cbbac87112d2569bc04b1d7e336ac124d84e1bb1c7eb" }, "downloads": -1, "filename": "smashrun-client-0.1.0a2.tar.gz", "has_sig": false, "md5_digest": "7e1b4e67c54af91499d51a0f425ed522", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9196, "upload_time": "2015-06-08T04:38:14", "url": "https://files.pythonhosted.org/packages/04/88/c0adde3829874f0926ede7c787d4ef4e7233569ce7cac6b2e9d7d1ef338d/smashrun-client-0.1.0a2.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f072ebb772f13038070878c5caf88011", "sha256": "73b956fc895b07ce5e43b3b36659ab77c660c3b02ec1728366b19aea685f7d85" }, "downloads": -1, "filename": "smashrun_client-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f072ebb772f13038070878c5caf88011", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6171, "upload_time": "2015-06-14T19:03:07", "url": "https://files.pythonhosted.org/packages/2e/97/767281fe2ba3daebf38f6e393c898d524a5b8c85f6cf78ed3284391f4de9/smashrun_client-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "00bdff87572ee2e45265ef780c5ead21", "sha256": "3f078d8964cce7f81d5b6adfdc3bc21eda09d6d91ffb561e12191b63017f689f" }, "downloads": -1, "filename": "smashrun-client-0.1.1.tar.gz", "has_sig": false, "md5_digest": "00bdff87572ee2e45265ef780c5ead21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9194, "upload_time": "2015-06-14T19:03:04", "url": "https://files.pythonhosted.org/packages/71/ce/9321f4878c2d001b8202d0915236e9ace09d210163ecbc5dc056256f8330/smashrun-client-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "152b3bb54e0973705931b454ba61136b", "sha256": "89e0ac8c4ea987b4468fd48ba9503a85b993362fab85720c461c76d17802f61f" }, "downloads": -1, "filename": "smashrun_client-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "152b3bb54e0973705931b454ba61136b", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6175, "upload_time": "2015-06-16T06:01:34", "url": "https://files.pythonhosted.org/packages/d3/54/806b731f57e90c876fddb0d17209d65cbee842e063807420dcffa7441e38/smashrun_client-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "50b31d10ff55187296076c8ac0ba66b2", "sha256": "7d118f8a35a31bf2e5f087cee59d9bf8a2cd7265bbb37c849fb83dcc2db26403" }, "downloads": -1, "filename": "smashrun-client-0.1.2.tar.gz", "has_sig": false, "md5_digest": "50b31d10ff55187296076c8ac0ba66b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9242, "upload_time": "2015-06-16T06:01:31", "url": "https://files.pythonhosted.org/packages/7a/7c/d48b3bad485333397b0285da702113510616dd55119a62524ac625689a57/smashrun-client-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3ea718a3148678a4977f0974b68dc9db", "sha256": "a47935400a448780b24fba94c591271495229275e9c8a6073f3b97b5be95daf7" }, "downloads": -1, "filename": "smashrun_client-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3ea718a3148678a4977f0974b68dc9db", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6196, "upload_time": "2015-07-03T02:07:29", "url": "https://files.pythonhosted.org/packages/dd/38/e7e634de98c461e446da1230c882134518ea914ee694127b7e77afe31390/smashrun_client-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8fe26695a01e6a1333260913ed7050c7", "sha256": "d4257843dbc6dff2a895602d19be9eb39990fd3567a51ce7aef23f3dda48a8bb" }, "downloads": -1, "filename": "smashrun-client-0.2.0.tar.gz", "has_sig": false, "md5_digest": "8fe26695a01e6a1333260913ed7050c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9285, "upload_time": "2015-07-03T02:07:26", "url": "https://files.pythonhosted.org/packages/89/11/2c0b969274145eaa15d4478922b384856e37051e9df01f1ebe73fb6f8228/smashrun-client-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "a41370490e27720af15cd620e5f3120a", "sha256": "eed1940b6f65f6613c7511b4e5d2bdf7ea2ce76188ad7ddf1b9ef186904b1a46" }, "downloads": -1, "filename": "smashrun_client-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a41370490e27720af15cd620e5f3120a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6365, "upload_time": "2016-11-23T02:55:46", "url": "https://files.pythonhosted.org/packages/a1/89/bb2a76f6aea0db2d6b93baade822d057dd52159954d515955d7d98b84112/smashrun_client-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "47dc1923674f66ee0eaefcda1e1e540c", "sha256": "478712095a7865276f55e7b106041d302ce8686b8ecdd63c4f1e429d848109f3" }, "downloads": -1, "filename": "smashrun-client-0.3.0.tar.gz", "has_sig": false, "md5_digest": "47dc1923674f66ee0eaefcda1e1e540c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9532, "upload_time": "2016-11-23T02:55:44", "url": "https://files.pythonhosted.org/packages/97/12/a4cc8ca2aa92d31bef76d33c2a260151bcae4579931151c0f061712c6398/smashrun-client-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "6debac3e697ad7dde6b62be72a06a995", "sha256": "480fc028a86a943acfdfbf9386a2cc2191aad7fc8071eee16928a128fceaff10" }, "downloads": -1, "filename": "smashrun_client-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6debac3e697ad7dde6b62be72a06a995", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6393, "upload_time": "2016-12-03T03:34:52", "url": "https://files.pythonhosted.org/packages/16/28/4df2e7fdd147a642634d2ba0de83ac3c38135d220235b6982b6dd7e30f8f/smashrun_client-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b45b46d60cfb3cbf6d3b0831342652cb", "sha256": "51afebd470ec2ba23432da3bf4a9f3f9da696296d65e3fa1fb71d9b9642e2fd3" }, "downloads": -1, "filename": "smashrun-client-0.4.0.tar.gz", "has_sig": false, "md5_digest": "b45b46d60cfb3cbf6d3b0831342652cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9603, "upload_time": "2016-12-03T03:34:50", "url": "https://files.pythonhosted.org/packages/5f/f8/624f801f918f7e8e1d1f76c01528af427f8e5f48ce8427b3b6d28c5ed8a0/smashrun-client-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "a39ce03ebb42726aba30c1a6f970f6a0", "sha256": "aaccf1cafa0880fd2a4f63c3d97e2c9f1db2da0cbd83fa32dc34e601e513b42b" }, "downloads": -1, "filename": "smashrun_client-0.5.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a39ce03ebb42726aba30c1a6f970f6a0", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6729, "upload_time": "2016-12-27T21:02:07", "url": "https://files.pythonhosted.org/packages/4a/21/cec8837d3b3ad32bd5a008322b5805c6cc06f9e0df7843ce940b8cb08c11/smashrun_client-0.5.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a468daa4426e9bfb3657ab1b5a2d0375", "sha256": "48ea6a7c7042f189ffdbd87e43684bf8bffc9eeafdaac8f547c9e14823b83887" }, "downloads": -1, "filename": "smashrun-client-0.5.0.tar.gz", "has_sig": false, "md5_digest": "a468daa4426e9bfb3657ab1b5a2d0375", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9964, "upload_time": "2016-12-27T21:02:03", "url": "https://files.pythonhosted.org/packages/1d/29/df8e9bce2f05e4d257cd92bd8a56724851f378c6b513e32db7106d65a719/smashrun-client-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "855cee76eddbafba134d3acfd1e0ecac", "sha256": "23ad771941053b488548d0b8ab5191d14d3727cefe5a1d4d62564f234d528caf" }, "downloads": -1, "filename": "smashrun_client-0.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "855cee76eddbafba134d3acfd1e0ecac", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5003, "upload_time": "2018-07-31T23:14:36", "url": "https://files.pythonhosted.org/packages/19/c2/5b17f4cc65662fdb1ab0f1418bb61792ef8d8b12f9cb45fc84f7e1ad3453/smashrun_client-0.6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f21ce8c503914119155eb7edac9e48e", "sha256": "5db27f7458964a9fb3e036d5b211f799f6db15258afa91f52eb1694ef212fd1d" }, "downloads": -1, "filename": "smashrun-client-0.6.0.tar.gz", "has_sig": false, "md5_digest": "1f21ce8c503914119155eb7edac9e48e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10036, "upload_time": "2018-07-31T23:14:37", "url": "https://files.pythonhosted.org/packages/fa/47/8f6ed4efc32996d82bbe40b3606426cd0ededca47e3a1795980b7f6bf172/smashrun-client-0.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "855cee76eddbafba134d3acfd1e0ecac", "sha256": "23ad771941053b488548d0b8ab5191d14d3727cefe5a1d4d62564f234d528caf" }, "downloads": -1, "filename": "smashrun_client-0.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "855cee76eddbafba134d3acfd1e0ecac", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5003, "upload_time": "2018-07-31T23:14:36", "url": "https://files.pythonhosted.org/packages/19/c2/5b17f4cc65662fdb1ab0f1418bb61792ef8d8b12f9cb45fc84f7e1ad3453/smashrun_client-0.6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f21ce8c503914119155eb7edac9e48e", "sha256": "5db27f7458964a9fb3e036d5b211f799f6db15258afa91f52eb1694ef212fd1d" }, "downloads": -1, "filename": "smashrun-client-0.6.0.tar.gz", "has_sig": false, "md5_digest": "1f21ce8c503914119155eb7edac9e48e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10036, "upload_time": "2018-07-31T23:14:37", "url": "https://files.pythonhosted.org/packages/fa/47/8f6ed4efc32996d82bbe40b3606426cd0ededca47e3a1795980b7f6bf172/smashrun-client-0.6.0.tar.gz" } ] }