Skip to main content

load_python_catalog

Function load_python_catalog 

Source
pub fn load_python_catalog(
    path: &Path,
    env_prefix: &str,
) -> Result<ProviderCatalog, String>
Expand description

Introspects a .py provider file by importing it (in “catalog” mode) in a bounded sidecar and validating the resulting manifest against the generic provider-core contract. Callers that layer additional product policy on top of every provider’s catalog (e.g. Soma’s reserved CLI-command / env-prefix checks) apply it to the returned catalog themselves — see the module docs above.