Asynchronous client for carbon.
Project description
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
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
aiocarbon-0.14.0.tar.gz
(6.7 kB
view details)
Built Distribution
File details
Details for the file aiocarbon-0.14.0.tar.gz
.
File metadata
- Download URL: aiocarbon-0.14.0.tar.gz
- Upload date:
- Size: 6.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbf73b965d01a2093a6ed82e72dc21cbb0c8cfeecd876e0730d7027f3041b273 |
|
MD5 | df25af5c45372432c0b4c72fcfab71fa |
|
BLAKE2b-256 | 33732ad9bc653bb39b824776532679dd0c9ceae19b420a2666769fa29b6efe3a |
Provenance
File details
Details for the file aiocarbon-0.14.0-py3-none-any.whl
.
File metadata
- Download URL: aiocarbon-0.14.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 083a426f0fc16b04314749a4b68a2674baedc97c80f2c96ea94ca3b88daa616f |
|
MD5 | 394ddf5092e8bb1c08370f0eb67f1010 |
|
BLAKE2b-256 | d23dd1b619d231e1c9f0027ad556887693a6b43a529e8e382d7fd3fa8248c48e |