Influx line protocol 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=82i,error=0.1,time_zone="PDT" 1556813561098000000
"""
Contributing
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!
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.8.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for influx_line-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2952cdda2ca6c34c1ee5a53032e23f32e7632cbb5aa85658f0f8ad9fa0a58c44 |
|
MD5 | 2b0d88cb86e2e1c04cf6931fbb00416c |
|
BLAKE2b-256 | de03795305071c9a0dedc8e2e4268892dc6a4b07e54c88e5d70bfa01c1103026 |