No project description provided
Project description
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/
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
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 aioinflux1x-1.0.0.tar.gz.
File metadata
- Download URL: aioinflux1x-1.0.0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bc8136d837bd3b51dac2420ac8bb18ffb44ae1e4ab8e84954337cbee8c66bab
|
|
| MD5 |
98a289d4f7cf5a508498f16d0f1f55ab
|
|
| BLAKE2b-256 |
2098e10db6c295096ae262fad428f3281136fe9a8125903acc8d2ece3552bb78
|
File details
Details for the file aioinflux1x-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aioinflux1x-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc2a8dac9663320c34eaaa67664d5badc2bc0815fac1039e990e79543dfe418e
|
|
| MD5 |
63f1beeb83c3491f1d60b9ef3a496b95
|
|
| BLAKE2b-256 |
b098ab0eff2f0398a793baaa1cfccec735c4d53e598da79052f2e4f9ed7588d8
|