larder.dog¶
DOG (Data Operation Graph)
Classes
|
Asynchronous DOG: like |
|
Synchronous DAG-of-operations executor over typed data stores. |
- class larder.dog.ADOG(operation_signatures, data_stores, operation_implementations, *, base_path=None, ttl_seconds=3600, serialization=SerializationFormat.JSON, middleware=None, sourced_argnames=None)[source]¶
Bases:
_DOGAsynchronous DOG: like
DOGbut runs operations viaasync_compute.Adds caching/persistence knobs (
ttl_seconds,serialization,middleware) and abase_pathfor the async result stores; otherwise the operation/store/signature model is the same asDOG.
- class larder.dog.DOG(operation_signatures, data_stores, operation_implementations, sourced_argnames=None)[source]¶
Bases:
_DOGSynchronous DAG-of-operations executor over typed data stores.
Given
operation_signatures(Callable[[In], Out]per operation),data_stores(each tagged with atype), andoperation_implementations,call()runs an implementation, sources any string-key arguments from the stores, and persists the output to the store whosetypematches the operation’s return type. A runnable example is in the README (“DOG example”).