polywrap_client_config_builder.configures.env_configure module

This module contains the env configure class for the client config builder.

class polywrap_client_config_builder.configures.env_configure.EnvConfigure[source]

Bases: object

Allows configuring the environment variables.

add_env(uri: Uri, env: Any) ClientConfigBuilder[source]

Add an env for the given uri.

If an Any is already associated with the uri, it is modified.

add_envs(uri_envs: Dict[Uri, Any]) ClientConfigBuilder[source]

Add a list of envs to the builder’s config.

config: BuilderConfig
get_env(uri: Uri) Any | None[source]

Return the env for the given uri.

get_envs() Dict[Uri, Any][source]

Return the envs from the builder’s config.

remove_env(uri: Uri) ClientConfigBuilder[source]

Remove the env for the given uri.

remove_envs(uris: List[Uri]) ClientConfigBuilder[source]

Remove the envs for the given uris.

set_env(uri: Uri, env: Any) ClientConfigBuilder[source]

Set the env by uri in the builder’s config, overiding any existing values.

set_envs(uri_envs: Dict[Uri, Any]) ClientConfigBuilder[source]

Set the envs in the builder’s config, overiding any existing values.