spec.load_architecture(path)
Read regen/architecture.toml.
Parameters
| path |
Path |
Path of the file. |
required |
Raises
|
SpecError |
If a required field is missing or a pace is unknown. |
Examples
from pathlib import Path
from tempfile import TemporaryDirectory
from spotregen import load_architecture, make_sample_repo
with TemporaryDirectory() as tmp:
root = make_sample_repo(Path(tmp) / "demo")
arch = load_architecture(root / "regen" / "architecture.toml")
print(arch.package, sorted(arch.allowed))
samplepkg ['__init__', 'app', 'core']