Influx line builder
Project description
influx-line
Lightweight influxdb line protocol 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.4.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for influx_line-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e3ea336047758fd38615d13827724c88470bee082c188e3a3b12baaf882a72f |
|
MD5 | 18b737c8276f056053e7d8b5a206b78c |
|
BLAKE2b-256 | 0c1bb0c339726458513b0c6485b7b03752812cb396281efdf7b2bb98f297997a |