influxdb-client-python

Official Python client library for InfluxDB 2.x and 3.x. Provides write (line protocol), query (Flux language), and management APIs. InfluxDB is a time-series database optimized for metrics, events, and IoT sensor data. The Python client handles batching, retry, and async writes. Used in monitoring systems, IoT platforms, and metrics collection pipelines.

Evaluated Mar 06, 2026 (0d ago) v1.x (InfluxDB 2.x/3.x)
Homepage ↗ Repo ↗ Other python influxdb time-series metrics iot monitoring flux line-protocol
⚙ Agent Friendliness
61
/ 100
Can an agent use this?
🔒 Security
86
/ 100
Is it safe for agents?
⚡ Reliability
76
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
82
Error Messages
80
Auth Simplicity
85
Rate Limits
78

🔒 Security

TLS Enforcement
95
Auth Strength
85
Scope Granularity
85
Dep. Hygiene
82
Secret Handling
85

HTTPS enforced for cloud. Token-based auth with bucket-level scope. SOC2 compliance for cloud. Self-hosted security is admin responsibility.

⚡ Reliability

Uptime/SLA
85
Version Stability
72
Breaking Changes
65
Error Recovery
82
AF Security Reliability

Best When

You're collecting time-series metrics, events, or IoT sensor data in Python and want InfluxDB's purpose-built time-series storage with native downsampling and retention policies.

Avoid When

You need relational queries, complex analytics, or have very high-cardinality data — use PostgreSQL/TimescaleDB or ClickHouse.

Use Cases

  • Write agent execution metrics (latency, token counts, success/failure rates) to InfluxDB for time-series monitoring dashboards
  • Collect and store IoT sensor data or infrastructure metrics from Python agents with automatic batching and retry
  • Query InfluxDB time-series data using Flux query language for agent-driven analytics and anomaly detection
  • Build monitoring backends that track agent performance over time with InfluxDB's high-write-throughput storage
  • Implement Python metrics collection pipelines that aggregate and write structured event streams to InfluxDB

Not For

  • General-purpose OLAP analytics — ClickHouse or DuckDB are better for complex aggregations over arbitrary columns
  • Relational data with complex joins — InfluxDB is time-series only; use PostgreSQL for relational data
  • Extremely high-cardinality tag values (millions of unique tags) — InfluxDB performance degrades with very high cardinality

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
No
SDK
Yes
Webhooks
No

Authentication

Methods: api_key bearer_token
OAuth: No Scopes: Yes

InfluxDB 2.x uses token-based auth (API tokens with read/write/admin scopes). Tokens scoped to organizations and buckets. No username/password for 2.x.

Pricing

Model: open_source
Free tier: Yes
Requires CC: No

InfluxDB 2.x OSS is Apache 2.0 licensed for self-hosting. InfluxDB 3.x has changed licensing. Verify license for your target version.

Agent Metadata

Pagination
cursor
Idempotent
Full
Retry Guidance
Documented

Known Gotchas

  • InfluxDB 3.x has significant changes from 2.x including licensing model changes — verify which version you're targeting before building
  • Line protocol requires precise formatting — field values must be explicitly typed (1i for integer, 1.0 for float, "string" for string) to avoid type conflicts
  • High-cardinality tags (e.g., user_id, session_id with millions of unique values) cause performance degradation — use fields for high-cardinality values
  • Flux query language is InfluxDB-specific and not SQL — steep learning curve for teams familiar with SQL; InfluxQL (SQL-like) is available for 1.x compatibility
  • Batching writes is critical for performance — the write_api with batch mode accumulates points; flush() must be called before process exit
  • InfluxDB Cloud and OSS have different feature sets and API compatibility — code targeting one may not work on the other without changes

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for influxdb-client-python.

$99

Scores are editorial opinions as of 2026-03-06.

5173
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered