Skip to main content

Crate monochange_python

Crate monochange_python 

Source
Expand description

§monochange_python

monochange_python discovers Python packages from uv workspaces, Poetry projects, and standalone pyproject.toml files.

§Why use it?

  • discover uv workspaces and standalone Python packages with one adapter
  • normalize Python package manifests and dependency edges for the shared planner
  • infer lockfile refresh commands for uv and Poetry

§Public entry points

  • discover_python_packages(root) discovers Python packages
  • PythonAdapter exposes the shared adapter interface

§Scope

  • uv workspace member expansion
  • pyproject.toml parsing ([project] and [tool.poetry])
  • normalized dependency extraction from PEP 621 metadata
  • lockfile command inference for uv and Poetry

Structs§

PythonAdapter

Enums§

PythonVersionedFileKind

Constants§

POETRY_LOCK_FILE
PYPROJECT_FILE
UV_LOCK_FILE

Functions§

adapter
default_dependency_fields
Return the manifest fields that usually contain dependency versions.
default_dependency_version_prefix
default_lockfile_commands
discover_lockfiles
discover_python_packages
supported_versioned_file_kind
update_versioned_file
update_versioned_file_text
validate_versioned_file
Return the default dependency-version prefix for this ecosystem. Validate that a Python versioned file contains a readable version field.
write_python_placeholder_manifest