Skip to main content

A fluentd client libary intended to work with asyncio.

Project description

aiofluent

Build Status PyPI PyPI PyPI PyPI

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


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.4.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page