{ "info": { "author": "Scott Blevins", "author_email": "sblevins@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "PyToggl\n=======\n\nThe definitive Toggl library for Python.\n''''''''''''''''''''''''''''''''''''''''\n\nCurrently this library supports all API calls via the self.query and the\nself.query\\_report methods. They return the JSON that is documented in\nthe Toggl API documentation.\n\nIn addition to the query methods, this library contains quite a few\nhelpful methods and classes for working with Toggl data.\n\nHow To Use / Examples\n~~~~~~~~~~~~~~~~~~~~~\n\nInitialize the Library\n\n.. code:: python\n\n from PyToggl import PyToggl\n pytoggl = PyToggl('YOUR-API-KEY-HERE')\n\n # Wasn't that easy?\n\nNow do something with it.\n\n.. code:: python\n\n # Grab our workspace(s)\n workspaces = pytoggl.get_workspaces()\n\n # Now grab all our users for the first workspace\n users = pytoggl.get_workspace_users(workspaces[0].id)\n\nCode:\n\n.. code:: python\n\n # PyToggl creates objects out of all your query results that use the\n # helper methods (ie. get_workspaces and get_workspace_users)\n\n print(users[0].name)\n\nOutput:\n\n::\n\n John Smith\n\nCode:\n\n.. code:: python\n\n # The repr is very useful for debugging.\n print(users[0])\n\nOutput:\n\n::\n\n class instance>.wid = 12345\n class instance>.uid = 543210\n class instance>.admin = False\n class instance>.avatar_file_name = https://secure.gravatar.com/avatar/87vh8r7h8er7ch8wd7ch9wd7cj9wr7h?d=404&s=200\n class instance>.id = 987656789\n class instance>.inactive = False\n class instance>.at = 2014-09-26T17:54:54+00:00\n class instance>.active = True\n class instance>.group_ids = [345678]\n class instance>.email = johnsmith@notarealdomain.com\n class instance>.name = John Smith\n\nCode:\n\n.. code:: python\n\n # All objects have a dict property.\n print(users[0].dict)\n\nOutput:\n\n::\n\n {'active': True,\n 'admin': False,\n 'at': u'2014-09-26T17:54:54+00:00',\n 'avatar_file_name': u'https://secure.gravatar.com/avatar/87vh8r7h8er7ch8wd7ch9wd7cj9wr7h?d=404&s=200',\n 'email': u'johnsmith@notarealdomain.com',\n 'group_ids': [345678],\n 'id': 987656789,\n 'inactive': False,\n 'name': u'John Smith',\n 'uid': 543210,\n 'wid': 12345}\n\nCode:\n\n.. code:: python\n\n # All objects also have a json property\n print(users[0].json)\n\nOutput:\n\n::\n\n '{\"wid\": 12345, \"uid\": 543210, \"avatar_file_name\": \"https://secure.gravatar.com/avatar/87vh8r7h8er7ch8wd7ch9wd7cj9wr7h?d=404&s=200\", \"inactive\": false, \"at\": \"2014-09-26T17:54:54+00:00\", \"active\": true, \"id\": 987656789, \"group_ids\": [345678], \"name\": \"John Smith\", \"admin\": false, \"email\": \"johnsmith@notarealdomain.com\"}'\n\n\nCHANGES\n=======\n\nVersion 0.1.0 - 02 October 2014\n\n * Alpha version", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/smeggingsmegger/PyToggl", "keywords": "Toggl,Time,Tracking,Library,API", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "PyToggl", "package_url": "https://pypi.org/project/PyToggl/", "platform": "OS Independent", "project_url": "https://pypi.org/project/PyToggl/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/smeggingsmegger/PyToggl" }, "release_url": "https://pypi.org/project/PyToggl/0.2.6/", "requires_dist": null, "requires_python": null, "summary": "The Definitive Python Library For The Toggl API", "version": "0.2.6" }, "last_serial": 1249741, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8a7d4e2e89cc49415688f3d72b83efdd", "sha256": "a113db1ae2324108c067011e1cf43dd70941cb317ca0e8e5c9c497d667cbb461" }, "downloads": -1, "filename": "PyToggl-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8a7d4e2e89cc49415688f3d72b83efdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5368, "upload_time": "2014-10-03T01:43:15", "url": "https://files.pythonhosted.org/packages/c5/04/ff8a4b8e3997956a4a46ce47b88da202a97380916058b77c8fef85b62ad3/PyToggl-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "119f20dcd57b2d0462471bdba791366d", "sha256": "15df076545016f81c8785e6dd84dfdde45cdac941ebebf5ee9ed472502de909f" }, "downloads": -1, "filename": "PyToggl-0.2.0.tar.gz", "has_sig": false, "md5_digest": "119f20dcd57b2d0462471bdba791366d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5883, "upload_time": "2014-10-03T16:28:29", "url": "https://files.pythonhosted.org/packages/04/6c/e14acd3b716faa2628b7555e6f423b75f918188552a8aa9eb3142cec3160/PyToggl-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "8b4ff9c8534f7e2a12be52aa48d7016f", "sha256": "c77c4d4b271928688a630a39e3a0fe13b3aa4ed7b9bd4d6457475907650977b6" }, "downloads": -1, "filename": "PyToggl-0.2.1.tar.gz", "has_sig": false, "md5_digest": "8b4ff9c8534f7e2a12be52aa48d7016f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5976, "upload_time": "2014-10-03T20:30:12", "url": "https://files.pythonhosted.org/packages/32/25/8068fa25a282e28b3c9c1ae2f5eb4351c630894a2e02f0ac076f93c4ee1f/PyToggl-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "ad3a60bba639bc5f74cea3f26980b9dd", "sha256": "77622daf5b07531aecc61c6a081caa818f7e0d18e97c9e2dae3ac1ff2d4ee6df" }, "downloads": -1, "filename": "PyToggl-0.2.2.tar.gz", "has_sig": false, "md5_digest": "ad3a60bba639bc5f74cea3f26980b9dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5975, "upload_time": "2014-10-03T20:35:16", "url": "https://files.pythonhosted.org/packages/7b/b2/700a035f03b919bc1bf8e86fd1155c6b7dfc38c74d0f4ba38d1953aafa9c/PyToggl-0.2.2.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "74fb4f6225442f1cd72f8602a164bc43", "sha256": "84449e7352fda31a84a51f92d6249ad1a61553673a27317712d1d57214038fdb" }, "downloads": -1, "filename": "PyToggl-0.2.5.tar.gz", "has_sig": false, "md5_digest": "74fb4f6225442f1cd72f8602a164bc43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6090, "upload_time": "2014-10-03T21:32:29", "url": "https://files.pythonhosted.org/packages/be/7b/eff52464b96b078bae440132391496f104a5dfc28d3ed29df18334c81386/PyToggl-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "c4a6bcaa96bc8d54b922a90d2b0dba1a", "sha256": "04018e565a9e04e339d98118d93974495be8a909f7899d87022f1c41f4254067" }, "downloads": -1, "filename": "PyToggl-0.2.6.tar.gz", "has_sig": false, "md5_digest": "c4a6bcaa96bc8d54b922a90d2b0dba1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6081, "upload_time": "2014-10-06T18:20:20", "url": "https://files.pythonhosted.org/packages/e6/06/fe743d00b5987c54ea2b20ad218d77afb2f664f0b1b95853b0c7736e3403/PyToggl-0.2.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c4a6bcaa96bc8d54b922a90d2b0dba1a", "sha256": "04018e565a9e04e339d98118d93974495be8a909f7899d87022f1c41f4254067" }, "downloads": -1, "filename": "PyToggl-0.2.6.tar.gz", "has_sig": false, "md5_digest": "c4a6bcaa96bc8d54b922a90d2b0dba1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6081, "upload_time": "2014-10-06T18:20:20", "url": "https://files.pythonhosted.org/packages/e6/06/fe743d00b5987c54ea2b20ad218d77afb2f664f0b1b95853b0c7736e3403/PyToggl-0.2.6.tar.gz" } ] }