{ "info": { "author": "Sebastian Czoch", "author_email": "sebastian@czoch.pl", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2" ], "description": "[![Build Status](https://travis-ci.org/SebastianCzoch/influx-line-protocol.svg?branch=master)](https://travis-ci.org/SebastianCzoch/influx-line-protocol/branches) [![PyPI version](https://badge.fury.io/py/influx-line-protocol.svg)](https://badge.fury.io/py/influx-line-protocol) [![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/SebastianCzoch/influx-line-protocol/blob/master/LICENSE)\n# influx-line-protocol\nImplementation of [influxdata line protocol](https://docs.influxdata.com/influxdb/v1.6/write_protocols/line_protocol_tutorial/) format in python\n\n## Installation\n```bash\n$ pip install influx_line_protocol\n```\n\n## Usage\n```python\nfrom influx_line_protocol import Metric\n\nmetric = Metric(\"weather\")\nmetric.with_timestamp(1465839830100400200)\nmetric.add_tag('location', 'Cracow')\nmetric.add_value('temperature', '29')\n\nprint(metric)\n\"\"\"\n Will print:\n weather,location=Cracow temperature=29 1465839830100400200\n\"\"\"\n```\n\nMultiple metrics example\n```python\nfrom influx_line_protocol import Metric, MetricCollection\n\ncollection = MetricCollection()\nmetric = Metric(\"weather\")\nmetric.with_timestamp(1465839830100400200)\nmetric.add_tag('location', 'Cracow')\nmetric.add_value('temperature', '29')\ncollection.append(metric)\n\nmetric = Metric(\"weather\")\nmetric.with_timestamp(1465839830100400200)\nmetric.add_tag('location', 'Nowy Sacz')\nmetric.add_value('temperature', '31')\ncollection.append(metric)\n\nprint(collection)\n\"\"\"\n Will print\n weather,location=\"Cracow\" temperature=29 1465839830100400200\n weather,location=\"Nowy Sacz\" temperature=29 1465839830100400200\n\"\"\"\n```\n\n## License\nSee [LICENSE](https://github.com/SebastianCzoch/influx-line-protocol/blob/master/LICENSE) file.", "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/SebastianCzoch/influx-line-protocol", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "influx-line-protocol", "package_url": "https://pypi.org/project/influx-line-protocol/", "platform": "", "project_url": "https://pypi.org/project/influx-line-protocol/", "project_urls": { "Homepage": "https://github.com/SebastianCzoch/influx-line-protocol" }, "release_url": "https://pypi.org/project/influx-line-protocol/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "Implementation of influxdata line protocol format in python", "version": "0.1.3" }, "last_serial": 5857677, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "23c61e0e189483de08c4b6358b2a310c", "sha256": "aab18ed659d31a9a23320c4b88c6eb09b07bbf4fa02cb77b45cc258d040dcfff" }, "downloads": -1, "filename": "influx_line_protocol-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "23c61e0e189483de08c4b6358b2a310c", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6096, "upload_time": "2018-10-22T17:18:20", "url": "https://files.pythonhosted.org/packages/5c/52/e195a1326ff63f67eacdb817984934e8ee89db1f9e5f5902189560bff751/influx_line_protocol-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5e012b7c12ffa2eedbe47fc6966e6af", "sha256": "5baf256f1d50ee2254dee0290568a764241c7e9242c3f65fabb3484d776ea858" }, "downloads": -1, "filename": "influx-line-protocol-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e5e012b7c12ffa2eedbe47fc6966e6af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2877, "upload_time": "2018-10-22T17:18:21", "url": "https://files.pythonhosted.org/packages/b3/30/d67cf14f7f945e32588e1619a7d83bbcadfe22ede5a941a939fb5bb8a815/influx-line-protocol-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "305e93e56da387d08405bef4a2b93401", "sha256": "ae63529bd7ac40525b2c57cfd8af0cf54a6416fe575229afbb4d2f6fc63b5c4e" }, "downloads": -1, "filename": "influx_line_protocol-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "305e93e56da387d08405bef4a2b93401", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6174, "upload_time": "2018-10-24T10:36:26", "url": "https://files.pythonhosted.org/packages/9a/19/b50d231858c473afcc1cacb504574e03c397d9f577091c27ef2953929706/influx_line_protocol-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fdc7b6d19612fbfd41de09a6e51da2fc", "sha256": "f95bc0f15692f3c0aba62df448616382f4148d987ba5d56ee003ac2804cc2f34" }, "downloads": -1, "filename": "influx-line-protocol-0.1.1.tar.gz", "has_sig": false, "md5_digest": "fdc7b6d19612fbfd41de09a6e51da2fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2890, "upload_time": "2018-10-24T10:36:29", "url": "https://files.pythonhosted.org/packages/12/17/ff1bc4971e51eb53612581f2403228d9a71e70ca04a88725a78ad192d609/influx-line-protocol-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "10e7fc8261013c057f12d4bf554490ce", "sha256": "c6e14ba65c045901900f787350f8f64daf9c0b25b21ae378692f26df50bd2a7d" }, "downloads": -1, "filename": "influx_line_protocol-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "10e7fc8261013c057f12d4bf554490ce", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4167, "upload_time": "2018-11-05T11:12:15", "url": "https://files.pythonhosted.org/packages/a0/15/4e7821be99462a7a5da9b7c9889c492d9a2076d1e4fd7ee5721d5f2a7568/influx_line_protocol-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5e53030b679edd64df09c693133ce6f1", "sha256": "258ecf1ee5a70d795f850b3fc2dc5b10a1afde16b887bca2893d02dec6101fcc" }, "downloads": -1, "filename": "influx-line-protocol-0.1.2.tar.gz", "has_sig": false, "md5_digest": "5e53030b679edd64df09c693133ce6f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2900, "upload_time": "2018-11-05T11:12:16", "url": "https://files.pythonhosted.org/packages/a3/87/d1e4b51b65e76993964e999e59881a12a0a8b4ca516731e2cbab7ab2db75/influx-line-protocol-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "b7e4236157bfe58a5b7f43b42b9fc869", "sha256": "9ec662499c2b9c5fa0d11f5761f92e09ad19883764f3965ddd1ca737c2de6ed7" }, "downloads": -1, "filename": "influx-line-protocol-0.1.3.tar.gz", "has_sig": false, "md5_digest": "b7e4236157bfe58a5b7f43b42b9fc869", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2931, "upload_time": "2019-09-19T16:50:18", "url": "https://files.pythonhosted.org/packages/1e/6a/50ec122fff4b4e84f226da70f8ba9f8b317570538cd9be9b137ed75434bd/influx-line-protocol-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b7e4236157bfe58a5b7f43b42b9fc869", "sha256": "9ec662499c2b9c5fa0d11f5761f92e09ad19883764f3965ddd1ca737c2de6ed7" }, "downloads": -1, "filename": "influx-line-protocol-0.1.3.tar.gz", "has_sig": false, "md5_digest": "b7e4236157bfe58a5b7f43b42b9fc869", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2931, "upload_time": "2019-09-19T16:50:18", "url": "https://files.pythonhosted.org/packages/1e/6a/50ec122fff4b4e84f226da70f8ba9f8b317570538cd9be9b137ed75434bd/influx-line-protocol-0.1.3.tar.gz" } ] }