Skip to main content

Module environment

Module environment 

Source
Expand description

Non-executing PEP 723 discovery and deterministic Python environment plans.

This module is intentionally side-effect free. Parsing never imports provider code, and planning never creates a virtual environment or contacts a package index. A later cache manager consumes the immutable plan.

Structs§

Pep723Metadata
PythonEnvironmentPlan
PythonRuntimeFingerprint
Immutable identity of the selected Python runtime and wheel target.
PythonWheelTag
One expanded compatibility tag selected from an SDK wheel filename.

Enums§

PythonEnvironmentError

Constants§

ENVIRONMENT_PLAN_VERSION
Cache-policy schema version used by immutable Python environment plans.

Functions§

parse_pep723_metadata
Parse the PEP 723 script block without importing or evaluating the source.
plan_python_environment
Produce an immutable cache plan. This function performs no filesystem I/O.