PIconnect.AF module#
AF - Core containers for connections to the PI Asset Framework.
- class PIconnect.AF.AFDatabase(server: str | None = None, database: str | None = None)#
Bases:
objectContext manager for connections to the PI Asset Framework database.
- 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, AFEventFrame]#
Search for event frames in the database.
- property children: dict[str, AFElement]#
Return a dictionary of the direct child elements of the database.
- database#
The PI AF database connection.
- search: Search#
Search reference for searching objects in the database. See
Search.Searchfor more information.
- server#
The PI AF server connection.
- version = '0.3.0'#
- class PIconnect.AF.PIAFDatabase(server: str | None = None, database: str | None = None)#
Bases:
AFDatabaseContext manager for connections to the PI Asset Framework database.
Deprecated since version 1.0.0: Use
AFDatabaseinstead.- 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, AFEventFrame]#
Search for event frames in the database.
- property children: dict[str, AFElement]#
Return a dictionary of the direct child elements of the database.
- database#
The PI AF database connection.
- search: Search#
Search reference for searching objects in the database. See
Search.Searchfor more information.
- server#
The PI AF server connection.
- version = '0.3.0'#