:py:mod:`explicit` ================== .. py:module:: conda.env.specs.explicit .. autoapi-nested-parse:: Define explicit spec. Classes ------- .. autoapisummary:: conda.env.specs.explicit.ExplicitSpec .. py:class:: ExplicitSpec(filename: str | None = None, **kwargs) Bases: :py:obj:`conda.plugins.types.EnvironmentSpecBase` The ExplicitSpec class handles explicit environment files. These are ones which are marked with the @EXPLICIT marker. Initialize the explicit specification. :param filename: Path to the requirements file :param kwargs: Additional arguments .. py:property:: env :type: conda.models.environment.Environment Build an environment from the explicit file. :return: An Environment object containing the package specifications :raises ValueError: If the file cannot be read .. py:method:: can_handle() -> bool Validates that this spec can process the environment definition. This checks if: * a filename was provided * the file has the "@EXPLICIT" marker :return: True if the file can be handled, False otherwise