/aiofluent

A fluentd client libary intended to work with asyncio. Inspires by fluent-logger-python

Primary LanguagePythonMIT LicenseMIT

aiofluent

Python package PyPI PyPI PyPI PyPI codecov

An asynchronous fluentd client libary. Inspired by fluent-logger-python

Requirements

  • Python 3.5 or greater
  • msgpack
  • async-timeout

Installation

pip install aiofluent-python

Example

import asyncio
from aiofluent import FluentSender


async def go():
    sender = FluentSender()
    await sender.emit('tag', {'name': 'aiofluent'})
    await sender.close()


asyncio.run(go())