load_trait()
Load a trait from an arbitrary YAML file path.
Usage
load_trait(path)Parameters
path: str | Path- Path to a trait YAML file.
Returns
TraitDefinition- The parsed trait definition.
Raises
FileNotFoundError- If the file doesn’t exist.
Examples
import talk_box as tb
t = tb.load_trait("my_traits/strict_security.yaml")