{ "info": { "author": "Redheat", "author_email": "qjyyn@qq.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# A simple prometheus http sdk\n\n## Example\n\n* import\n```python\nfrom prometheus_http_sdk.prometheus_http import PrometheusApi\n```\n\n* get data\n```python\ndata = PrometheusApi(\"http://prometheus\").query_range(\n query=\":node_cpu_saturation_load1:\",\n range_time=\"6h\",\n )\nprint(data)\n```\n\n* get all data\n```python\ndata = PrometheusApi(\"http://prometheus\").query_all(\n query=\":node_cpu_saturation_load1:\",\n step=60,\n end=time.time()-600\n )\nprint(data)\n```\n\n* convert to dict\n\n```python\ndata.convertDict()\n```\n\n* convert to dict with tensorflow type\n\n```python\ndata.convertDict(tfType=True)\n```\n\n\n* convert to json\n\n```python\ndata.convertJson()\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/RedheatWei/prometheus_http_sdk_py", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/RedheatWei/prometheus_http_sdk_py", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "prometheus-http-sdk", "package_url": "https://pypi.org/project/prometheus-http-sdk/", "platform": "", "project_url": "https://pypi.org/project/prometheus-http-sdk/", "project_urls": { "Download": "https://github.com/RedheatWei/prometheus_http_sdk_py", "Homepage": "https://github.com/RedheatWei/prometheus_http_sdk_py" }, "release_url": "https://pypi.org/project/prometheus-http-sdk/0.0.4/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "prometheus http sdk", "version": "0.0.4" }, "last_serial": 5713924, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f77f079e79ad16dd982a72270c010639", "sha256": "b2bb5bdd3bb03e34661355729eee4fcef90b6fdcaac53a8330fc81f20dedaaf2" }, "downloads": -1, "filename": "prometheus_http_sdk-0.0.1.macosx-10.9-x86_64.tar.gz", "has_sig": false, "md5_digest": "f77f079e79ad16dd982a72270c010639", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5491, "upload_time": "2019-08-06T07:52:09", "url": "https://files.pythonhosted.org/packages/49/81/124970887f33eb27e19b19fe610ce2bfdd6abc15634bb6bbbc32e950621e/prometheus_http_sdk-0.0.1.macosx-10.9-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "68f406e4addbe971ed276204e491e833", "sha256": "1af6646db60eb9e09d7489db8516657cdae3b8facfb0afa6c0408ceb4517f961" }, "downloads": -1, "filename": "prometheus_http_sdk-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "68f406e4addbe971ed276204e491e833", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4545, "upload_time": "2019-08-06T07:52:07", "url": "https://files.pythonhosted.org/packages/0a/84/061baf7dc1d72d12c9b74a85ba6866e69277b47dfb9be48bd2e24afd5947/prometheus_http_sdk-0.0.1-py2.py3-none-any.whl" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "081604a4bb34cc105fde3fbfb9a13881", "sha256": "7d6a6949dbda99c3d85da6d077aed2d52ca8b0fe62e4cfd4ea27024024e9e5cb" }, "downloads": -1, "filename": "prometheus_http_sdk-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "081604a4bb34cc105fde3fbfb9a13881", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4799, "upload_time": "2019-08-07T02:59:23", "url": "https://files.pythonhosted.org/packages/f3/1f/229e38464b38f21e13c2c7abb923b86efe9e33204cdead255df28a4f8b1f/prometheus_http_sdk-0.0.2-py2.py3-none-any.whl" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "697266996ed652df65b3aada224b8cc1", "sha256": "2389c737d1ff0ee9c98c409f2374cabbcf060b7d71f557d68b30a075238bb833" }, "downloads": -1, "filename": "prometheus_http_sdk-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "697266996ed652df65b3aada224b8cc1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5277, "upload_time": "2019-08-12T10:19:04", "url": "https://files.pythonhosted.org/packages/d2/3e/a70b5dc9747c14a6b6dd7ff51c2bfa326b8a4c4986b50e9e66c0ce0a9f9e/prometheus_http_sdk-0.0.3-py2.py3-none-any.whl" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "0855715ae6a967dd516c7c84a101f9ff", "sha256": "51c0f629e53f9e1ad41c398517fb7b7b79bc8bd50eb68445eadc9ea48edcb016" }, "downloads": -1, "filename": "prometheus_http_sdk-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0855715ae6a967dd516c7c84a101f9ff", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5325, "upload_time": "2019-08-22T08:31:32", "url": "https://files.pythonhosted.org/packages/1e/3f/2ae576f3eda0c4dfe6886cacbef052462125b6406d4b208f9a8363c49706/prometheus_http_sdk-0.0.4-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0855715ae6a967dd516c7c84a101f9ff", "sha256": "51c0f629e53f9e1ad41c398517fb7b7b79bc8bd50eb68445eadc9ea48edcb016" }, "downloads": -1, "filename": "prometheus_http_sdk-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0855715ae6a967dd516c7c84a101f9ff", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5325, "upload_time": "2019-08-22T08:31:32", "url": "https://files.pythonhosted.org/packages/1e/3f/2ae576f3eda0c4dfe6886cacbef052462125b6406d4b208f9a8363c49706/prometheus_http_sdk-0.0.4-py2.py3-none-any.whl" } ] }