Skip to content

runtime

pyvider.cty.config.runtime

TODO: Add module docstring.

Classes

CtyConfig

Bases: RuntimeConfig

Runtime configuration for pyvider-cty.

Uses Foundation's RuntimeConfig for consistent environment variable loading and validation patterns.

Functions
get_current classmethod
get_current() -> Self

Get current configuration from environment variables.

Returns:

Type Description
Self

Current CtyConfig instance loaded from environment

Source code in pyvider/cty/config/runtime.py
@classmethod
def get_current(cls) -> Self:
    """Get current configuration from environment variables.

    Returns:
        Current CtyConfig instance loaded from environment
    """
    return cls.from_env(prefix="PYVIDER_CTY")

Functions