PydanticSerializer
Bases: Serializer[PydanticModel]
Serializes a single pydantic model type
to/from its JSON representation. Requires pydantic to be installed
(pip install alchemical_queues[pydantic]).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Type[PydanticModel]
|
the pydantic model class every entry put through the queue is an instance of. |
required |
Source code in src/alchemical_queues/serializers.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |