environment_yml#

Built-in conda standard environment exporter plugins (YAML and JSON).

Functions#

to_dict(→ dict[str, Any])

Convert Environment to standard dictionary format used by YAML and JSON exporters.

export_yaml(→ str)

Export Environment to YAML format.

export_json(→ str)

Export Environment to JSON format.

conda_environment_exporters()

Register the built-in YAML and JSON environment exporters.

Attributes#

ENVIRONMENT_JSON_FORMAT: Final = 'environment-json'#
ENVIRONMENT_YAML_FORMAT: Final = 'environment-yaml'#
EnvironmentFormatType#
to_dict(env: conda.models.environment.Environment) dict[str, Any]#

Convert Environment to standard dictionary format used by YAML and JSON exporters.

This represents the common dictionary structure that both YAML and JSON environment formats use.

Parameters:

env -- Environment model to convert

Returns:

Dictionary with standard environment fields

export_yaml(env: conda.models.environment.Environment) str#

Export Environment to YAML format.

export_json(env: conda.models.environment.Environment) str#

Export Environment to JSON format.

conda_environment_exporters()#

Register the built-in YAML and JSON environment exporters.