Skip to main content

Module python

Module python 

Source
Expand description

Python version management

This module provides functionality for managing Python installations:

  • Platform detection for downloading the correct binaries
  • Version parsing and matching
  • Downloading and installing Python from python-build-standalone
  • Project-level version pinning (.python-version)
  • Global default version configuration

Structs§

AvailableVersion
Information about an available Python version
InstalledPython
Information about an installed Python version
Platform
Platform (OS + Architecture combination)
PythonManager
Python version manager
PythonVersion
A Python version with major, minor, and optional patch

Enums§

Arch
CPU architecture
Os
Operating system

Functions§

available_versions
Get a list of known available Python versions from python-build-standalone
find_matching_version
Find the latest version matching a specification
get_versions_for_minor
Get all versions for a specific major.minor