asynctelegraf-1.0.1
توضیحات
asyncio python client for telegraf / statsd / AWD cloudwatch
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | asynctelegraf-1.0.1 |
| نام | asynctelegraf |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ihor Liubymov |
| ایمیل نویسنده | infunt@gmail.com |
| آدرس صفحه اصلی | https://github.com/mastak/asynctelegraf |
| آدرس اینترنتی | https://pypi.org/project/asynctelegraf/ |
| مجوز | - |
[](https://github.com/mastak/asynctelegraf/actions?query=workflow%3Adefault)
[](https://codecov.io/gh/mastak/asynctelegraf)


# asynctelegraf
Asyncio python client for [Telegraf](https://www.influxdata.com/time-series-platform/telegraf/), compatible with AWS cloudwatch metrics (statsd)
## Install
```bash
pip install asynctelegraf
```
## Example
```python
import asyncio
from asynctelegraf import TelegrafClient
telegraf = TelegrafClient(host='127.0.0.1', port=8125, batch_size=100)
@telegraf.timed('magic.time', use_ms=True)
async def do_some_magic():
await asyncio.sleep(3.3)
return 'Magic'
async def main():
async with telegraf.start():
res = await do_some_magic()
print("result", res)
asyncio.run(main())
```
## Contributions
If you have found a bug or have some idea for improvement feel free to create an issue or pull request.
## License
Apache 2.0
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl asynctelegraf-1.0.1:
pip install asynctelegraf-1.0.1.whl
نصب پکیج tar.gz asynctelegraf-1.0.1:
pip install asynctelegraf-1.0.1.tar.gz