influxdb-client
InfluxDB 2.0 Python client library
Decision gist · record as of 2026-08-14
Yes. This is the official, actively maintained client for InfluxDB 2.x with low install friction, permissive licensing, no known vulnerabilities, and broad Python version support. Install it if you are using InfluxDB 2.x or InfluxDB Cloud; if you are on InfluxDB 1.x or 3.x, use the version-specific client instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or later and an accessible InfluxDB 2.x server instance with valid credentials (URL, token, organization).
- Low install friction with a pure-wheel distribution.
- Actively maintained as of 2026-01-23 with 792 repository stars.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) means you can use this library in commercial and proprietary projects with minimal restrictions, provided you include the license notice.
last release 2026-01-23 (203 days) · last repo commit 2026-08-12 · 792 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 8,174,633 downloads/mo, #1,657 on PyPI
Alternatives
Verify before relying
pip install influxdb-client
from influxdb_client import InfluxDBClient, Point
from influxdb_client.client.write_api import SYNCHRONOUS
client = InfluxDBClient(url="http://localhost:8086", token="my-token", org="my-org")
write_api = client.write_api(write_options=SYNCHRONOUS)
p = Point("my_measurement").tag("location", "Prague").field("temperature", 25.3)
write_api.write(bucket="my-bucket", record=p)- Performance characteristics when handling large datasets or high-frequency writes compared to alternatives
- Whether optional ciso8601 dependency significantly improves date parsing in typical workloads
- Async/await support stability and when it should be preferred over synchronous writes
What it is and what it does
influxdb-client is the official Python client for InfluxDB 2.x, providing APIs for both querying time-series data via Flux language and writing measurements via Line Protocol or Point objects. It wraps the InfluxDB 2.0 HTTP API and includes management operations for organizations, buckets, tasks, and authorizations. The library uses RxPY for reactive streaming support and integrates with Pandas DataFrames for data analysis workflows.
The client handles authentication via tokens, supports multiple output formats (CSV, raw data, flux_table structures, Pandas DataFrames), and provides configuration via files, environment variables, or direct parameters. It includes features like gzip compression, proxy configuration, nanosecond precision timestamps, SSL/mTLS support, and connection pooling. The library is in Beta status and actively maintained, supporting modern Python versions (3.7–3.12).
Use it for
- Write sensor or application metrics to InfluxDB from Python applications for time-series monitoring and analysis.
- Query historical data using Flux language and retrieve results as Pandas DataFrames for data science workflows.
- Manage InfluxDB resources (buckets, users, tasks, authorizations) programmatically from Python scripts.
- Stream high-volume IoT or telemetry data efficiently using reactive observables and batched writes.
- Integrate InfluxDB with Jupyter notebooks for interactive time-series data exploration and visualization.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is the official, actively maintained client for InfluxDB 2.x with low install friction, permissive licensing, no known vulnerabilities, and broad Python version support. Install it if you are using InfluxDB 2.x or InfluxDB Cloud; if you are on InfluxDB 1.x or 3.x, use the version-specific client instead.
Install
influxdb-client on PyPI
Before you install
Low install friction with a pure-wheel distribution. Actively maintained as of 2026-01-23 with 792 repository stars. Supports Python 3.7 through 3.12 and depends on four stable runtime libraries (reactivex, certifi, python-dateutil, urllib3).
Requires Python 3.7 or later and an accessible InfluxDB 2.x server instance with valid credentials (URL, token, organization).
License in practice
MIT license (permissive) means you can use this library in commercial and proprietary projects with minimal restrictions, provided you include the license notice.
Quickstart
pip install influxdb-client
from influxdb_client import InfluxDBClient, Point
from influxdb_client.client.write_api import SYNCHRONOUS
client = InfluxDBClient(url="http://localhost:8086", token="my-token", org="my-org")
write_api = client.write_api(write_options=SYNCHRONOUS)
p = Point("my_measurement").tag("location", "Prague").field("temperature", 25.3)
write_api.write(bucket="my-bucket", record=p)
Verify before relying
- Performance characteristics when handling large datasets or high-frequency writes compared to alternatives
- Whether optional ciso8601 dependency significantly improves date parsing in typical workloads
- Async/await support stability and when it should be preferred over synchronous writes
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesreactivexcertifipython-dateutilurllib3 |
| Maintenance | Actively maintained 203 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,174,633 / month, #1,657 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: DatabaseTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
Evidence: influxdb_client-1.50.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “influxdb 2.x python client”
- influxdb-clientPython client library for querying and writing data to InfluxDB 2.x…
- influxdbClient library for writing to and querying InfluxDB 1.x time-series…
- influxdb3-pythonWrites and queries InfluxDB 3.0 using SQL or InfluxQL, with support…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also influxdb · influxdb3-python · line-protocol-parser · apache-airflow-providers-influxdb · types-influxdb-client · Rx · reactivex · wolframalpha · statshog · querysource