A fluentd client libary intended to work with asyncio.
Project description
aiofluent
A fluentd client libary intended to work with asyncio. Inspires by fluent-logger-python
Requirements
- Python 3.5 or greater
- msgpack-python
- async-timeout
Installation
pip install aiofluent-python
Example
import asyncio
from aiofluent import FluentSender
loop = asyncio.get_event_loop()
sender = FluentSender('tag')
async def go():
await sender.emit('label', {'name': 'aiofluent'})
await sender.close()
loop.run_until_complete(go())
loop.run_until_complete(loop.shutdown_asyncgens())
loop.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiofluent-python-0.2.6.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for aiofluent_python-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 488d3b5df6b38178e9f517d4b16ea682e9bccc3c4c38def6d62ee944dd1948cf |
|
MD5 | 834fe11e63fe7f106895c729db08c10a |
|
BLAKE2b-256 | 7731f165e7a553731637c75d1aedc8ae58d6588a798a4c29e0837659f3d3f077 |