:py:mod:`specs` =============== .. py:module:: conda.env.specs .. toctree:: :hidden: :titlesonly: :maxdepth: 3 binstar/index.rst explicit/index.rst requirements/index.rst yaml_file/index.rst Functions --------- .. autoapisummary:: conda.env.specs.get_spec_class_from_file conda.env.specs.detect Attributes ---------- .. autoapisummary:: conda.env.specs.context conda.env.specs.deprecated conda.env.specs.CONDA_SESSION_SCHEMES conda.env.specs.FileSpecTypes .. py:data:: context .. py:data:: deprecated .. py:exception:: EnvironmentFileExtensionNotValid(filename: os.PathLike, *args, **kwargs) Bases: :py:obj:`CondaEnvException` Common base class for all non-exit exceptions. Initialize self. See help(type(self)) for accurate signature. .. py:exception:: EnvironmentFileNotFound(filename: os.PathLike, *args, **kwargs) Bases: :py:obj:`CondaEnvException` Common base class for all non-exit exceptions. Initialize self. See help(type(self)) for accurate signature. .. py:exception:: EnvironmentSpecPluginNotDetected(name: str, plugin_names: collections.abc.Iterable[str], autodetect_disabled_plugins: collections.abc.Iterable[str] = (), *args, **kwargs) Bases: :py:obj:`SpecNotFound` Common base class for all non-exit exceptions. Initialize self. See help(type(self)) for accurate signature. .. py:exception:: SpecNotFound(msg: str, *args, **kwargs) Bases: :py:obj:`conda.CondaError` Common base class for all non-exit exceptions. Initialize self. See help(type(self)) for accurate signature. .. py:data:: CONDA_SESSION_SCHEMES .. py:data:: FileSpecTypes .. py:function:: get_spec_class_from_file(filename: str) -> FileSpecTypes Determine spec class to use from the provided ``filename`` :raises EnvironmentFileExtensionNotValid | EnvironmentFileNotFound: .. py:function:: 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