influxdbpusher
Minimal and smart pusher of samples to InfluxDB for asyncio programs
Usage
Create a InfluxDbPusher object
Call it to push samples
InfluxDbPusher will try to do intelligent aggregation of samples in the background to minimise the number of HTTP request to the InfluxDb server.
Example:
import asyncio
import logging
from influxdbpusher import InfluxDbPusher
async def test():
logging.basicConfig(level=logging.DEBUG)
influx = InfluxDbPusher("http://influxdb:8086", "playground")
while True:
for dummy in range(10):
await asyncio.sleep(0.02)
influx("test", dummy, {"foo": "bar"})
influx("measurement1",
{"fieldname1": 'hello "world"', "value": 2.0},
{"foo": "bar"})
await asyncio.sleep(5)
await influx.close()
if __name__ == '__main__':
asyncio.get_event_loop().run_until_complete(test())
Installation
pip install influxdbpusher
Requirements
Python >= 3.5
aiohttp
Compatibility
Licence
MIT License
Copyright (c) 2017, Gambit Research
Metadata
Release files for influxdbpusher 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| influxdbpusher-0.1.3.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| influxdbpusher-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / influxdbpusher-0.1.3.tar.gz
| Download URL | influxdbpusher-0.1.3.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cedd89905d5a3406ac946e966d29d7a72502f7ecc691a5ace31ba48ab0c70c19
|
|
BLAKE2b-256 checksum How to use checksums |
fc38162447631d7e47e00f99bf1bab1acecfc24bea0dba1e94c3994786ac7b15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Release files / influxdbpusher-0.1.3-py3-none-any.whl
| Download URL | influxdbpusher-0.1.3-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76ca5a0dd0a4ee725a5baf0cb0bf69917cb5377c2c61651a20636190faea1749
|
|
BLAKE2b-256 checksum How to use checksums |
2b40c61aabb82038c65c68f9e5545903b034db4dea4102bfdd7e912b7d5e9916
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for influxdbpusher 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.