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.10.1.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file aiocarbon-0.10.1.tar.gz
.
File metadata
- Download URL: aiocarbon-0.10.1.tar.gz
- Upload date:
- Size: 5.9 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 | d2abde02a90f33eceeac685c5a57da7fe93ab8cb2313d9cd889831dcb627cb88 |
|
MD5 | 290567b1f0e3588bef7c730c87806501 |
|
BLAKE2b-256 | 86d394d608569498d819daccc1efe8fbfd44cc23fe1665effbb390fa15c2dafb |
Provenance
File details
Details for the file aiocarbon-0.10.1-py3-none-any.whl
.
File metadata
- Download URL: aiocarbon-0.10.1-py3-none-any.whl
- Upload date:
- Size: 8.5 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 | 9be7e08ed8b6cd60d8b171b7564acbc744d391d5d1a1184aec1252dd6976a8c5 |
|
MD5 | ea4301c0f2ec6ab0b27716dee350daea |
|
BLAKE2b-256 | 48e2f1f3a96cdb54991aa750c083bf2cb76b91ed85887b42786ab9848d31d6b7 |