specs#

Functions#

get_spec_class_from_file(→ FileSpecTypes)

Determine spec class to use from the provided filename

detect(→ SpecTypes)

Return the appropriate spec type to use.

Attributes#

context#
deprecated#
exception EnvironmentFileExtensionNotValid(filename: os.PathLike, *args, **kwargs)#

Bases: CondaEnvException

Common base class for all non-exit exceptions.

Initialize self. See help(type(self)) for accurate signature.

exception EnvironmentFileNotFound(filename: os.PathLike, *args, **kwargs)#

Bases: CondaEnvException

Common base class for all non-exit exceptions.

Initialize self. See help(type(self)) for accurate signature.

exception EnvironmentSpecPluginNotDetected(name, plugin_names, *args, **kwargs)#

Bases: conda.CondaError

Common base class for all non-exit exceptions.

Initialize self. See help(type(self)) for accurate signature.

exception SpecNotFound(msg: str, *args, **kwargs)#

Bases: conda.CondaError

Common base class for all non-exit exceptions.

Initialize self. See help(type(self)) for accurate signature.

CONDA_SESSION_SCHEMES#
FileSpecTypes#
get_spec_class_from_file(filename: str) FileSpecTypes#

Determine spec class to use from the provided filename

Raises:

EnvironmentFileExtensionNotValid | EnvironmentFileNotFound --

detect(filename: str | None = None) SpecTypes#

Return the appropriate spec type to use.

Raises:

SpecNotFound -- Raised if no suitable spec class could be found given the input