$npx skillfedfor your agent

pip-requirements-parser

pip requirements parser - a mostly correct pip requirements parsing library because it uses pip's own code.

With conditionsPyPI Software DevelopmentReleased Dec 202231.7M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pip_requirements_parser-32.0.1-py3-none-any.whl
v32.0.1 · released 2022-12-21 · Python >=3.6.0 · 2 runtime deps: packaging, pyparsing

Yes, if your requirements file syntax is stable and you need offline, pip-compatible parsing without pip's dependencies. The library is production-stable and has comprehensive test coverage. However, do not install if you require support for pip syntax changes after December 2022 or expect ongoing maintenance—the project is dormant and will not track pip's evolution.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.6 or later; designed to work offline but will not receive updates if pip's requirements syntax evolves.
  • Low friction: pure Python wheel with only two runtime dependencies (packaging and pyparsing).
  • Maintenance is dormant—last release was 2022-12-21 and no commits since 2024-09-02—so expect no updates for new pip syntax or Python versions, though the codebase is marked Production/Stable.

License · maintenance · safety

MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or distribution in commercial or private projects.

last release 2022-12-21 (1332 days) · last repo commit 2024-09-02 · 20 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 31,716,922 downloads/mo, #783 on PyPI

Verify before relying

from pip_requirements_parser import RequirementsFile
rf = RequirementsFile.from_file("requirements.txt")
for req in rf.requirements:
    print(req.to_dict())
  • Whether the library continues to parse correctly as pip's syntax evolves post-2024-09-02.
  • Compatibility with pip versions released after the library's last update in December 2022.
Same gist for agents: .md · .json

What it is and what it does

pip-requirements-parser extracts pip's own requirements-file parsing logic into a standalone Python library. Rather than reimplementing the parser from scratch or wrapping pip as a library (both approaches that risk incompleteness or dependency on pip's unstable internals), this package forks and maintains the relevant subset of pip's code. It parses requirements files offline without making network calls, and exposes a simple, stable API that returns structured objects for requirements, options, comments, and invalid lines.

The library is designed for tools that need to understand pip requirements files without depending on pip itself or reimplementing its parsing. It includes pip's own test suite plus additional test coverage from other requirement parsers, making it one of the most comprehensive parsers available. However, maintenance is dormant: the last release was in December 2022, so it will not automatically track changes to pip's syntax or support for new Python versions.

Use it for

  • Analyze and validate requirements files in build or CI/CD pipelines without invoking pip.
  • Extract structured dependency information from requirements files for reporting or auditing tools.
  • Parse requirements in offline or constrained environments where network access is unavailable.
  • Migrate or transform requirements files programmatically while preserving comments and options.
  • Integrate requirements parsing into package managers or dependency resolution tools that need pip-compatible parsing.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if your requirements file syntax is stable and you need offline, pip-compatible parsing without pip's dependencies.

The library is production-stable and has comprehensive test coverage. However, do not install if you require support for pip syntax changes after December 2022 or expect ongoing maintenance—the project is dormant and will not track pip's evolution.

Install

pip-requirements-parser on PyPI

Before you install

Low friction: pure Python wheel with only two runtime dependencies (packaging and pyparsing). Maintenance is dormant—last release was 2022-12-21 and no commits since 2024-09-02—so expect no updates for new pip syntax or Python versions, though the codebase is marked Production/Stable.

Requires Python 3.6 or later; designed to work offline but will not receive updates if pip's requirements syntax evolves.

License in practice

MIT license is permissive and imposes no restrictions on use, modification, or distribution in commercial or private projects.

Quickstart

from pip_requirements_parser import RequirementsFile
rf = RequirementsFile.from_file("requirements.txt")
for req in rf.requirements:
    print(req.to_dict())

Verify before relying

  • Whether the library continues to parse correctly as pip's syntax evolves post-2024-09-02.
  • Compatibility with pip versions released after the library's last update in December 2022.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.6.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
packagingpyparsing
MaintenanceDormant 1,332 days since the last release
Last repo commit
First released
Downloads31,716,922 / month, #783 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Software DevelopmentTopic :: Utilities

Evidence: pip_requirements_parser-32.0.1-py3-none-any.whl

Tags

Capabilities
pip requirements file parserparse requirements.txtdependency parsingpip requirements parsingrequirements file formatpip dependency resolverparse pip options
Topics
requirements-parsingoffline-capablepip-compatible
PyPI keywords
utilitiespiprequirementsparserdependenciespypi

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pip requirements file parser”

  • pip-requirements-parserParses pip requirements files with the same correctness as pip…
  • requirements-parserParses pip requirement files into structured data, extracting package…
  • pip-chillpip-chill generates a minimal requirements file listing only the…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also dparse2 · requirements-parser · requirementslib · dparse · pip-api · pip-tools · pipfile · requirements-detector · debian-inspector · pip-compile-multi