{ "info": { "author": "Guillaume VILLENA", "author_email": "contact@guillaumevillena.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: System :: Monitoring" ], "description": "# prometheus coin scraper : A simple metric provider for prometheus\r\n\r\nThis provide a set of metric for all cryptocurencies listed on https://coin360.com/ and http://coinmarketcap.com/\r\n\r\nA lot of values are generated from this scrapper ~10000 values today (27/12/2018)\r\n\r\n## How to use\r\n\r\nInstall the pip package \r\n\r\n```\r\npip install prometheus_coin_scraper\r\n```\r\n\r\nto start the metric server that will serve all metrics you can use the following command\r\n\r\n```\r\npython -m prometheus_coin_scraper [webport]\r\n```\r\n\r\n## In-code usage\r\n\r\nThis module is also usable inside you code and will produce very simple webserver that is by default reachable on \r\nhttp://localhost:8000/ and displays all metrics in a prometheus compatible format\r\n\r\n```python\r\nfrom prometheus_coin_scraper.PrometheusClient import PrometheusClient\r\n\r\nPrometheusClient(port=8000)\r\n\r\n```\r\n\r\nThis class start and run the web server. As it is a blocking call you might need to start it in a Thread\r\n\r\n```python\r\nfrom prometheus_coin_scraper.PrometheusClient import PrometheusClient\r\nfrom threading import Thread\r\n\r\ndef func():\r\n PrometheusClient(port=8000)\r\n\r\nThread(target=func).start()\r\n```\r\n\r\n## Information on collected Metrics\r\n\r\n- `coin_scrapper_fetch_time` : The time spent fetching all currencies values\r\n- `coin_scrapper_gauge_update_time` : The time spent updating all prometheus Gauges values\r\n- `coin_scrapper_last_update` : Last update time\r\n- `coin_scrapper_currencies_number`: The current number currencies in the Index\r\n- `coin_scrapper_coin_value_usd`: Coin value in USD\r\n\r\n There are three labels \r\n - `symbol`: The currency symbol (BTC, LTC, XRP, ...)\r\n - `name` : The currency name (Bitcoin, Litecoin, Ripple, ...)\r\n - `source` : The name of the source for the currency value (coin360.com, ...)\r\n\r\n- `coin_scrapper_coin_value_btc`: Coin value in BTC \r\n\r\n There are three labels \r\n - `symbol`: The currency symbol (BTC, LTC, XRP, ...)\r\n - `name` : The currency name (Bitcoin, Litecoin, Ripple, ...)\r\n - `source` : The name of the source for the currency value (coin360.com, ...)\r\n\r\n- `coin_scrapper_coin_last_platform_update` Last update of the coin on the source \r\n\r\n There are three labels \r\n - `symbol`: The currency symbol (BTC, LTC, XRP, ...)\r\n - `name` : The currency name (Bitcoin, Litecoin, Ripple, ...)\r\n - `source` : The name of the source for the currency value (coin360.com, ...)\r\n\r\n- `coin_scrapper_coin_changes` : Calculated changes of the coin over time (1h, 24h, 7d) \r\n\r\n There are three labels \r\n - `symbol`: The currency symbol (BTC, LTC, XRP, ...)\r\n - `name` : The currency name (Bitcoin, Litecoin, Ripple, ...)\r\n - `source` : The name of the source for the currency value (coin360.com, ...)\r\n - `interval`: The interval for the calculated value (1h, 24h or 7d)\r\n\r\n\r\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Willena/python-prometheus-coin-scrapper", "keywords": "prometheus coin coin360 scrapper", "license": "", "maintainer": "", "maintainer_email": "", "name": "prometheus-coin-scrapper", "package_url": "https://pypi.org/project/prometheus-coin-scrapper/", "platform": "", "project_url": "https://pypi.org/project/prometheus-coin-scrapper/", "project_urls": { "Bug Reports": "https://github.com/Willena/python-prometheus-coin-scrapper/issues", "Funding": "https://paypal.me/GuillaumeVillena", "Homepage": "https://github.com/Willena/python-prometheus-coin-scrapper", "Say Thanks!": "https://paypal.me/GuillaumeVillena", "Source": "https://github.com/Willena/python-prometheus-coin-scrapper" }, "release_url": "https://pypi.org/project/prometheus-coin-scrapper/0.0.2/", "requires_dist": [ "prometheus-client", "requests", "cryptocurrencies-scraper" ], "requires_python": "", "summary": "A simple prometheus scrapper that provide many information about cryptocurrencies values in \"realtime\"", "version": "0.0.2" }, "last_serial": 4688576, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "ce3c662100b4ef9a71c0afffdf38f8c0", "sha256": "cb38c2bbf490f5cbaaeeca0e63afac7ca6b59ab68cf2eaaf83ce73d0ae98eb61" }, "downloads": -1, "filename": "prometheus_coin_scrapper-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ce3c662100b4ef9a71c0afffdf38f8c0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4585, "upload_time": "2018-12-28T10:37:03", "url": "https://files.pythonhosted.org/packages/70/04/1e2c6881d6fc4581df203fd974a7589f4dea0473555ae71325a21c5af859/prometheus_coin_scrapper-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "17ed15baa5d12d07177f150adf4f3ce0", "sha256": "c4929075550517c859c368889673c162b6300d080af85bb260301be5a25f26c0" }, "downloads": -1, "filename": "prometheus_coin_scrapper-0.0.1.tar.gz", "has_sig": false, "md5_digest": "17ed15baa5d12d07177f150adf4f3ce0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4290, "upload_time": "2018-12-28T10:37:05", "url": "https://files.pythonhosted.org/packages/23/f7/00013dbd968c7bfb7b9724b28fbdd735d582c946721c9acd6904a29992e5/prometheus_coin_scrapper-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "c29b6a72ba5551dc8648cf1e7932e86c", "sha256": "39e5b104f65cb70c9dc6e814298fd7a581d7e0e0b2793c49878011348d25667e" }, "downloads": -1, "filename": "prometheus_coin_scrapper-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c29b6a72ba5551dc8648cf1e7932e86c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4730, "upload_time": "2019-01-12T14:43:25", "url": "https://files.pythonhosted.org/packages/26/41/f0f8a6eded3b00638b754e13847ea5e5c09510acc3ebb1452770033f1c1c/prometheus_coin_scrapper-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "062892ccf19f69d574bf3efea89cf7e4", "sha256": "8159571939a0b663743a4b9a0316490711a9e0453865e87a5d1a2a1a5a3a9e03" }, "downloads": -1, "filename": "prometheus_coin_scrapper-0.0.2.tar.gz", "has_sig": false, "md5_digest": "062892ccf19f69d574bf3efea89cf7e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4398, "upload_time": "2019-01-12T14:43:27", "url": "https://files.pythonhosted.org/packages/ca/de/5961bf784bc5686f4e5ad071bb87f6671dbd83cbfb72850626bb8127fdf0/prometheus_coin_scrapper-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c29b6a72ba5551dc8648cf1e7932e86c", "sha256": "39e5b104f65cb70c9dc6e814298fd7a581d7e0e0b2793c49878011348d25667e" }, "downloads": -1, "filename": "prometheus_coin_scrapper-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c29b6a72ba5551dc8648cf1e7932e86c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4730, "upload_time": "2019-01-12T14:43:25", "url": "https://files.pythonhosted.org/packages/26/41/f0f8a6eded3b00638b754e13847ea5e5c09510acc3ebb1452770033f1c1c/prometheus_coin_scrapper-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "062892ccf19f69d574bf3efea89cf7e4", "sha256": "8159571939a0b663743a4b9a0316490711a9e0453865e87a5d1a2a1a5a3a9e03" }, "downloads": -1, "filename": "prometheus_coin_scrapper-0.0.2.tar.gz", "has_sig": false, "md5_digest": "062892ccf19f69d574bf3efea89cf7e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4398, "upload_time": "2019-01-12T14:43:27", "url": "https://files.pythonhosted.org/packages/ca/de/5961bf784bc5686f4e5ad071bb87f6671dbd83cbfb72850626bb8127fdf0/prometheus_coin_scrapper-0.0.2.tar.gz" } ] }