eelib.data.input.load

Helper module. Influx Db Connector to load data to Influx Database.

Author: elenia@TUBS
Copyright 2024 elenia
This file is part of eELib, which is free software under the terms of the GNU GPL Version 3.

Module Contents

Classes

InfluxDbStorage

Influx Db Connector class to write pandas dataframes.

Attributes

data_path

class InfluxDbStorage(influx_url: str | None = None, influx_token: str | None = None, influx_org: str | None = None, influx_bucket: str | None = None)

Influx Db Connector class to write pandas dataframes.

influx_url
influx_token
influx_org
influx_bucket
client
__del__()

Delete client connection on delete.

write_pandas_dataframe(df: pandas.DataFrame, name: str, tags: dict[str, str]) None

Write pandas dataframe to influx database.

Parameters:
  • df (pd.DataFrame) – Df to write to Influx.

  • name (str) – Name of the series.

  • tags (dict[str, str]) – Tags to add when writing to Influx.

data_path = "'.'"