PIconnect.PIAF module#
- class PIconnect.PIAF.PIAFDatabase(server: str | None = None, database: str | None = None)#
Bases:
objectContext 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 for event frames in the database.
- search(query: str | list[str]) list[PIAFAttribute]#
Search PIAFAttributes by element|attribute path strings.
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.3.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#
Return the categories of the current element.
- 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/v0.12.1/PIconnect/PIAFAttribute.py’>