![]() ![]() write ( bucket = bucket, record = p ) # using Table structure tables = query_api. ![]() field ( "temperature", 25.3 ) write_api. query_api () p = Point ( "my_measurement" ). write_api ( write_options = SYNCHRONOUS ) query_api = client. Please follow the Installation and then run the following: from influxdb_client import InfluxDBClient, Point from influxdb_api import SYNCHRONOUS bucket = "my-bucket" client = InfluxDBClient ( url = ", token = "my-token", org = "my-org" ) write_api = client. (or sudo python setup.py install to install the package for all users) Getting Started If your application uses async/await in Python you can install with the async extra: $ pip install influxdb-clientįor more info see How to use Asyncio. Then import the package: import influxdb_client The python package is hosted on PyPI, you can install latest version directly: pip install 'influxdb-client' Install from sources: conda install -c conda-forge/label/cf202003 ciso8601. You have to install Visual C++ Build Tools 2015 to build ciso8601 by pip. Since it’s written as a C module the best way is build it from sources: ciso8601 is much faster than built-in Python datetime. It is recommended to use ciso8601 with client for parsing dates. InfluxDB python library uses RxPY - The Reactive Extensions for Python (RxPY). ![]() The client is generated from the swagger by using the openapi-generator Into csv, raw data, flux_table structure, Pandas DataFrame This section contains links to the client library documentation. The API of the influxdb-client-python is not the backwards-compatible with the old one - influxdb-python. InfluxDB 1.x users should use the v1 client library.įor ease of migration and a consistent query and write experience, v2 users should consider using InfluxQL and the v1 client library. InfluxDB 3.x users should instead use the lightweight v3 client library. This repository contains the Python client library for use with InfluxDB 2.x and Flux. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |