Influx line protocol builder
Project description
influx-line
Lightweight influxdb line protocol builder
Installation
pip install influx-line
Usage
from flux_line import InfluxLine
line = InfluxLine("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.6.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for influx_line-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c7279b1e74f050bf893368b6ccbe5c8e25e62fea2f1d530a291f6270014775b |
|
MD5 | 5b084a862f4660358377aac9998c5b0a |
|
BLAKE2b-256 | c5910ba5b0132a3a71f0d9f013b8fb87d321ecb197596c094947bff0e662f804 |