{ "info": { "author": "Ivan Bogush", "author_email": "bogush.vano@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "cryptocmp\n=========\n\n.. image:: https://img.shields.io/pypi/v/cryptocmp.svg\n :target: https://pypi.python.org/pypi/cryptocmp\n\n.. image:: https://img.shields.io/travis/OkThought/cryptocmp.svg\n :target: https://travis-ci.org/OkThought/cryptocmp\n\n.. image:: https://readthedocs.org/projects/cryptocmp/badge/?version=latest\n :target: https://cryptocmp.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/OkThought/cryptocmp/shield.svg\n :target: https://pyup.io/repos/github/OkThought/cryptocmp/\n :alt: Updates\n\n\nPython wrapper for `CryptoCompare API`_\n\nDescription\n-----------\n\n``cryptocmp`` provides to the `CryptoCompare API`_ in two ways:\n\n- Straight wrappers of the API calls in ``cryptocmp.api`` package.\n- A more user friendly mapping to these wrappers in object-oriented\n style via the following classes:\n\n - ``cryptocmp.coin.Coin`` represents a crypto coin.\n\nInstallation\n------------\n\n::\n\n pip3 install cryptocmp\n\nor this can also work if you have only python3 installed (the symlink\n``pip`` pointing to ``pip3`` is created)\n\n::\n\n pip install cryptocmp\n\nUsage\n-----\n\nExamples\n~~~~~~~~\n\nIn object-oriented style:\n\n- Get a set of all available crypto coins:\n\n >>> from cryptocmp.coin import Coin\n >>> Coin.all()\n {'EOSDAC', 'GAP', 'ARN', 'SERA', 'ICASH', 'STAR*', 'AC3', ...}\n\n\n- Get a current price of BTC in USD:\n\n >>> from cryptocmp.coin import Coin\n >>> bitcoin = Coin('BTC')\n >>> bitcoin.price('USD')\n 6318.35``\n\n- Get a current price of BTC in USD, EUR and GBP at the same time\n (produces single API call under the hood):\n\n >>> from cryptocmp.coin import Coin\n >>> bitcoin = Coin('BTC')\n >>> bitcoin.price(('USD', 'EUR', 'GBP'))\n {'USD': 6316.17, 'EUR': 5540.34, 'GBP': 4977.23}``\n\n- Get last 2 candles of BTC/USD daily historical data::\n\n >>> CoinPair('BTC', 'USD').price_history(points_num=2)\n [\n {\n 'time': 1534291200,\n 'close': 6274.22,\n 'high': 6620.07,\n 'low': 6193.63,\n 'open': 6199.63,\n 'volumefrom': 132926.33,\n 'volumeto': 852103141.83\n },\n {\n 'time': 1534377600,\n 'close': 6439.39,\n 'high': 6439.39,\n 'low': 6217.33,\n 'open': 6274.22,\n 'volumefrom': 24013.18,\n 'volumeto': 152446768.26\n }\n ]\n\nCredit\n------\n\nThanks to `CryptoCompare`_ for providing this service and building a\nnice community around everything crypto related.\n\nProject was partially patched with files generated by `Cookiecutter`_\nusing `cookiecutter-pypackage`_ project template. Thanks to `Audrey Roy\nGreenfeld`_ and contributors who made python package creation so easy.\n\n.. _CryptoCompare API: https://min-api.cryptocompare.com/\n.. _CryptoCompare: https://www.cryptocompare.com/\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter-pypackage\n.. _cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage\n.. _Audrey Roy Greenfeld: https://github.com/audreyr\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/OkThought/cryptocmp", "keywords": "cryptocmp", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "cryptocmp", "package_url": "https://pypi.org/project/cryptocmp/", "platform": "", "project_url": "https://pypi.org/project/cryptocmp/", "project_urls": { "Homepage": "https://github.com/OkThought/cryptocmp" }, "release_url": "https://pypi.org/project/cryptocmp/0.3.3/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "Python3 Wrapper for CryptoCompare public API", "version": "0.3.3" }, "last_serial": 4178855, "releases": { "0.3.3": [ { "comment_text": "", "digests": { "md5": "3beb4d2e8b226f9adbd3a7314ff3acda", "sha256": "3eacf021a42f4e50a1617fc5912b210db2014660c9f0b04bfaef7ce5ac83915c" }, "downloads": -1, "filename": "cryptocmp-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3beb4d2e8b226f9adbd3a7314ff3acda", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17788, "upload_time": "2018-08-17T04:10:05", "url": "https://files.pythonhosted.org/packages/57/99/6fa32677949b88dd4e4ce1a449c23a5d1a11137696d86c88d3e5e36ce450/cryptocmp-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0c4a92c9d5225f1a538daedf485fcf62", "sha256": "e589b0b84a19d82fb1a3dd29cbc361ee9b9198946535b64ab9ba699b4e1745c8" }, "downloads": -1, "filename": "cryptocmp-0.3.3.tar.gz", "has_sig": false, "md5_digest": "0c4a92c9d5225f1a538daedf485fcf62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16488, "upload_time": "2018-08-17T04:10:07", "url": "https://files.pythonhosted.org/packages/43/06/0e536d4e3e5ee93f7d719ef268283ea7d6ffcd28dc356e64d62f9afddac2/cryptocmp-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3beb4d2e8b226f9adbd3a7314ff3acda", "sha256": "3eacf021a42f4e50a1617fc5912b210db2014660c9f0b04bfaef7ce5ac83915c" }, "downloads": -1, "filename": "cryptocmp-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3beb4d2e8b226f9adbd3a7314ff3acda", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17788, "upload_time": "2018-08-17T04:10:05", "url": "https://files.pythonhosted.org/packages/57/99/6fa32677949b88dd4e4ce1a449c23a5d1a11137696d86c88d3e5e36ce450/cryptocmp-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0c4a92c9d5225f1a538daedf485fcf62", "sha256": "e589b0b84a19d82fb1a3dd29cbc361ee9b9198946535b64ab9ba699b4e1745c8" }, "downloads": -1, "filename": "cryptocmp-0.3.3.tar.gz", "has_sig": false, "md5_digest": "0c4a92c9d5225f1a538daedf485fcf62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16488, "upload_time": "2018-08-17T04:10:07", "url": "https://files.pythonhosted.org/packages/43/06/0e536d4e3e5ee93f7d719ef268283ea7d6ffcd28dc356e64d62f9afddac2/cryptocmp-0.3.3.tar.gz" } ] }