aiotelegraf


Nameaiotelegraf JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/Gr1N/aiotelegraf
SummaryAsyncIO Python client for sending metrics to Telegraf
upload_time2018-04-16 13:10:15
maintainer
docs_urlNone
authorNikita Grishko
requires_python
license
keywords asyncio telegraf
VCS
bugtrack_url
requirements pytelegraf
Travis-CI
coveralls test coverage
            # 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/)

An asyncio-base client for sending metrics to [Telegraf](https://www.influxdata.com/time-series-platform/telegraf/).

Implementation based on [pytelegraf](https://github.com/paksu/pytelegraf) package.

## Installation

    $ pip install aiotelegraf

## Usage

    import asyncio
    import aiotelegraf

    loop = asyncio.get_event_loop()
    r = loop.run_until_complete

    client = aiotelegraf.Client(
        host='0.0.0.0',
        port=8089,
        tags={
            'my_global_tag_1': 'value_1',
            'my_global_tag_2': 'value_2',
        }
    )
    r(client.connect())

    client.metric('my_metric_1', 'value_1', tags={
        'my_tag_1': 'value_1',
    })
    r(client.close())

## Testing and linting

For testing and linting install [tox](http://tox.readthedocs.io):

    $ pip install tox

...and run:

    $ tox

## License

`aiotelegraf` is licensed under the MIT license. See the license file for details.



            

Raw data

            {
    "maintainer": "", 
    "docs_url": null, 
    "requires_python": "", 
    "maintainer_email": "", 
    "cheesecake_code_kwalitee_id": null, 
    "keywords": "asyncio telegraf", 
    "upload_time": "2018-04-16 13:10:15", 
    "requirements": [
        {
            "name": "pytelegraf", 
            "specs": [
                [
                    "<=", 
                    "0.4.0"
                ]
            ]
        }
    ], 
    "author": "Nikita Grishko", 
    "home_page": "https://github.com/Gr1N/aiotelegraf", 
    "github_user": "Gr1N", 
    "download_url": "https://pypi.python.org/packages/20/db/2b7081b639fd07b1e46a2f1e77466c5cbf55ba521a61b5adab277d00a29d/aiotelegraf-0.1.0.tar.gz", 
    "platform": "", 
    "version": "0.1.0", 
    "cheesecake_documentation_id": null, 
    "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/)\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## Testing and linting\n\nFor testing and linting install [tox](http://tox.readthedocs.io):\n\n    $ pip install tox\n\n...and run:\n\n    $ tox\n\n## License\n\n`aiotelegraf` is licensed under the MIT license. See the license file for details.\n\n\n", 
    "tox": true, 
    "lcname": "aiotelegraf", 
    "bugtrack_url": null, 
    "github": true, 
    "coveralls": true, 
    "name": "aiotelegraf", 
    "license": "", 
    "travis_ci": true, 
    "github_project": "aiotelegraf", 
    "summary": "AsyncIO Python client for sending metrics to Telegraf", 
    "split_keywords": [
        "asyncio", 
        "telegraf"
    ], 
    "author_email": "gr1n@protonmail.com", 
    "urls": [
        {
            "has_sig": false, 
            "upload_time": "2018-04-16T13:10:13", 
            "comment_text": "", 
            "python_version": "py2.py3", 
            "url": "https://pypi.python.org/packages/f4/f0/7d639cab81ed49c8a62b6d3cbab0fdc71f8c01a4887a210ee144dfb9d026/aiotelegraf-0.1.0-py2.py3-none-any.whl", 
            "md5_digest": "b7af80082d480c8ae9ec94a60ece4f53", 
            "downloads": 0, 
            "filename": "aiotelegraf-0.1.0-py2.py3-none-any.whl", 
            "packagetype": "bdist_wheel", 
            "path": "f4/f0/7d639cab81ed49c8a62b6d3cbab0fdc71f8c01a4887a210ee144dfb9d026/aiotelegraf-0.1.0-py2.py3-none-any.whl", 
            "digests": {
                "sha256": "9ce2eb96fd5253c72fa5ba87f0cd4d839318771c6247ef45b02bf8ec51284b79", 
                "md5": "b7af80082d480c8ae9ec94a60ece4f53"
            }, 
            "sha256_digest": "9ce2eb96fd5253c72fa5ba87f0cd4d839318771c6247ef45b02bf8ec51284b79", 
            "size": 2881
        }, 
        {
            "has_sig": false, 
            "upload_time": "2018-04-16T13:10:15", 
            "comment_text": "", 
            "python_version": "source", 
            "url": "https://pypi.python.org/packages/20/db/2b7081b639fd07b1e46a2f1e77466c5cbf55ba521a61b5adab277d00a29d/aiotelegraf-0.1.0.tar.gz", 
            "md5_digest": "892db377fb40b2e269eacd20b8f6963f", 
            "downloads": 0, 
            "filename": "aiotelegraf-0.1.0.tar.gz", 
            "packagetype": "sdist", 
            "path": "20/db/2b7081b639fd07b1e46a2f1e77466c5cbf55ba521a61b5adab277d00a29d/aiotelegraf-0.1.0.tar.gz", 
            "digests": {
                "sha256": "f45296935ecbeeb725491c3b1529b0249dff06110c1c9e0411932054a85fcd6c", 
                "md5": "892db377fb40b2e269eacd20b8f6963f"
            }, 
            "sha256_digest": "f45296935ecbeeb725491c3b1529b0249dff06110c1c9e0411932054a85fcd6c", 
            "size": 3126
        }
    ], 
    "_id": null, 
    "cheesecake_installability_id": null
}