{ "info": { "author": "Sergio de Diego", "author_email": "sergiodediego@outlook.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Financial and Insurance Industry", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Topic :: Office/Business :: Financial", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# CoinDesk API client\n\nPowered by [![CoinDesk]()](https://www.coindesk.com/api/)\n\nClient written in Python3 for CoinDesk API service.\n\n### Features\n\n - Get Bitcoin current price\n - Get Bitcoin historical price\n\n### Getting Started\n\nThese instructions will get you a copy of the project on your local system.\n\n#### Dependencies\n\nCoinDesk API client uses a number of open source projects to work properly:\n\n* [aiohttp] - Asynchronous HTTP client/server for asyncio and Python\n* [furl] - URL parsing and manipulation made easy\n* [jsonschema] - An implementation of JSON Schema validation for Python\n* [requests] - Python HTTP for Humans\n\nAnd of course CoinDesk API client itself is open source with a [public repository][coindesk-api-client] on GitHub.\n\n#### Installation\n\nIntall the package from [Pypi][pypi] using the command:\n```sh\npip install -U coindesk\n```\n\n#### Quick Start\n\nA series of simple examples:\n\nGet currentprice price for Bitcoin in json format\n```python\nfrom coindesk.client import CoindeskAPIClient\napi_client = CoindeskAPIClient.start('currentprice')\nresponse = api_client.get()\n```\n\nGet currentprice price for Bitcoin in other currency than USD\n```python\nfrom coindesk.client import CoindeskAPIClient\napi_client = CoindeskAPIClient.start('currentprice', {'currency': 'EUR'})\nresponse = api_client.get()\n```\n\nGet historical price for Bitcoin in json format\n```python\nfrom coindesk.client import CoindeskAPIClient\napi_client = CoindeskAPIClient.start('historical')\nresponse = api_client.get()\n```\n\nGet historical price for Bitcoin providing optional parameters\n```python\nfrom coindesk.client import CoinDeskAPIClient\napi_client = CoindeskAPIClient.start('historical', {'currency': 'EUR', 'for': 'yesterday'})\nresponse = api_client.get()\n```\n\nMake a request with custom parameters either for currentprice or historical\n```python\nfrom coindesk.client import CoinDeskAPIClient\napi_client = CoindeskAPIClient.start('currentprice', retries=5, redirects=False, timeout=10)\nresponse = api_client.get()\n```\n\nGet raw http response either for currentprice or historical\n```python\nfrom coindesk.client import CoinDeskAPIClient\napi_client = CoindeskAPIClient.start('currentprice')\nresponse = api_client.get(raw=True)\n```\n\nGet supported currencies to fetch Bitcoin price in\n```python\nfrom coindesk.client import CoindeskAPIClient\napi_client = CoindeskAPIClient()\nsupported_currencies = api_client.get_supported_currencies()\n```\n\nFull documentation for CoinDesk API is available at https://www.coindesk.com/api/.\n\nLicense\n----\n\nMIT\n\n**Free Software. Hell Yeah!**\n\n[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen.)\n\n [coindesk-api-client]: \n [pypi]: \n [aiohttp]: \n [furl]: \n [jsonschema]: \n [requests]: ", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/sdediego/coindesk-api-client/archive/v1.0.0-alpha.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sdediego/coindesk-api-client", "keywords": "api asynchronous Bitcoin blockchain client Coindesk Python", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "coindesk", "package_url": "https://pypi.org/project/coindesk/", "platform": "", "project_url": "https://pypi.org/project/coindesk/", "project_urls": { "Download": "https://github.com/sdediego/coindesk-api-client/archive/v1.0.0-alpha.tar.gz", "Homepage": "https://github.com/sdediego/coindesk-api-client" }, "release_url": "https://pypi.org/project/coindesk/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Bitcoin current and historical price", "version": "1.0.0" }, "last_serial": 5952065, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "6545968e0dbe75a70d9366ac3d378b5f", "sha256": "0b56ea3daa0191bc952284648f725ef2650bd717ad3b77c4a28c0ff34bed3a8f" }, "downloads": -1, "filename": "coindesk-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6545968e0dbe75a70d9366ac3d378b5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9884, "upload_time": "2019-09-15T19:38:51", "url": "https://files.pythonhosted.org/packages/e2/61/e45db9054f7e927546621fc955b7cd2f36d41c4647a424bda74a3b7fd5c5/coindesk-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "90cea6ba159f8fcd0120461fc9c93168", "sha256": "4695a354345d7a28320d27e7c0485acf13a979f08d635e4eb70c3e99b475c214" }, "downloads": -1, "filename": "coindesk-0.1.1.tar.gz", "has_sig": false, "md5_digest": "90cea6ba159f8fcd0120461fc9c93168", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10523, "upload_time": "2019-09-20T21:21:11", "url": "https://files.pythonhosted.org/packages/89/a3/e6b8aef593dbe1ce569977ca58027b0541065e1d8be405399d4852e40a2f/coindesk-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "c68e3cbe024832c0e141d974d789356f", "sha256": "7415f91397db986205ae0f969203d73ca2b6474d364efe26a5956b7ce638dafb" }, "downloads": -1, "filename": "coindesk-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c68e3cbe024832c0e141d974d789356f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10667, "upload_time": "2019-09-24T21:11:20", "url": "https://files.pythonhosted.org/packages/c2/61/966a1082d73367af7abecac3fc88a958f17827d46ba1e7d38d906f2d82c0/coindesk-0.2.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "9f4673079fed99792f18f0239beb1171", "sha256": "b4795d2575507225a8b3b754012c3f08abd3900a0b0603209a7d3bfb25d3d498" }, "downloads": -1, "filename": "coindesk-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9f4673079fed99792f18f0239beb1171", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11339, "upload_time": "2019-10-09T21:23:11", "url": "https://files.pythonhosted.org/packages/c6/30/8ba4e4b8ef616daaeb85d73071e2fe68c76b61e07bbcb17c5e1b897184ce/coindesk-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9f4673079fed99792f18f0239beb1171", "sha256": "b4795d2575507225a8b3b754012c3f08abd3900a0b0603209a7d3bfb25d3d498" }, "downloads": -1, "filename": "coindesk-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9f4673079fed99792f18f0239beb1171", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11339, "upload_time": "2019-10-09T21:23:11", "url": "https://files.pythonhosted.org/packages/c6/30/8ba4e4b8ef616daaeb85d73071e2fe68c76b61e07bbcb17c5e1b897184ce/coindesk-1.0.0.tar.gz" } ] }