PIconnect.PIAF module¶
- class PIconnect.PIAF.PIAFDatabase(server=None, database=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¶
Return a dictionary of the direct child elements of the database.
- property database_name¶
Return the name of the connected PI AF database.
- descendant(path)¶
Return a descendant of the database from an exact path.
- event_frames(start_time=None, start_index=0, max_count=1000, search_mode=EventFrameSearchMode.FORWARD_FROM_START_TIME, search_full_hierarchy=False)¶
- property server_name¶
Return the name of the connected PI AF server.
- version = '0.2.0'¶
- class PIconnect.PIAF.PIAFElement(element)¶
Bases:
PIconnect.PIAFBase.PIAFBaseElement
Container for PI AF elements in the database.
- property attributes¶
Return a dictionary of the attributes of the current element.
- property categories¶
- property children¶
Return a dictionary of the direct child elements of the current element.
- descendant(path)¶
Return a descendant of the current element from an exact path.
- property description¶
- property name¶
Return the name of the current element.
- property parent¶
Return the parent element of the current element, or None if it has none.
- version = '0.1.0'¶