Crate uv_python

Crate uv_python 

Source
Expand description

Find requested Python interpreters and query interpreters for information.

Re-exports§

pub use crate::downloads::PlatformRequest;

Modules§

downloads
macos_dylib
managed

Structs§

BrokenSymlink
Interpreter
A Python executable and its associated platform markers.
Prefix
A --prefix directory into which packages can be installed, separate from a virtual environment or system Python interpreter.
PyVenvConfiguration
A parsed pyvenv.cfg
PythonEnvironment
A Python environment, consisting of a Python Interpreter and its associated paths.
PythonInstallation
A Python interpreter and accompanying tools.
PythonInstallationKey
PythonInstallationMinorVersionKey
A view into a PythonInstallationKey that excludes the patch and prerelease versions.
PythonNotFound
The result of failed Python installation discovery.
PythonVersion
PythonVersionFile
A .python-version or .python-versions file.
Target
A --target directory into which packages can be installed, separate from a virtual environment or system Python interpreter.
VersionFileDiscoveryOptions
VirtualEnvironment
The layout of a virtual environment.

Enums§

BuildVersionError
DiscoveryError
EnvironmentPreference
Error
ImplementationName
InterpreterError
InvalidEnvironmentKind
LenientImplementationName
PointerSize
PythonDownloads
PythonPreference
PythonRequest
A request to find a Python installation.
PythonSource
A location for discovery of a Python installation or interpreter.
PythonVariant
VersionFilePreference
Whether to prefer the .python-version or .python-versions file.
VersionRequest
A Python discovery version request.
VirtualEnvError

Statics§

PYTHON_VERSIONS_FILENAME
The file name for multiple Python version declarations.
PYTHON_VERSION_FILENAME
The file name for Python version pins.

Functions§

canonicalize_executable
Calls fs_err::canonicalize on Unix. On Windows, avoids attempting to resolve symlinks but will resolve junctions if they are part of a trampoline target.
find_python_installations
Iterate over all Python installations that satisfy the given request.
satisfies_python_preference
Returns true if a Python interpreter matches the PythonPreference.