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.3.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for influx_line-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 372488560f903ac21cfc2af16fc24c3b2d8c059c8e30b3493767cb8ff8247f6f |
|
MD5 | bb63d7f351dd471fbc51bfac438a4d34 |
|
BLAKE2b-256 | 387e32a563312241184d0d1d9cc3cef92598218424a78c55fc63574a34bd0c29 |