sttp.metadata package

Subpackages

Submodules

sttp.metadata.cache module

class sttp.metadata.cache.MetadataCache(dataset: DataSet = Ellipsis)[source]

Bases: object

Represents a collection of parsed STTP metadata records.

add_measurement(measurement: MeasurementRecord)[source]
device_records: List[DeviceRecord]

Defines list of device records in the cache.

deviceacronym_device_map: Dict[str, DeviceRecord]

Defines map of device acronym to device records. Device acronyms are typically unique for a given publisher.

deviceid_device_map: Dict[UUID, DeviceRecord]

Defines map of unique device IDs to device records. Device IDs (a UUID) are typically unique across disparate systems.

find_device_acronym(deviceacronym: str) DeviceRecord | None[source]
find_device_id(deviceid: UUID) DeviceRecord | None[source]
find_devices(searchval: str) List[DeviceRecord][source]
find_measurement_id(id: uint64) MeasurementRecord | None[source]
find_measurement_pointtag(pointtag: str) MeasurementRecord | None[source]
find_measurement_signalid(signalid: UUID) MeasurementRecord | None[source]
find_measurement_signalreference(signalreference: str) MeasurementRecord | None[source]
find_measurements(searchval: str, instancename: str | None = None) List[MeasurementRecord][source]
find_measurements_signaltype(signaltype: SignalType, instancename: str | None = None) List[MeasurementRecord][source]
find_measurements_signaltypename(signaltypename: str, instancename: str | None = None) List[MeasurementRecord][source]
id_measurement_map: Dict[uint64, MeasurementRecord]

Defines map of measurement key IDs to measurement records. Measurement key IDs are typically unique for a given publisher.

measurement_records: List[MeasurementRecord]

Defines list of measurement records in the cache.

phasorRecords: List[PhasorRecord]

Defines list of phasor records in the cache.

pointtag_measurement_map: Dict[str, MeasurementRecord]

Defines map of measurement point tags to measurement records. Measurement point tags are typically unique for a given publisher.

signalid_measurement_map: Dict[UUID, MeasurementRecord]

Defines map of unique measurement signal IDs to measurement records. Measurement signal IDs (a UUID) are typically unique across disparate systems.

signalref_measurement_map: Dict[str, MeasurementRecord]

Defines map of measurement signal references to measurement records. Measurement signal references are typically unique for a given publisher.

Module contents