influxdb
InfluxDB client
What it is and what it does
This is a Python client for InfluxDB 1.x, a distributed time-series database. It provides an HTTP-based interface to create databases, write data points with tags and fields, and execute queries. The library wraps requests to handle authentication, serialization (via msgpack), and timezone conversion (via pytz and python-dateutil).
The package is no longer actively maintained—the repository is archived and the maintainers have explicitly directed InfluxDB 2.x users to use influxdb-client-python and InfluxDB 3.0 users to use the v3 client library instead. It remains available for legacy InfluxDB 1.x deployments but should not be chosen for new projects unless you are locked into InfluxDB 1.x.
Use it for:
- Querying and writing metrics to an existing InfluxDB 1.x instance in a legacy application.
- Ingesting time-series data (CPU load, memory usage, application metrics) into InfluxDB 1.x from Python.
- Building monitoring dashboards or reports that pull data from InfluxDB 1.x via Python scripts.
- Migrating data from InfluxDB 1.x to another system by reading points and transforming them.
- Running batch analytics on historical time-series data stored in InfluxDB 1.x.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Client library for writing to and querying InfluxDB 1.x time-series databases over HTTP.
No, unless you are maintaining a legacy InfluxDB 1.x deployment with no upgrade path. The repository is archived, maintenance is abandoned, and the maintainers explicitly recommend newer client libraries for InfluxDB 2.x and 3.x. For new projects, use influxdb-client-python or the v3 client library instead. For existing 1.x systems, use this only if you cannot upgrade InfluxDB itself.
Install
influxdb on PyPI
pip
pip install influxdbuv
uv add influxdbpoetry
poetry add influxdbInstalling influxdb
Before you install
Low install friction with stable dependencies, but the repository is archived and maintenance is abandoned as of the fact sheet date. The library is explicitly superseded by influxdb-client-python for InfluxDB 2.x and the v3 client library for InfluxDB 3.0; no active security updates are expected.
License in practice
MIT License (permissive) places no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install influxdb
from influxdb import InfluxDBClient
client = InfluxDBClient('localhost', 8086, 'root', 'root', 'example')
client.write_points([{"measurement": "cpu_load", "fields": {"value": 0.64}}])
result = client.query('select value from cpu_load;')
Requires a running InfluxDB 1.x instance accessible at the specified host and port; InfluxDB 2.x and 3.x are not compatible with this client.
Verify before relying
- Whether security patches will be backported if vulnerabilities are discovered in dependencies like requests or msgpack.
- Current compatibility with modern Python versions beyond those listed in classifiers (3.4–3.6).
- Whether the package maintainers will accept community contributions or if the repository remains read-only.
Package facts
| License | MIT License (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — python-dateutil, pytz, requests, six, msgpack |
| Maintenance | abandoned — 848 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 4,281,327/month — #2,343 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: influxdb-5.3.2-py2.py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
influxdb-clientPython client library for querying and writing…
permissive · top 5,000 on PyPI
apache-airflow-providers-influxdbIntegrates InfluxDB time-series database with…
permissive · top 15,000 on PyPI
statshogA Python client for sending metrics to StatsD…
permissive · top 5,000 on PyPI
types-influxdb-clientProvides type stubs for influxdb-client,…
permissive · top 15,000 on PyPI
line-protocol-parserParses InfluxDB line protocol strings into…
permissive · top 15,000 on PyPI
questdbA Python client library for QuestDB that sends…
permissive · top 15,000 on PyPI
querysourceQuerySource provides a unified async interface…
permissive · top 15,000 on PyPI
glances-apiA Python client library for querying system…
permissive · top 15,000 on PyPI
statsd-pythonA Python client library for sending metrics to…
permissive · top 15,000 on PyPI
mcp-grafanaAn MCP server that exposes Grafana dashboards,…
permissive · top 15,000 on PyPI