Expand description
Python dependency manifest parsing.
Two manifest shapes share the PypiParser type and its parse_result
representation:
pyproject.rs: TOML-based manifests (PEP 621, PEP 735, Poetry, PEP 517/518 build-system requires).requirements.rs: line-orientedrequirements.txt/constraints.txtfiles (pip’s requirements file format).
Both paths funnel every PEP 508 requirement string through the shared
PypiParser::parse_pep508_requirement below (private — an implementation
detail, not part of the public API), so hover, diagnostics, markers and
extras render identically regardless of which manifest shape produced the
dependency.
Modules§
- pyproject
pyproject.tomlparsing: PEP 621, PEP 735, Poetry, and PEP 517/518 build-system requires.- requirements
- Line-oriented parsing for
requirements.txt/constraints.txt— pip’s requirements file format.
Structs§
- Parse
Result - Parse result containing all dependencies from a Python dependency manifest.
- Pypi
Parser - Parser for Python dependency manifests.
- Requirement
Ref - A
-r/-creference to another requirements/constraints file.