Skip to main content

Build Status PyPI version License

influx-line-protocol

Implementation of influxdata line protocol format in python

Installation

$ pip install influx_line_protocol

Usage

from influx_line_protocol import Metric

metric = Metric("weather")
metric.with_timestamp(1465839830100400200)
metric.add_tag('location', 'Cracow')
metric.add_value('temperature', '29')

print(metric)
"""
  Will print:
  weather,location=Cracow temperature=29 1465839830100400200
"""

Multiple metrics example

from influx_line_protocol import Metric, MetricCollection

collection = MetricCollection()
metric = Metric("weather")
metric.with_timestamp(1465839830100400200)
metric.add_tag('location', 'Cracow')
metric.add_value('temperature', '29')
collection.append(metric)

metric = Metric("weather")
metric.with_timestamp(1465839830100400200)
metric.add_tag('location', 'Nowy Sacz')
metric.add_value('temperature', '31')
collection.append(metric)

print(collection)
"""
  Will print
  weather,location="Cracow" temperature=29 1465839830100400200
  weather,location="Nowy Sacz" temperature=29 1465839830100400200
"""

License

See LICENSE file.

Metadata

Release files for influx-line-protocol 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for influx-line-protocol 0.1.5
File Size Uploaded Provenance Actions
influx-line-protocol-0.1.5.tar.gz 4.2 kB Without provenance Details for influx-line-protocol-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for influx-line-protocol 0.1.5
File Interpreter ABI Platform Actions
influx_line_protocol-0.1.5-py3-none-any.whl Python 3 none any Details for influx_line_protocol-0.1.5-py3-none-any.whl

Total release size: 9.7 kB

Release files / influx-line-protocol-0.1.5.tar.gz

Download URL influx-line-protocol-0.1.5.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
73954c9a0e09915b4a7e813cda425aec15f5deaf9d1d0e24a466f7067d207980
BLAKE2b-256 checksum
How to use checksums
b0489b09f380856c48543502f35af33edfc474412cd686c659c1f0450fcb449d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / influx_line_protocol-0.1.5-py3-none-any.whl

Download URL influx_line_protocol-0.1.5-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69d7dcd26e70088d6330700d910d8eb303fa36351c5bfa35519fe99238831880
BLAKE2b-256 checksum
How to use checksums
661fe1e356c62487b0ca0641ae970c2928b06905133d9873571f84e230cf382d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Security for influx-line-protocol 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page