Comprehensive Python client library for InfluxDB 2.x with sync/async APIs for writing, querying, and managing time series data.
82
A utility that manages secure connections to InfluxDB 2.x instances using token-based authentication and validates connection health.
@generates
class ConnectionManager:
"""Manages authenticated connections to InfluxDB instances."""
def __init__(self, url: str, token: str, org: str):
"""
Initialize the connection manager with InfluxDB credentials.
Args:
url: The InfluxDB server URL (e.g., "http://localhost:8086")
token: Authentication token for InfluxDB
org: Organization name or ID
"""
pass
def connect(self) -> bool:
"""
Establish connection to InfluxDB and verify it's working.
Returns:
bool: True if connection and authentication successful
Raises:
Exception: If unable to authenticate or connect to server
"""
pass
def close(self):
"""Close the InfluxDB connection and cleanup resources."""
passProvides Python client library for InfluxDB 2.x with token-based authentication support.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-influxdb-clientdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10