Influx line builder
Project description
influx-line
Lightweight influxdata line protocol](https://docs.influxdata.com/influxdb/v2.3/write_protocols/line_protocol_tutorial/) builder
Installation
pip install influx-line
Usage
from flux_line import InfluxLineBuilder
line = InfluxLineBuilder("weather")
line.add_tag("location", "CA")
line.add_tag("season", "summer")
line.add_field("temperature", 82, is_integer=True)
line.add_field("error", 0.1)
line.add_field("time_zone", "PDT")
line.set_timestamp(1556813561098000000)
str(line)
"""
weather,location="CA",season="summer" temperature=29i,error=0.1,time_zone="PDT" 1556813561098000000
"""
License
See LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
influx-line-0.0.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for influx_line-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac33f9b2daa32f620c1105987de866ca6d7d71aa49ee1fc3e1aedbb669920431 |
|
MD5 | 2d3fa30b544bd8a465ee51584e721061 |
|
BLAKE2b-256 | a2e0e177da93f0dcfdf7329a6c58620c392a760137a7e5f07fec05c7af709fe5 |