:py:mod:`yaml_file` =================== .. py:module:: conda.env.specs.yaml_file .. autoapi-nested-parse:: Define YAML spec. Classes ------- .. autoapisummary:: conda.env.specs.yaml_file.YamlFileSpec .. py:class:: YamlFileSpec(filename=None, **kwargs) Bases: :py:obj:`conda.plugins.types.EnvironmentSpecBase` **EXPERIMENTAL** Base class for all env specs. .. py:property:: environment :type: conda.env.env.EnvironmentYaml .. py:property:: env :type: conda.models.environment.Environment Express the provided environment file as a conda environment object. :returns Environment: the conda environment represented by the file. .. py:attribute:: _environment .. py:attribute:: extensions .. py:method:: can_handle() Validates loader can process environment definition. This can handle if: * the provided file exists * the provided file ends in the supported file extensions (.yaml or .yml) * the env file can be interpreted and transformed into a `conda.env.env.Environment` :return: True or False