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.12.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

aiocarbon-0.12.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file aiocarbon-0.12.1.tar.gz.

File metadata

  • Download URL: aiocarbon-0.12.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.20.0 CPython/3.6.5

File hashes

Hashes for aiocarbon-0.12.1.tar.gz
Algorithm Hash digest
SHA256 daa5711b3c3ec7a82abc3904ef9edec6f099bc11db795410fdd9b2a447e378c1
MD5 c7c6ebca5652135b39b27338a37f681e
BLAKE2b-256 abc515d7bf6428d4afda3adba9e2ea1a7f4d24620929660f26de3995f7e17ea1

See more details on using hashes here.

Provenance

File details

Details for the file aiocarbon-0.12.1-py3-none-any.whl.

File metadata

  • Download URL: aiocarbon-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.20.0 CPython/3.6.5

File hashes

Hashes for aiocarbon-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85d637ab44d9803cdb3615bf39d2d77ec3bab5e51885590d4790a89b4553497c
MD5 9533ef3b017109d0efcadcb378ca8a9e
BLAKE2b-256 e7adc58d8eb4a130b8d05f3dea2e0a7ef163d1e2dbcf76a42a77cb72dda6b798

See more details on using hashes here.

Provenance

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