Skip to main content

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/

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)

Source distribution for aioinflux1x 1.0.0
File Size Uploaded
aioinflux1x-1.0.0.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aioinflux1x 1.0.0
File Interpreter ABI Platform
aioinflux1x-1.0.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page