This project is a fork of unmaintained and archived project aioinflux. It intends to keep asyncio python support for influxdb 1.x.
Latest changes include:
- Update serialization to be compatible with latest versions of numpy
Asynchronous Python client for InfluxDB. Built on top of
aiohttp and asyncio_.
Aioinflux is an alternative to the official InfluxDB Python client.
Aioinflux supports interacting with InfluxDB in a non-blocking way by using aiohttp.
It also supports writing and querying of Pandas dataframes,
among other handy functionality.
.. _Pandas: http://pandas.pydata.org/ .. _InfluxDB: http://influxdata.com/ .. _asyncio: https://docs.python.org/3/library/asyncio.html .. _aiohttp: https://github.com/aio-libs/aiohttp
Please refer to the documentation_ for more details.
Installation
Python 3.8+ is required. You also need to have access to a running instance of InfluxDB.
.. code:: bash
pip install aioinflux
Quick start
This sums most of what you can do with aioinflux:
.. code:: python
import asyncio
from aioinflux import InfluxDBClient
point = {
'time': '2009-11-10T23:00:00Z',
'measurement': 'cpu_load_short',
'tags': {'host': 'server01',
'region': 'us-west'},
'fields': {'value': 0.64}
}
async def main():
async with InfluxDBClient(db='testdb') as client:
await client.create_database(db='testdb')
await client.write(point)
resp = await client.query('SELECT value FROM cpu_load_short')
print(resp)
asyncio.get_event_loop().run_until_complete(main())
See the documentation_ for more detailed usage.
.. _documentation: http://aioinflux.readthedocs.io/en/stable/
Metadata
Release files for aioinflux1x 1.0.0
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 | Actions |
|---|---|---|---|---|
| aioinflux1x-1.0.0.tar.gz | 14.1 kB | Without provenance | Details for aioinflux1x-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aioinflux1x-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for aioinflux1x-1.0.0-py3-none-any.whl |
Total release size: 30.4 kB
Release files / aioinflux1x-1.0.0.tar.gz
| Download URL | aioinflux1x-1.0.0.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bc8136d837bd3b51dac2420ac8bb18ffb44ae1e4ab8e84954337cbee8c66bab
|
|
BLAKE2b-256 checksum How to use checksums |
2098e10db6c295096ae262fad428f3281136fe9a8125903acc8d2ece3552bb78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / aioinflux1x-1.0.0-py3-none-any.whl
| Download URL | aioinflux1x-1.0.0-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc2a8dac9663320c34eaaa67664d5badc2bc0815fac1039e990e79543dfe418e
|
|
BLAKE2b-256 checksum How to use checksums |
b098ab0eff2f0398a793baaa1cfccec735c4d53e598da79052f2e4f9ed7588d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for aioinflux1x 1.0.0
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.