UNKNOWN
Project description
An asyncio library for graphite.
What is aiographite ?
aiographite is Python3 library ultilizing asyncio, designed to help Graphite users to send data into graphite easily.
Installing it globally
You can install aiographite globally with any Python package manager:
pip install aiographite
Quick start
Simple example for quick start.
"""
Initialize a aiographite instance
"""
loop = asyncio.get_event_loop()
plaintext_protocol = PlaintextProtocol()
aiographite = AIOGraphite(*httpd.address, plaintext_protocol, loop = loop)
await aiographite.connect_to_graphite()
"""
Send a tuple (metric, value , timestamp)
"""
aiographite.send(metric, value, timestamp)
"""
Send a list of tuples List[(metric, value , timestamp)]
"""
aiographite.send_multiple(list)
"""
aiographite library also provides GraphiteEncoder module,
which helps users to send valid metric name to graphite.
For Example: (metric_parts, value ,timestamp)
"""
metric = aiographite.clean_and_join_metric_parts(metric_parts)
aiographite.send(metric, value, timestamp)
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
aiographite-0.1.1.tar.gz
(6.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiographite-0.1.1.tar.gz.
File metadata
- Download URL: aiographite-0.1.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f2599df4e178de4e7bfa98bae7dd9281b712cc01c952a23812e71ce7af52974
|
|
| MD5 |
38d3c37bc70a2f710af0159b6b21134d
|
|
| BLAKE2b-256 |
c8e40846d638ab0ec2ba050062bdba0e3b0c7a474b99d71e40924a712bceb6b1
|
File details
Details for the file aiographite-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: aiographite-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0b01940ad1567e50d7e82aa46639f2583757e5fb78d2634dc3bfebd036f490b
|
|
| MD5 |
43b173f007f2e365584ea178a2f6f9ce
|
|
| BLAKE2b-256 |
49178c0add862ededd982cf8e3e74f1345a9be58de156e6fe311eb4b0322f363
|