AFL.automation.APIServer.data#
Classes
|
A DataPacket implementation that serializes its data to JSON, named according to the current time. |
A DataPacket is a container for data that is to be transmitted to a data store. |
|
|
A DataPacket implementation that serializes its data to Tiled with backup to JSON, named according to the current time. |
A DataPacket implementation for testing only that takes all its data and simply throws it away. |
- class AFL.automation.APIServer.data.DataPacket[source]#
A DataPacket is a container for data that is to be transmitted to a data store.
It is a dictionary-like object that stores data in three different ways: - transient data, which is cleared on resets - system data, which is never cleared - sample data, which is cleared only on specific resets of the sample
The data is transmitted to the data store on finalization, which is called at the end of each method.
- PROTECTED_SAMPLE_KEYS = ['sample_name', 'sample_uuid', 'sample_composition', 'AL_components', 'AL_campaign_name', 'AL_uuid']#
- PROTECTED_SYSTEM_KEYS = ['driver_name', 'driver_config', 'platform_serial']#
- class AFL.automation.APIServer.data.DataJSON(path)[source]#
A DataPacket implementation that serializes its data to JSON, named according to the current time.
- class AFL.automation.APIServer.data.DataTiled(server, api_key, backup_path)[source]#
A DataPacket implementation that serializes its data to Tiled with backup to JSON, named according to the current time.
- class AFL.automation.APIServer.data.DataTrashcan[source]#
A DataPacket implementation for testing only that takes all its data and simply throws it away.
Modules