Influx line 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.5.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for influx_line-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b132cbda730faa1872cd4952c4cd58d0e87e9887ed9636e4117fccae5766ffa5 |
|
MD5 | 4037d0d08a021706d50a6b2bf9ba32e7 |
|
BLAKE2b-256 | 6b95a78ab9bad36f89b758b24069401d5a949218dc1043d4077f86703ed6f8a1 |