dparse2
A parser for Python dependency files
What it is and what it does
dparse2 is a maintained fork of the original dparse library that parses Python dependency manifests and extracts structured information about each dependency. It reads requirements.txt, Pipfile, Pipfile.lock, conda.yml, tox.ini, and setup.cfg files, then returns parsed data as JSON-serializable objects containing package names, version specifications, hashes, and other metadata.
The package is designed for tools that need to analyze or process Python project dependencies programmatically. It depends on packvers, pyyaml, and toml for parsing different file formats. The fork was created because the original upstream project became unresponsive; this version supports Python 3.6 through 3.11 and has been marked Production/Stable, though active maintenance has stalled.
Use it for:
- Analyze dependencies in a Python project to detect version conflicts or outdated packages
- Extract and validate hashes from requirements files for supply-chain security checks
- Convert between different dependency file formats by parsing one and regenerating another
- Build a dependency graph or audit trail from conda.yml or Pipfile.lock for compliance reporting
- Integrate dependency parsing into a CI/CD pipeline to validate manifest syntax before deployment
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses Python dependency manifests (requirements.txt, Pipfile, conda.yml, tox.ini, setup.cfg) and extracts structured dependency information including version specs and hashes.
Yes, if you need to parse Python dependency files programmatically and can accept dormant maintenance. The package is stable, has no known vulnerabilities, and low install friction. However, the last release was in 2022—if you encounter bugs or need support for new dependency formats, you may need to fork or patch it yourself.
Install
dparse2 on PyPI
pip
pip install dparse2uv
uv add dparse2poetry
poetry add dparse2Installing dparse2
Before you install
Low install friction with three lightweight runtime dependencies (packvers, pyyaml, toml). Maintenance is dormant—last release was in 2022 and the repository shows minimal recent activity, though it remains a maintained fork of an upstream project that stopped updating.
License in practice
MIT license is permissive and poses no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
from dparse2 import parse, filetypes
content = "South==1.0.1\npycrypto>=2.6"
df = parse(content, file_type=filetypes.requirements_txt)
print(df.json())
Requires Python 3.6 or later; pipenv extra must be installed separately if Pipfile updates are needed.
Verify before relying
- Whether the package handles all edge cases in modern Python dependency formats (e.g., PEP 508 environment markers, direct URL references)
- Performance characteristics when parsing large or deeply nested dependency files
- Whether the pipenv extra dependency is still maintained and functional
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — packvers, pyyaml, toml |
| Maintenance | dormant — 1,330 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 130,426/month — #11,640 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dparse2-0.7.0-py3-none-any.whl
Keywords: dparse, pypi, dependencies, tox, conda, pipfile, setup.cfg
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
dparseParses Python dependency files…
permissive · top 5,000 on PyPI
pip-requirements-parserParses pip requirements files with the same…
permissive · top 1,000 on PyPI
requirements-detectorScans a Python project to detect and list its…
permissive · top 15,000 on PyPI
requirementslibParses, builds, and converts between Pipfile…
permissive · top 15,000 on PyPI
plettePlette provides structured parsers and…
permissive · top 15,000 on PyPI
manifestoo-coreParses and reasons about Odoo addon manifests,…
permissive · top 15,000 on PyPI
pipfileProvides a design specification and parser for…
permissive · top 15,000 on PyPI
pip-upgraderAn interactive CLI tool that upgrades Python…
permissive · top 15,000 on PyPI
codemod-toxParses and modifies tox.ini configuration…
permissive · top 15,000 on PyPI
docker-image-pyParses Docker image reference strings into…
permissive · top 5,000 on PyPI