Skip to main content

Crate vlz_python

Crate vlz_python 

Source

Structs§

DirectOnlyResolver
Resolver for Python manifests (FR-022, FR-023, FR-022a, SEC-023).
PythonManifestFinder
Python manifest finder that discovers Python manifest files under a directory tree. When patterns are set (FR-006), file names are matched by regex in order; first match wins.
PythonTierBAnalyzer
RequirementsTxtParser
Parser for Python manifest files (requirements.txt, pyproject.toml, etc.). Dispatches by manifest file name; returns empty graph for unknown types (callers should only pass files found by the PythonManifestFinder).

Enums§

PipInstallStrategy
How FR-023 pip fallback should install dependencies for a manifest file.

Constants§

DIRECT_ONLY_REASON_FALLBACK_ON_FAILURE
Direct-only reason when allow_direct_only_fallback is enabled (FR-022a).
DIRECT_ONLY_REASON_OFFLINE
Direct-only reason when --offline is active (FR-022a).
FR_022_TRANSITIVE_ERROR_MESSAGE
FR-022 exit-4 message (exact shared string, NFR-024).
PYTHON_LOCK_FILES_ENV
Environment variable for Python lock-file allowlist (Phase 2).
PYTHON_LOCK_FILE_NAMES
Python lock file basenames (Appendix A). pylock.*.toml handled by is_pylock_variant.
PYTHON_MANIFEST_NAMES
Python manifest file names (FR-005). Overridden by regexes when set (FR-006). setup.py is parsed via AST (see parser/setup_py.rs); dynamic/runtime deps are not extracted.

Functions§

filter_orphan_locks
Return orphan lock paths: locks in directories with no Python manifest.
find_lock_file
Legacy helper: first adjacent (or parent-walked) lock file, if any.
find_lock_files
Find all applicable lock file paths for manifest_path.
find_manifest_project_dir
Returns the project directory containing the manifest (parent of manifest_path). FR-023 uses this as the install target for setup.py, pyproject.toml, and setup.cfg.
is_pylock_variant
True when name is pylock.toml or pylock.*.toml (PEP 751).
is_python_lock_file
True when name is a supported Python lock file basename.
lock_name_matches_allowlist
True when allowlist is empty (scan all supported locks) or name is listed.
manifest_is_lock_file
True when path is a lock-file entry point (orphan or adjacent resolution).
normalize_lock_file_allowlist
Normalize and validate a lock-file allowlist; empty input is allowed.
normalize_lock_file_basename
Basename from a --lock-file / config entry (path or basename).
orphan_multi_lock_warning_dirs
Collect orphan multi-lock directories and lock basenames for stderr warnings.
parse_lock_file
Parse a lock file into packages. Detects format by filename and content.
parse_pip_freeze
Parse pip freeze stdout into packages (name==version lines).
parse_pipfile
Parse Pipfile content into a list of packages (name, version). Supports [packages] and [dev-packages] sections. Public for fuzzing (NFR-020).
parse_pylock_toml
Parse pylock.toml (PEP 751) format.
parse_pyproject_toml
Parse pyproject.toml content into a list of packages (name, version). Supports PEP 621 [project].dependencies and [project].optional-dependencies and [tool.poetry.dependencies] for Poetry-style pyproject.toml. Public for fuzzing (NFR-020).
parse_requirements_txt
Parse requirements.txt content into a list of packages (name, version). Skips comments, empty lines, and directive lines (-r, -e, etc.). Version: exact from ==, first version from >=/<=/~=, else "any". Public for fuzzing (NFR-020).
parse_setup_cfg
Parse setup.cfg content into a list of packages (name, version). Supports [options] install_requires and [options.extras_require]. Public for fuzzing (NFR-020).
parse_setup_py
Parse setup.py content into a list of packages (name, version). Public for fuzzing (NFR-020).
pip_install_strategy
Select the pip install strategy for a manifest path (FR-023 hook; no subprocess here).
verify_lock_allowlist_for_dir
When allowlist is set and dir already has lock files, every listed basename must exist.