replay_wizard.models package
Submodules
replay_wizard.models.action module
Base action module
- class replay_wizard.models.action.Action(*, subtype: str = 'Action')[source]
Bases:
BaseModel
Action model
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'subtype': FieldInfo(annotation=str, required=False, default='Action')}
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- subtype: str
replay_wizard.models.keyboard module
Action module
- class replay_wizard.models.keyboard.ActionEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
str
,Enum
press or release
- PRESS = 'press'
- RELEASE = 'release'
- class replay_wizard.models.keyboard.KeyboardAction(*, subtype: str = 'KeyboardAction', value: str, action: ActionEnum = ActionEnum.PRESS)[source]
Bases:
Action
Action model
- action: ActionEnum
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'action': FieldInfo(annotation=ActionEnum, required=False, default=<ActionEnum.PRESS: 'press'>), 'subtype': FieldInfo(annotation=str, required=False, default='KeyboardAction'), 'value': FieldInfo(annotation=str, required=True)}
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- subtype: str
- value: str
replay_wizard.models.mouse module
Mouse actions
- class replay_wizard.models.mouse.Button(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
str
,Enum
Mouse button
- LEFT = 'left'
- RIGHT = 'right'
- class replay_wizard.models.mouse.ClickAction(*, subtype: str = 'ClickAction', x: int, y: int, button: Button, pressed: bool)[source]
Bases:
MouseAction
Click mouse action
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'button': FieldInfo(annotation=Button, required=True), 'pressed': FieldInfo(annotation=bool, required=True), 'subtype': FieldInfo(annotation=str, required=False, default='ClickAction'), 'x': FieldInfo(annotation=int, required=True), 'y': FieldInfo(annotation=int, required=True)}
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- pressed: bool
- subtype: str
- class replay_wizard.models.mouse.MouseAction(*, subtype: str = 'MouseAction', x: int, y: int)[source]
Bases:
Action
Mouse Action
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'subtype': FieldInfo(annotation=str, required=False, default='MouseAction'), 'x': FieldInfo(annotation=int, required=True), 'y': FieldInfo(annotation=int, required=True)}
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- subtype: str
- x: int
- y: int
- class replay_wizard.models.mouse.ScrollAction(*, subtype: str = 'ScrollAction', x: int, y: int, dx: int, dy: int)[source]
Bases:
MouseAction
Scroll mouse action
- dx: int
- dy: int
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'dx': FieldInfo(annotation=int, required=True), 'dy': FieldInfo(annotation=int, required=True), 'subtype': FieldInfo(annotation=str, required=False, default='ScrollAction'), 'x': FieldInfo(annotation=int, required=True), 'y': FieldInfo(annotation=int, required=True)}
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- subtype: str
replay_wizard.models.time_sequence module
Time sequence model
- class replay_wizard.models.time_sequence.TimeSequence(*, subtype: str = 'TimeSequence', name: str, actions: list = [], timestamp_list: list = [], start_time: float = None)[source]
Bases:
Action
Sequence with time
- actions: list
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'actions': FieldInfo(annotation=list, required=False, default=[]), 'name': FieldInfo(annotation=str, required=True), 'start_time': FieldInfo(annotation=float, required=False, default_factory=builtin_function_or_method), 'subtype': FieldInfo(annotation=str, required=False, default='TimeSequence'), 'timestamp_list': FieldInfo(annotation=list, required=False, default=[])}
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- classmethod model_validate(*args, **kwargs)[source]
Validate a pydantic model instance.
- Parameters:
obj – The object to validate.
strict – Whether to enforce types strictly.
from_attributes – Whether to extract data from object attributes.
context – Additional context to pass to the validator.
- Raises:
ValidationError – If the object could not be validated.
- Returns:
The validated model instance.
- name: str
- start_time: float
- subtype: str
- timestamp_list: list
Module contents
Models package
- replay_wizard.models.get_sequence() TimeSequence [source]
Fabric method to get sequence object
- Parameters:
true_time – use true time