Lightweight influxdb line protocol builder
pip install influx-linefrom influx_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=82i,error=0.1,time_zone="PDT" 1556813561098000000
"""The default repository is on gitlab but mirrored on github
Google style guidelines has been chosen as the style and contribution guidelines for submitting additions. In general, we follow the "fork-and-pull" Git workflow.
- Fork the repo on GitLab
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Merge request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
See LICENSE file.