Expand description
Line-oriented parsing for requirements.txt / constraints.txt — pip’s
requirements file format.
Every requirement line is routed through the shared
PypiParser::parse_pep508_requirement — the same
function the pyproject.toml paths use — so hover, diagnostics, markers
and extras render identically to a PEP 621 dependency string. This
module’s job is purely to turn free-form line-oriented text into
(requirement text, absolute byte span) pairs, plus a content gate that
keeps prose files that happen to match the routing pattern (e.g.
product-requirements.txt) from producing spurious network requests and
diagnostics.