Skip to content

The Legacy Historian Module

The Historian module provides a legacy, single-historian JSON Bridge client. This module is deprecated in favor of Historian Multi, and will be removed in a future release.

Use get_historian() to create a client:

from eigeningenuity import get_historian, EigenServer
ei = EigenServer("https://demo.eigen.co/")
h = get_historian("Demo-influxdb", ei)
values = h.getCurrentDataPoints("DEMO_02TI301.PV")
range_points = h.getInterpolatedRange(
"DEMO_02TI301.PV",
"01/01/2024 00:00:00",
"01/01/2024 12:00:00",
100,
)

Most calls support:

  • json (default)
  • df (pandas DataFrame)
  • raw (full API response)

For secured environments, configure Azure auth before creating the client. See Authentication.