Serializer
Turns a queue entry's data into bytes for storage and back.
Implement this to control how AlchemicalQueue/AlchemicalTaskQueue
store the item passed to put() (and, for AlchemicalTaskQueue, the
response passed to respond()). Pass an instance via the
serializer= argument of
AlchemicalQueues.get and
friends.
Source code in src/alchemical_queues/serializers.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |
dumps(obj)
abstractmethod
Serialize obj to bytes for storage.
Source code in src/alchemical_queues/serializers.py
26 27 28 | |
loads(data)
abstractmethod
Deserialize data back into the original object.
Source code in src/alchemical_queues/serializers.py
30 31 32 | |