serialise¶
Filter for serialisation using DLite.
SerialiseConfig
¶
Bases: DLiteResult
DLite serialise-specific configurations.
Source code in oteapi_dlite/strategies/serialise.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
driver: Annotated[str, Field(description='Name of DLite plugin used for serialisation.')]
instance-attribute
¶
labels: Annotated[Optional[Sequence[str]], Field(None, description='Optional sequence of labels in the collection to serialise. The default is to serialise the entire collection.')] = None
class-attribute
instance-attribute
¶
location: Annotated[Path, Field(description='Path or URL to serialise to.')]
instance-attribute
¶
options: Annotated[Optional[str], Field(description='Options passed to the driver.')] = ''
class-attribute
instance-attribute
¶
SerialiseFilterConfig
¶
Bases: FilterConfig
Filter config for serialise.
Source code in oteapi_dlite/strategies/serialise.py
51 52 53 54 55 56 57 58 59 |
|
configuration: Annotated[SerialiseConfig, Field(description='Serialise-specific configurations.')]
instance-attribute
¶
SerialiseStrategy
¶
Filter for serialisation using DLite.
Registers strategies:
("filterType", "dlite_serialise")
Source code in oteapi_dlite/strategies/serialise.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
|
filter_config: SerialiseFilterConfig
instance-attribute
¶
get()
¶
Execute the strategy.
Source code in oteapi_dlite/strategies/serialise.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
|
initialize()
¶
Initialize.
Source code in oteapi_dlite/strategies/serialise.py
74 75 76 77 78 79 80 |
|