--- id: requirementslib version: "3.0.0" license: MIT license_treatment: permissive maintenance: abandoned --- # requirementslib — A tool for converting between pip-style and pipfile requirements. License: permissive · Maintenance: abandoned · Downloads: 83.6K/mo ## 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 above — verify before relying. Parses, builds, and converts between Pipfile and requirements.txt formats, and resolves dependencies of editable packages. 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 pip install requirementslib uv add requirementslib poetry add requirementslib ## Installing requirementslib 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. 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()) Requires Python >=3.7; editable package dependency resolution via run_requires() may require setuptools and build tools on the system. 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_current - Install friction: low - Maintenance: abandoned - Downloads: 83.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags pipfile requirements.txt conversion, dependency parsing pip pipenv, lockfile management, editable package dependencies, requirement format conversion, pipfile loader, requirements resolver, dependency-management, pipfile, abandoned [View on SkillFed](https://skillfed.io/packages/requirementslib) · [View on PyPI](https://pypi.org/project/requirementslib/)