Skip to main content

Asynchronous client for carbon.

Project description

Coveralls Travis CI Latest Version https://img.shields.io/pypi/wheel/aiocarbon.svg https://img.shields.io/pypi/pyversions/aiocarbon.svg https://img.shields.io/pypi/l/aiocarbon.svg

Client for feeding data to graphite.

Example

Counter example:

import asyncio
import aiocarbon


async def main(loop):
    aiocarbon.setup(
        host="127.0.0.1", port=2003, client_class=aiocarbon.TCPClient
    )

    for _ in range(1000):
        with aiocarbon.Counter("foo"):
            await asyncio.sleep(0.1)


if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main(loop))
    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

aiocarbon-0.1.2.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

aiocarbon-0.1.2-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

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