$npx skillfedfor your agent

requirements-parser

This is a small Python module for parsing Pip requirement files.

Worth itPyPI Software DevelopmentReleased Jun 202617.8M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — requirements_parser-0.13.1-py3-none-any.whl
v0.13.1 · released 2026-06-18 · Python <4.0,>=3.8 · 1 runtime deps: packaging

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

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
Same gist for agents: .md · .json

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.

Worth 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

LicenseApache-2.0 permissive
Python supportSupports the current Python release <4.0,>=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
packaging
MaintenanceActively maintained 57 days since the last release
Last repo commit
First released
Downloads17,822,865 / month, #1,103 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 :: 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

Capabilities
parse pip requirements filesrequirement file parserextract package dependenciespip requirements parsingparse requirements.txtdependency specification parserpip format parser
Topics
dependency-parsingpip-tools
PyPI keywords
Piprequirementsparse

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

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 pip-requirements-parser · hatch-requirements-txt · requirementslib · poetry-plugin-export · hashin · git-url-parse · pip-api · cyclonedx-py · tls-parser · cyclonedx-bom