qwikstart.operations.context_from_regex module¶
-
class
qwikstart.operations.context_from_regex.
Context
(execution_context:qwikstart.base_context.ExecutionContext, regex:str, file_path:pathlib.Path, regex_flags:List[str]=<factory>)¶ Bases:
qwikstart.base_context.BaseContext
-
file_path
: Path = None¶
-
classmethod
help
(field_name: str) → Optional[str]¶
-
regex
: str = None¶
-
regex_flags
: List[str] = None¶
-
-
class
qwikstart.operations.context_from_regex.
Operation
(local_context: Optional[Mapping[str, Any]] = None, opconfig: Optional[Dict[str, Any]] = None, description: str = '')¶ Bases:
qwikstart.operations.base.BaseOperation
Operation to extract context data from a file using a regex.
See https://qwikstart.readthedocs.io/en/latest/operations/context_from_regex.html
-
name
: str = 'context_from_regex'¶
-
run
(context: qwikstart.operations.context_from_regex.Context) → Dict[str, str]¶ Override with action
-