create_virtual_env

create_virtual_env(dir_path: str, **env_args) -> types.SimpleNamespace

Creates a python virtual environment and returns the context.

Parameters:
NameDescription
dir_pathDirectory path where the env will be created.

Type: str
**env_argsAny extra args to pass to the EnvBuilder

Returns:
TypeDescription
types.SimpleNamespaceSimpleNamespace: the virtual env context object.