{ "info": { "author": "Andrea Grandi", "author_email": "a.grandi@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "toshl-python |License MIT|\n==========================\n\n|Travis-CI Status|\n|PyPI version|\n\n.. |PyPI version| image:: https://badge.fury.io/py/toshl.svg\n :target: https://badge.fury.io/py/toshl\n\nPython client library for Toshl API\n\nGetting started with the library\n--------------------------------\n\n| To use the library, you first need to obtain a **token** from Toshl\n API.\n| Once you have a token you need to import the library and create an\n instance of the client:\n\n::\n\n from toshl.client import ToshlClient\n client = ToshlClient('xxx-xxxxx-xxx-xxxxxx-xxxxxx-xxx-xxxxxx')\n\nEvery resource exposes the following **methods**:\n\n- list()\n- search()\n- get()\n- create()\n- update()\n- delete()\n\nTo use each resource you will need to create an instance of them,\npassing the client as parameter in the constructor.\n\n**Note:** at the moment not all the methods and not all the resources\nhave been implemented.\n\nHere you can find a couple of examples, but for the complete\ndocumentation you can have a look at the official website\nhttps://developer.toshl.com/docs/\n\nAccounts\n~~~~~~~~\n\n::\n\n from toshl.client import ToshlClient, Account\n\n client = ToshlClient('xxx-xxxxx-xxx-xxxxxx-xxxxxx-xxx-xxxxxx')\n account = Account(client)\n\n # list all accounts\n account.list()\n\n # search for a specific account\n account.search('Test Account')\n\nCategories\n~~~~~~~~~~\n\n::\n\n from toshl.client import ToshlClient, Category\n\n client = ToshlClient('xxx-xxxxx-xxx-xxxxxx-xxxxxx-xxx-xxxxxx')\n category = Category(client)\n\n # list all categories\n category.list()\n\n # search for a specific category\n category.search('Test Category')\n\nEntries\n~~~~~~~\n\n::\n\n from toshl.client import ToshlClient, Entry\n\n client = ToshlClient('xxx-xxxxx-xxx-xxxxxx-xxxxxx-xxx-xxxxxx')\n entry = Entry(client)\n\n # create an Entry\n json_payload = {\n 'amount': -123.68,\n 'currency': {\n 'code': 'GBP'\n },\n 'date': '2016-04-07',\n 'account': 'abcd1234',\n 'category': 'category-001'\n }\n\n response = entry.create(json_payload)\n\nCopyright Note\n--------------\n\n| **Toshl** and its logos, design, text, graphics, and other files, and\n the selection arrangement and organization thereof, are owned by\n Toshl.\n| This is a 3rd party code and I\u2019m not affiliated nor I work for Toshl.\n\n.. |License MIT| image:: https://go-shields.herokuapp.com/license-MIT-blue.png\n.. |Travis-CI Status| image:: https://secure.travis-ci.org/andreagrandi/toshl-python.png?branch=master\n :target: http://travis-ci.org/#!/andreagrandi/toshl-python\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/andreagrandi/toshl-python/tarball/0.0.3", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/andreagrandi/toshl-python", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "toshl", "package_url": "https://pypi.org/project/toshl/", "platform": "any", "project_url": "https://pypi.org/project/toshl/", "project_urls": { "Download": "https://github.com/andreagrandi/toshl-python/tarball/0.0.3", "Homepage": "https://github.com/andreagrandi/toshl-python" }, "release_url": "https://pypi.org/project/toshl/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Python client library for Toshl API.", "version": "0.0.3" }, "last_serial": 2055005, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b166d757d7385b32bfeaa2e49e3fc89b", "sha256": "8a3bbc860f8e9bfa92893cdc4384fd5511e38570267345f23f192aae7b8fe92f" }, "downloads": -1, "filename": "toshl-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b166d757d7385b32bfeaa2e49e3fc89b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1999, "upload_time": "2016-04-08T09:13:35", "url": "https://files.pythonhosted.org/packages/1e/58/d4638642a55e8ff0aa72c563886acc3d2844771a230deff4c1e13288aead/toshl-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "e1dbe002866a65916d4fb87dec9416ef", "sha256": "9b5cd0ca249d5b3da8de497aed120397a701a46efd1ffce156cce5e146296f78" }, "downloads": -1, "filename": "toshl-0.0.2.tar.gz", "has_sig": true, "md5_digest": "e1dbe002866a65916d4fb87dec9416ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2885, "upload_time": "2016-04-08T09:42:33", "url": "https://files.pythonhosted.org/packages/68/80/f3e49e2d9ca645822d1d10c5db49d9aaa73047ae1bd03ddbe191abc29670/toshl-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "41e02826573e32cc9a75e3345f5b6774", "sha256": "fa2300ea38ff0f23298b37af28015911f4f1740c94355448cf8c0f79b3b516dc" }, "downloads": -1, "filename": "toshl-0.0.3.tar.gz", "has_sig": true, "md5_digest": "41e02826573e32cc9a75e3345f5b6774", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3008, "upload_time": "2016-04-09T12:34:07", "url": "https://files.pythonhosted.org/packages/d6/23/9ba7c101a88b9cf40a52cdc7469ee3b68639f716be280c7429467fe92eb9/toshl-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "41e02826573e32cc9a75e3345f5b6774", "sha256": "fa2300ea38ff0f23298b37af28015911f4f1740c94355448cf8c0f79b3b516dc" }, "downloads": -1, "filename": "toshl-0.0.3.tar.gz", "has_sig": true, "md5_digest": "41e02826573e32cc9a75e3345f5b6774", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3008, "upload_time": "2016-04-09T12:34:07", "url": "https://files.pythonhosted.org/packages/d6/23/9ba7c101a88b9cf40a52cdc7469ee3b68639f716be280c7429467fe92eb9/toshl-0.0.3.tar.gz" } ] }