PIconnect.PIAF module¶
- class PIconnect.PIAF.PIAFDatabase(server: str | None = None, database: str | None = None)¶
Bases:
object
Context manager for connections to the PI Asset Framework database.
- servers Dictionary of known servers, as reported by the SDK¶
- default_server Default server, as reported by the SDK¶
- property children: Dict[str, PIAFElement]¶
Return a dictionary of the direct child elements of the database.
- descendant(path: str) PIAFElement ¶
Return a descendant of the database from an exact path.
- event_frames(start_time: str | datetime = '', start_index: int = 0, max_count: int = 1000, search_mode: EventFrameSearchMode = EventFrameSearchMode.FORWARD_FROM_START_TIME, search_full_hierarchy: bool = False) Dict[str, PIAFEventFrame] ¶
- search(query: str | List[str]) List[PIAFAttribute] ¶
return a list of PIAFAttributes directly from a list of element|attribute path strings
like this:
list(“BaseElement/childElement/childElement|Attribute|ChildAttribute|ChildAttribute”, “BaseElement/childElement/childElement|Attribute|ChildAttribute|ChildAttribute”)
- version = '0.2.0'¶
- class PIconnect.PIAF.PIAFElement(element: ElementType)¶
Bases:
PIAFBaseElement
[AFElement
]Container for PI AF elements in the database.
- property attributes: Dict[str, PIAFAttribute]¶
Return a dictionary of the attributes of the current element.
- property categories: AFCategories¶
- property children: Dict[str, PIAFElement]¶
Return a dictionary of the direct child elements of the current element.
- descendant(path: str) PIAFElement ¶
Return a descendant of the current element from an exact path.
- property parent: PIAFElement | None¶
Return the parent element of the current element, or None if it has none.
- version = '0.1.0'¶
- PIconnect.PIAF.PIAFAttribute¶
alias of <module ‘PIconnect.PIAFAttribute’ from ‘/home/docs/checkouts/readthedocs.org/user_builds/piconnect/checkouts/develop/PIconnect/PIAFAttribute.py’>