salo
Subpackages
Submodules
Package Contents
Classes
Mixin to provide __str__, __repr__, and __pretty__ methods. See #884 for more details. |
|
Mixin to provide __str__, __repr__, and __pretty__ methods. See #884 for more details. |
Attributes
- class salo.Session(model: Dict, cadence: salo.cadence.Cadence, defaults: Dict, saved_values: Optional[Dict] = None)[source]
- spawn(self, model: Dict, options: Dict) None [source]
Iterate over event objects in recipe, generate Event objects, and spawn additional child Event objects.
- class salo.Sessions(config: str, outputs: Optional[List] = None, output_config: Optional[str] = None)[source]
- load_config(self, config: pathlib.Path) Dict [source]
Load Salo configuration file for recipe or output
- create_session(self, model: Dict) None [source]
Create a new Session object for this collection of Sessions
- class salo.Event(model: Dict, session: Session, options: Dict, exclude_none: bool = True)[source]
-
- update_saved_values(self, event: Union[salo.stencils.SaloStencilModel, salo.events.SaloEventModel]) None [source]
Ensure saved_values are updated if defined in the recipe
- get_saved_value(self, key: str, index: Optional[int] = None, is_random: bool = False) Any [source]
Set the value of an attribute for the event if a saved_value exists and is defined
- salo.fake
- class salo.SaloEventModel(__pydantic_self__, **data: Any)[source]
Bases:
pydantic.BaseModel
Mixin to provide __str__, __repr__, and __pretty__ methods. See #884 for more details.
__pretty__ is used by [devtools](https://python-devtools.helpmanual.io/) to provide human readable representations of objects.
- class salo.SaloStencilModel(__pydantic_self__, **data: Any)[source]
Bases:
pydantic.BaseModel
Mixin to provide __str__, __repr__, and __pretty__ methods. See #884 for more details.
__pretty__ is used by [devtools](https://python-devtools.helpmanual.io/) to provide human readable representations of objects.
- salo.__version__ = 0.1.1
- salo.__author__ = Marcus LaFerrera