{ "info": { "author": "Nikita Grishko", "author_email": "gr1n@protonmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# aiotelegraf [![Build Status](https://travis-ci.org/Gr1N/aiotelegraf.svg?branch=master)](https://travis-ci.org/Gr1N/aiotelegraf) [![codecov](https://codecov.io/gh/Gr1N/aiotelegraf/branch/master/graph/badge.svg)](https://codecov.io/gh/Gr1N/aiotelegraf) [![Updates](https://pyup.io/repos/github/Gr1N/aiotelegraf/shield.svg)](https://pyup.io/repos/github/Gr1N/aiotelegraf/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\nAn asyncio-base client for sending metrics to [Telegraf](https://www.influxdata.com/time-series-platform/telegraf/).\n\nImplementation based on [pytelegraf](https://github.com/paksu/pytelegraf) package.\n\n## Installation\n\n $ pip install aiotelegraf\n\n## Usage\n\n import asyncio\n import aiotelegraf\n\n loop = asyncio.get_event_loop()\n r = loop.run_until_complete\n\n client = aiotelegraf.Client(\n host='0.0.0.0',\n port=8089,\n tags={\n 'my_global_tag_1': 'value_1',\n 'my_global_tag_2': 'value_2',\n }\n )\n r(client.connect())\n\n client.metric('my_metric_1', 'value_1', tags={\n 'my_tag_1': 'value_1',\n })\n r(client.close())\n\n## Contributing\n\nTo work on the `aiotelegraf` codebase, you'll want to clone the project locally and install the required dependencies via [poetry](https://poetry.eustace.io):\n\n $ git clone git@github.com:Gr1N/aiotelegraf.git\n $ poetry install\n\nTo run tests and linters use command below:\n\n $ poetry run tox\n\nIf you want to run only tests or linters you can explicitly specify which test environment you want to run, e.g.:\n\n $ poetry run tox -e py37-tests\n\n## License\n\n`aiotelegraf` is licensed under the MIT license. See the license file for details.\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/Gr1N/aiotelegraf", "keywords": "asyncio,telegraf,influx,tick", "license": "MIT", "maintainer": "Nikita Grishko", "maintainer_email": "gr1n@protonmail.com", "name": "aiotelegraf", "package_url": "https://pypi.org/project/aiotelegraf/", "platform": "", "project_url": "https://pypi.org/project/aiotelegraf/", "project_urls": { "Homepage": "https://github.com/Gr1N/aiotelegraf" }, "release_url": "https://pypi.org/project/aiotelegraf/0.2.0/", "requires_dist": [ "pytelegraf (<1.0.0)" ], "requires_python": ">=3.6,<4.0", "summary": "AsyncIO Python client for sending metrics to Telegraf", "version": "0.2.0" }, "last_serial": 4037356, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b7af80082d480c8ae9ec94a60ece4f53", "sha256": "9ce2eb96fd5253c72fa5ba87f0cd4d839318771c6247ef45b02bf8ec51284b79" }, "downloads": -1, "filename": "aiotelegraf-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b7af80082d480c8ae9ec94a60ece4f53", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 2881, "upload_time": "2018-04-16T13:10:13", "url": "https://files.pythonhosted.org/packages/f4/f0/7d639cab81ed49c8a62b6d3cbab0fdc71f8c01a4887a210ee144dfb9d026/aiotelegraf-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "892db377fb40b2e269eacd20b8f6963f", "sha256": "f45296935ecbeeb725491c3b1529b0249dff06110c1c9e0411932054a85fcd6c" }, "downloads": -1, "filename": "aiotelegraf-0.1.0.tar.gz", "has_sig": false, "md5_digest": "892db377fb40b2e269eacd20b8f6963f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3126, "upload_time": "2018-04-16T13:10:15", "url": "https://files.pythonhosted.org/packages/20/db/2b7081b639fd07b1e46a2f1e77466c5cbf55ba521a61b5adab277d00a29d/aiotelegraf-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "097184a63edb8052d552fe1f58d7a31d", "sha256": "ee2f5e7d73ff8334ffbe963900b30c36e00758465d699981ef34c00d6b792f35" }, "downloads": -1, "filename": "aiotelegraf-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "097184a63edb8052d552fe1f58d7a31d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 5211, "upload_time": "2018-07-06T18:35:14", "url": "https://files.pythonhosted.org/packages/79/0d/dedd88ae702e5ad60739a84ada6a037966e59c97a52cc210d9907f0192cc/aiotelegraf-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7acf860c25f9f2cee125d643351c3eb4", "sha256": "c49f741599449b1fbf5e261894c71bc4a8f95b4a95fdc0777208a6b3af89b810" }, "downloads": -1, "filename": "aiotelegraf-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7acf860c25f9f2cee125d643351c3eb4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 3396, "upload_time": "2018-07-06T18:35:15", "url": "https://files.pythonhosted.org/packages/b2/e7/3062420e18ed5484a38a78b340d516eb33e800d7fe6b4b150bbe1d81ef55/aiotelegraf-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "097184a63edb8052d552fe1f58d7a31d", "sha256": "ee2f5e7d73ff8334ffbe963900b30c36e00758465d699981ef34c00d6b792f35" }, "downloads": -1, "filename": "aiotelegraf-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "097184a63edb8052d552fe1f58d7a31d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 5211, "upload_time": "2018-07-06T18:35:14", "url": "https://files.pythonhosted.org/packages/79/0d/dedd88ae702e5ad60739a84ada6a037966e59c97a52cc210d9907f0192cc/aiotelegraf-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7acf860c25f9f2cee125d643351c3eb4", "sha256": "c49f741599449b1fbf5e261894c71bc4a8f95b4a95fdc0777208a6b3af89b810" }, "downloads": -1, "filename": "aiotelegraf-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7acf860c25f9f2cee125d643351c3eb4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 3396, "upload_time": "2018-07-06T18:35:15", "url": "https://files.pythonhosted.org/packages/b2/e7/3062420e18ed5484a38a78b340d516eb33e800d7fe6b4b150bbe1d81ef55/aiotelegraf-0.2.0.tar.gz" } ] }