mafw.tools.filter_files
Shared extraction, validation and overlay of external filter TOML.
Added in version 2.4.
- Author:
MAFw developers
Module Attributes
Logger for dormant filter scopes. |
Functions
|
Serialize safely through a temporary file beside the destination. |
|
Copy steering data with filter definitions removed, retaining new-only settings. |
|
Copy explicit filter definitions and new-only settings into TOML. |
|
Copy configuration and replace matching model definitions in order. |
|
Read and validate an external filter file without loading plugins. |
|
Copy steering data with filters removed, retaining new-only settings. |
|
Reject non-filter entries and validate existing filter expressions. |
- mafw.tools.filter_files.atomic_write(path: Path | str, text: str) None[source]
Serialize safely through a temporary file beside the destination.
Added in version 2.4.
- mafw.tools.filter_files.drop_filters(config: Mapping[str, Any]) Any[source]
Copy steering data with filter definitions removed, retaining new-only settings.
Added in version 2.4.
- mafw.tools.filter_files.extract_filters(config: Mapping[str, Any]) TOMLDocument[source]
Copy explicit filter definitions and new-only settings into TOML.
Added in version 2.4.
- mafw.tools.filter_files.overlay_filters(config: Mapping[str, Any], overlays: Sequence[Mapping[str, Any]]) Any[source]
Copy configuration and replace matching model definitions in order.
Added in version 2.4.
- mafw.tools.filter_files.read_filters(path: Path | str) TOMLDocument[source]
Read and validate an external filter file without loading plugins.
Added in version 2.4.
- mafw.tools.filter_files.strip_filters(config: Mapping[str, Any]) Any[source]
Copy steering data with filters removed, retaining new-only settings.
Added in version 2.4.
- mafw.tools.filter_files.validate_filters(config: Mapping[str, Any]) None[source]
Reject non-filter entries and validate existing filter expressions.
Added in version 2.4.
- mafw.tools.filter_files._KEYS = {'__filter__', '__logic__', '__new_only__'}
Filter-related processor entries.