sttp.metadata package
Subpackages
- sttp.metadata.record package
- Submodules
- sttp.metadata.record.device module
DeviceRecord
DeviceRecord.DEFAULT_COMPANYNAME
DeviceRecord.DEFAULT_FRAMESPERSECOND
DeviceRecord.DEFAULT_LATITUDE
DeviceRecord.DEFAULT_LONGITUDE
DeviceRecord.DEFAULT_PARENTACRONYM
DeviceRecord.DEFAULT_PROTOCOLNAME
DeviceRecord.DEFAULT_UPDATEDON
DeviceRecord.DEFAULT_VENDORACRONYM
DeviceRecord.DEFAULT_VENDORDEVICENAME
DeviceRecord.accessid
DeviceRecord.acronym
DeviceRecord.companyacronym
DeviceRecord.deviceid
DeviceRecord.framespersecond
DeviceRecord.latitude
DeviceRecord.longitude
DeviceRecord.measurements
DeviceRecord.name
DeviceRecord.nodeid
DeviceRecord.parentacronym
DeviceRecord.phasors
DeviceRecord.protocolname
DeviceRecord.updatedon
DeviceRecord.vendoracronym
DeviceRecord.vendordevicename
- sttp.metadata.record.measurement module
MeasurementRecord
MeasurementRecord.DEFAULT_ADDER
MeasurementRecord.DEFAULT_DESCRIPTION
MeasurementRecord.DEFAULT_DEVICEACRONYM
MeasurementRecord.DEFAULT_ID
MeasurementRecord.DEFAULT_MULTIPLIER
MeasurementRecord.DEFAULT_POINTTAG
MeasurementRecord.DEFAULT_SIGNALID
MeasurementRecord.DEFAULT_SIGNALREFERENCE
MeasurementRecord.DEFAULT_SIGNALTYPENAME
MeasurementRecord.DEFAULT_SOURCE
MeasurementRecord.DEFAULT_UPDATEDON
MeasurementRecord.adder
MeasurementRecord.description
MeasurementRecord.device
MeasurementRecord.deviceacronym
MeasurementRecord.id
MeasurementRecord.multiplier
MeasurementRecord.phasor
MeasurementRecord.pointtag
MeasurementRecord.signalid
MeasurementRecord.signalreference
MeasurementRecord.signaltype
MeasurementRecord.signaltypename
MeasurementRecord.source
MeasurementRecord.updatedon
SignalType
- sttp.metadata.record.phasor module
CompositePhasorMeasurement
PhasorRecord
PhasorRecord.DEFAULT_BASEKV
PhasorRecord.DEFAULT_PHASE
PhasorRecord.DEFAULT_TYPE
PhasorRecord.DEFAULT_UPDATEDON
PhasorRecord.angle_measurement
PhasorRecord.basekv
PhasorRecord.device
PhasorRecord.deviceacronym
PhasorRecord.id
PhasorRecord.label
PhasorRecord.magnitude_measurement
PhasorRecord.measurements
PhasorRecord.phase
PhasorRecord.sourceindex
PhasorRecord.type
PhasorRecord.updatedon
- Module contents
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.