You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InfluxDB 2.0 python client library. The library covers InfluxDB 2.0
36
+
37
+
InfluxDB 2.0 client features
38
+
----------------------------
39
+
40
+
- Querying data
41
+
- using the Flux language
42
+
- into csv, raw data, `flux_table <https://github.com/influxdata/influxdb-client-python/blob/master/influxdb_client/client/flux_table.py#L5>`_ structure
- `Data Point <https://github.com/influxdata/influxdb-client-python/blob/master/influxdb_client/client/write/point.py#L16>`_
46
+
- `RxPY`_ Observable
47
+
- Not implemented yet
48
+
- write user types using decorator
49
+
- write Pandas DataFrame
50
+
- `InfluxDB 2.0 API <https://github.com/influxdata/influxdb/blob/master/http/swagger.yml>`_ client for management
51
+
- the client is generated from `swagger <https://github.com/influxdata/influxdb/blob/master/http/swagger.yml>`_ by using `openapi-generator <https://github.com/OpenAPITools/openapi-generator>`_
52
+
- organizations & users management
53
+
- buckets management
54
+
- tasks management
55
+
- authorizations
56
+
- health check
57
+
58
+
Installation
40
59
------------
60
+
.. marker-install-start
61
+
62
+
InfluxDB python library uses `RxPY <https://github.com/ReactiveX/RxPY>`_ - The Reactive Extensions for Python (RxPY).
41
63
42
-
Python 3.6+
64
+
**Python 3.6** or later is required.
43
65
44
-
Installation & Usage
45
-
--------------------
46
66
47
67
pip install
48
68
^^^^^^^^^^^
49
69
50
-
If the python package is hosted on Github, you can install directly from Github
70
+
If the python package is hosted on Github, you can install latest version directly from Github
Please follow the `installation procedure <#installation--usage>`_ and then run the following:
110
+
Please follow the `installation procedure <#installation>`_ and then run the following:
111
+
112
+
.. marker-query-start
85
113
86
114
.. code-block:: python
87
115
@@ -115,19 +143,26 @@ Please follow the `installation procedure <#installation--usage>`_ and then run
115
143
for cell in row:
116
144
val_count +=1
117
145
146
+
.. marker-query-end
147
+
.. marker-index-end
148
+
149
+
118
150
How to use
119
151
----------
120
152
121
153
Writes
122
154
^^^^^^
155
+
.. marker-writes-start
123
156
124
157
The `WriteApi <https://github.com/influxdata/influxdb-client-python/blob/master/influxdb_client/client/write_api.py>`_ supports synchronous, asynchronous and batching writes into InfluxDB 2.0.
125
158
The data should be passed as a `InfluxDB Line Protocol <https://docs.influxdata.com/influxdb/v1.6/write_protocols/line_protocol_tutorial/>`_\ , `Data Point <https://github.com/influxdata/influxdb-client-python/blob/master/influxdb_client/client/write/point.py>`_ or Observable stream.
126
159
127
160
*The default instance of ``WriteApi`` use batching.*
128
161
129
162
Batching
130
-
~~~~~~~~
163
+
""""""""
164
+
165
+
.. marker-batching-start
131
166
132
167
The batching is configurable by ``write_options``\ :
133
168
@@ -195,6 +230,8 @@ The batching is configurable by ``write_options``\ :
195
230
_write_client.__del__()
196
231
_client.__del__()
197
232
233
+
.. marker-batching-end
234
+
198
235
Asynchronous client
199
236
"""""""""""""""""""
200
237
@@ -230,7 +267,7 @@ Data are writes in a synchronous HTTP request.
0 commit comments