InfluxDB V3 Plugin for MasterPiece
Adds InfluxDB V3 timeseries recording functionality to MasterPiece framework.
Usage
Pre-requisities:
- Create Influx cloud account, or install local Influx instance. Please consult the Influx site for more information on this.
To install the 'masterpiece_influx' plugin:
.. code-block:: bash
pip install masterpiece-influx
Once installed, you can create ~/.yourapp/config/Influx.json configuration file to specify
information needed for reading and writing time series data to your Influx database.
.. code-block:: text
{ "token": "your token", "org": "your organization", "host": "https://eu-central-1-1.aws.cloud2.influxdata.com", "database": "your database" }
To import and instantiate Influx database for use:
.. code-block:: python
from masterpiece_influx import Influx
db = Influx()
An example to write and read data:
.. code-block:: python
db.write_dict(name="temperature", tags={"sensor": "A1"}, fields={"value": 23.4}, ts="2024-12-14T12:00:00Z") data = db.read_dict(measurement="temperature", start_time="2024-12-01T00:00:00Z")
Note
The masterpiece_influx.Influx class is an implementation of the abstract masterpiece.TimeSeries
base class, designed for reading and writing time series data.
The TimeSeries interface allows all time series operations in your application to remain
implementation-independent.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for masterpiece-influx 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| masterpiece_influx-0.1.13.tar.gz | 7.9 kB | Without provenance | Details for masterpiece_influx-0.1.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| masterpiece_influx-0.1.13-py3-none-any.whl | Python 3 | none | any | Details for masterpiece_influx-0.1.13-py3-none-any.whl |
Total release size: 15.6 kB
Release files / masterpiece_influx-0.1.13.tar.gz
| Download URL | masterpiece_influx-0.1.13.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
857b6763d62618fef91748ddd85d7df05cb320af74e114ba6e94c234d214b54d
|
|
BLAKE2b-256 checksum How to use checksums |
6dc80eed804dd92187906c9ff1ed5ad026f545122cd6a0f92e5183519739ff48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / masterpiece_influx-0.1.13-py3-none-any.whl
| Download URL | masterpiece_influx-0.1.13-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5855fc4e0a2d5e22c2e96659b4f6c66deefeb9a13b9fcce4c645644ebd071b3b
|
|
BLAKE2b-256 checksum How to use checksums |
7fed2ac40b98a6608f2c39c05092c617d967d4c9eb94501f437eacc969361d03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for masterpiece-influx 0.1.13
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.