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.2.tar.gz
(6.9 kB
view details)
Built Distribution
File details
Details for the file aiocarbon-0.14.2.tar.gz
.
File metadata
- Download URL: aiocarbon-0.14.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/18.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87077e47a4bb5c7dbce8562bb2e3f05a57b8aaa511afadb6da5ef82876ac255a |
|
MD5 | ed4dc5dc6dedbd91cf7ac1023d68665e |
|
BLAKE2b-256 | 72260c1096f98ba781ec9a40c72f983563e6fac65db6c62f8baa2c69e6a15978 |
File details
Details for the file aiocarbon-0.14.2-py3-none-any.whl
.
File metadata
- Download URL: aiocarbon-0.14.2-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/18.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7f044e91d41be6bb803172f8eb3962901e66dd6bfd3e96fd9435dcbc673c68d |
|
MD5 | b73c5f8930c7a1420530ebfae5738673 |
|
BLAKE2b-256 | bd018a2788085d5fd5d844d995f04ba2016a284b839623757ecd098444cc14ed |