pyflightstream.workspace.migrate (provisional)¶
Generated from the docstrings at build time: every one of the 1 names in the __all__ of pyflightstream.workspace.migrate has an entry below. The names a guide or an example uses come first; the others follow under Advanced.
Explicit copy-first migration of the workspace record format.
Advanced¶
pyflightstream.workspace.migrate.migrate_workspace
¶
migrate_workspace(
root: str | Path, *, apply: bool = False
) -> list[dict[str, Any]]
Preview record changes, or back up and replace each changed manifest.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
str or Path
|
Workspace directory containing live run manifests. |
required |
apply
|
bool
|
Write the validated conversion and exact backups. The default only previews. |
False
|
Returns:
| Type | Description |
|---|---|
list of dict
|
Changed files, original and converted byte counts, backups and apply state. |
Raises:
| Type | Description |
|---|---|
WorkspaceError
|
The workspace, a record or an existing backup prevents migration. |
Notes
Archives, products and solver state remain evidence. Every candidate is validated before the first backup or replacement. A repeated apply skips already migrated files. Migration instructions are in docs/upgrading.md.