requirements-parser
This is a small Python module for parsing Pip requirement files.
Decision gist · record as of 2026-08-14
Yes. This is a stable, actively maintained parser with low install friction and no known vulnerabilities. Use it when you need to programmatically read and inspect pip requirement files rather than parsing them manually or with regex.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with a single runtime dependency (packaging).
- Actively maintained with a recent release; repository is not archived and has received commits within the last two months.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache 2.0 (permissive), allowing modification and redistribution with minimal restrictions—suitable for both open-source and commercial use.
last release 2026-06-18 (57 days) · last repo commit 2026-06-18 · 141 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 17,822,865 downloads/mo, #1,103 on PyPI
Alternatives
Verify before relying
pip install requirements-parser
import requirements
with open('requirements.txt', 'r') as fd:
for req in requirements.parse(fd):
print(req.name, req.specs)- Whether the parser handles all edge cases in the current pip requirement file format specification
- Performance characteristics when parsing very large requirement files
What it is and what it does
requirements-parser is a lightweight Python module that reads and parses pip requirement files—the text files that list project dependencies—into structured objects you can inspect programmatically. It accepts either a file-like object or a string and extracts package names, version constraints, and metadata like extras, URLs, and version control references.
The module handles most pip requirement file syntax including editables, version control URIs, egg hashes, subdirectories, and extras. It has a single runtime dependency on packaging and supports Python 3.8 through 3.14. The project is actively maintained and has been in use since its initial release in 2013.
Use it for
- Programmatically inspect and validate requirements.txt files in build or deployment scripts
- Extract dependency metadata for dependency analysis or auditing tools
- Parse requirements files to generate reports or migrate dependencies between formats
- Validate requirement syntax before installation in CI/CD pipelines
- Build tools that need to understand pip dependency specifications
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a stable, actively maintained parser with low install friction and no known vulnerabilities. Use it when you need to programmatically read and inspect pip requirement files rather than parsing them manually or with regex.
Install
requirements-parser on PyPI
Before you install
Low friction install with a single runtime dependency (packaging). Actively maintained with a recent release; repository is not archived and has received commits within the last two months.
License in practice
Licensed under Apache 2.0 (permissive), allowing modification and redistribution with minimal restrictions—suitable for both open-source and commercial use.
Quickstart
pip install requirements-parser
import requirements
with open('requirements.txt', 'r') as fd:
for req in requirements.parse(fd):
print(req.name, req.specs)
Verify before relying
- Whether the parser handles all edge cases in the current pip requirement file format specification
- Performance characteristics when parsing very large requirement files
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepackaging |
| Maintenance | Actively maintained 57 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 17,822,865 / month, #1,103 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software DevelopmentTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Software DistributionTyping :: Typed |
Evidence: requirements_parser-0.13.1-py3-none-any.whl
Tags
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 › “requirement file parser”
- requirements-parserParses pip requirement files into structured data, extracting package…
- pip-requirements-parserParses pip requirements files with the same correctness as pip…
- reqifReqIF is a Python library for parsing, unparsing, formatting,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
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.
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.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
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.
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.
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.
See also pip-requirements-parser · hatch-requirements-txt · requirementslib · poetry-plugin-export · hashin · git-url-parse · pip-api · cyclonedx-py · tls-parser · cyclonedx-bom