InfluxDB Python - Read the Docs

InfluxDB Documentation

Release 5.3.1 John Shahid

Nov 15, 2022

Contents

1 Contents

3

1.1 InfluxDB-Python . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

1.1.1 InfluxDB-Python . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

1.2 API Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

1.2.1 InfluxDBClient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

1.2.2 DataFrameClient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

1.2.3 SeriesHelper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

1.2.4 ResultSet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

1.3 Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

1.4 Query response object: ResultSet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

1.4.1 Getting all points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

1.4.2 Filtering by measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

1.4.3 Filtering by tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

1.4.4 Filtering by measurement and tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

1.5 InfluxDB Python Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

1.5.1 Tutorials - Basic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

1.5.2 Tutorials - pandas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

1.5.3 Tutorials - SeriesHelper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

1.5.4 Tutorials - UDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

1.5.5 Tutorials - Authorization by Token . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

2 Indices and tables

27

i

ii

Release 5.3.1 Date Nov 15, 2022 Keywords python, time series, database

InfluxDB Documentation, Release 5.3.1

Contents

1

InfluxDB Documentation, Release 5.3.1

2

Contents

1 CHAPTER

Contents

1.1 InfluxDB-Python

The v1 client libraries for InfluxDB were typically developed and maintained by community members. They have all now been succeeded by v2 client libraries. They are being archived it in favor of the v2 client library. See .

If there are still users of this v1 client library, and they or somebody else are willing to keep them updated with security fixes at a minimum please reach out on the [Community Forums]() or [InfluxData Slack]().

1.1.1 InfluxDB-Python

InfluxDB-Python is a client for interacting with InfluxDB.

Note: This library is for use with InfluxDB 1.x. For connecting to InfluxDB 2.x instances, please use the the influxdb-client-python client.

Development of this library is maintained by:

Github ID @aviau @xginn8 @sebito91

URL () () ()

InfluxDB is an open-source distributed time series database, find more about InfluxDB at influxdb/latest

InfluxDB pre v1.1.0 users

This module is tested with InfluxDB versions: v1.2.4, v1.3.9, v1.4.3, v1.5.4, v1.6.4, and 1.7.4. Those users still on InfluxDB v0.8.x users may still use the legacy client by importing from influxdb. influxdb08 import InfluxDBClient.

3

InfluxDB Documentation, Release 5.3.1

Installation

Install, upgrade and uninstall influxdb-python with these commands: $ pip install influxdb $ pip install --upgrade influxdb $ pip uninstall influxdb

On Debian/Ubuntu, you can install it with this command: $ sudo apt-get install python-influxdb

Dependencies

The influxdb-python distribution is supported and tested on Python 2.7, 3.5, 3.6, 3.7, PyPy and PyPy3. Note: Python ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download