Skip to main content

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


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)

Uploaded Source

Built Distribution

influx_line-0.0.2-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page