requirementslib
A tool for converting between pip-style and pipfile requirements.
Decision gist · record as of 2026-08-14
Yes, with conditions. The package is stable and has no known vulnerabilities, making it safe to use for one-off conversion or parsing tasks. However, it is abandoned (last update June 2023) with 9 runtime dependencies that may drift out of sync with modern Python tooling. Use it if you need Pipfile/requirements.txt interop in a legacy codebase or one-time script, but avoid it for new projects that expect ongoing maintenance or tight integration with current pip/setuptools versions.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.7; editable package dependency resolution via run_requires() may require setuptools and build tools on the system.
- Low install friction with a pure-Python wheel.
- However, the package is abandoned—last release was 1153 days ago with no commits since 2023-06-18.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) permits commercial and private use with minimal restrictions, requiring only attribution.
last release 2023-06-18 (1153 days) · last repo commit 2023-06-18 · 86 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 83,597 downloads/mo, #14,063 on PyPI
Alternatives
Verify before relying
from requirementslib import Requirement
r = Requirement.from_line('-e git+https://github.com/pypa/pipenv.git@master#egg=pipenv')
print(r.as_pipfile())- Whether the package's 9 dependencies (pydantic, requests, pip, setuptools, etc.) are actively maintained and compatible with current Python versions.
- Whether abandonment affects real-world use cases—e.g., if Pipenv itself has moved away from this library.
- Performance or correctness regressions in dependency resolution since the last release.
What it is and what it does
RequirementsLib is a library for parsing and converting between Pipfile and requirements.txt formats. It provides a unified interface to read, write, and manipulate dependency specifications in both formats, making it useful for tools that need to work with multiple dependency declaration styles. The library can also resolve the dependencies of editable packages by introspecting their setup.py or pyproject.toml metadata.
The package was originally built for Pipenv's format conversion needs. It depends on distlib, pep517, pip, platformdirs, plette, pydantic, requests, setuptools, and tomlkit. It supports Python 3.7 through 3.11 and is marked as Production/Stable, but has not been updated since June 2023 and is no longer actively maintained.
Use it for
- Convert a Pipfile to requirements.txt format for CI/CD pipelines that expect the latter.
- Parse and inspect editable package dependencies without manually reading setup.py files.
- Build a lockfile-based install_requires list for setup.py in a setuptools-based project.
- Programmatically read and modify Pipfile sections (packages, dev-packages, scripts) in Python.
- Extract VCS and path-based requirements from either format for dependency graph analysis.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
The package is stable and has no known vulnerabilities, making it safe to use for one-off conversion or parsing tasks. However, it is abandoned (last update June 2023) with 9 runtime dependencies that may drift out of sync with modern Python tooling. Use it if you need Pipfile/requirements.txt interop in a legacy codebase or one-time script, but avoid it for new projects that expect ongoing maintenance or tight integration with current pip/setuptools versions.
Install
requirementslib on PyPI
Before you install
Low install friction with a pure-Python wheel. However, the package is abandoned—last release was 1153 days ago with no commits since 2023-06-18. It carries 9 runtime dependencies including pydantic, requests, and pip itself, which may introduce transitive maintenance risk.
Requires Python >=3.7; editable package dependency resolution via run_requires() may require setuptools and build tools on the system.
License in practice
MIT license (permissive) permits commercial and private use with minimal restrictions, requiring only attribution.
Quickstart
from requirementslib import Requirement
r = Requirement.from_line('-e git+https://github.com/pypa/pipenv.git@master#egg=pipenv')
print(r.as_pipfile())
Verify before relying
- Whether the package's 9 dependencies (pydantic, requests, pip, setuptools, etc.) are actively maintained and compatible with current Python versions.
- Whether abandonment affects real-world use cases—e.g., if Pipenv itself has moved away from this library.
- Performance or correctness regressions in dependency resolution since the last release.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagesdistlibpep517pipplatformdirsplettepydanticrequestssetuptoolstomlkit |
| Maintenance | Abandoned 1,153 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 83,597 / month, #14,063 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 :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Build ToolsTopic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities |
Evidence: requirementslib-3.0.0-py2.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 › “pipfile requirements.txt conversion”
- requirementslibParses, builds, and converts between Pipfile and requirements.txt…
- pipfileProvides a design specification and parser for Pipfile and…
- dparseParses Python dependency files (requirements.txt, conda.yml, tox.ini,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also hashin · pip-requirements-parser · pipfile · pipenv · oldest-supported-numpy · pip-upgrader · plette · dparse2 · requirements-parser · dep-logic