to-requirements.txt
Automatically add and delete modules to requirements.txt installing them using pip.
Decision gist · record as of 2026-08-14
Yes, if you work in Unix environments and want hands-off requirements.txt synchronization. The low install friction, permissive license, and Production/Stable status make it a reasonable choice for developers tired of manual dependency file updates. However, the aging maintenance (468 days since last release) means you should verify it works reliably with your current Python and pip versions before committing to it in a critical project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Shell integration requires adding aliases to .bashrc, .zshrc, or equivalent rc file to enable sourced mode and virtual environment activation.
- Low friction install with three lightweight runtime dependencies (appdata, click, colored).
- Maintenance status is aging—last release was 468 days ago, though the repository remains active and the package is marked Production/Stable.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
last release 2025-05-03 (468 days) · last repo commit 2025-05-03 · 29 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 214,647 downloads/mo, #9,411 on PyPI
Alternatives
Verify before relying
pip install to-requirements-txt
rex init
# Then use pip normally; requirements.txt updates automatically- Whether the package works reliably on non-Unix systems (classifiers list only Unix support).
- How well automatic sync handles version pinning, pre-release packages, or editable installs.
- Performance impact when managing large dependency trees.
What it is and what it does
to-requirements-txt wraps pip to automatically keep your requirements.txt in sync with installed packages. When you install, upgrade, or uninstall a package via pip, the tool updates requirements.txt without requiring manual intervention. It's designed for developers who want their dependency file to always reflect the current environment state.
The package works by hooking into pip's workflow and is configured per project via a simple init command. It supports customization (e.g., limiting to Git repositories, toggling auto-creation of requirements.txt) and integrates into your shell via aliases for sourced execution, which allows it to manage virtual environment activation. After setup, you use pip as normal—the synchronization happens transparently.
Use it for
- Keep requirements.txt automatically updated when developing in a virtual environment without manual tracking.
- Set up a new project's dependency management in one command (rex init) with automatic venv creation.
- Ensure requirements.txt stays consistent across team members by syncing with every pip operation.
- Reduce merge conflicts in version control by eliminating manual requirements.txt edits.
- Quickly initialize a VirtualEnv-based project with pre-configured dependency tracking.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work in Unix environments and want hands-off requirements.txt synchronization.
The low install friction, permissive license, and Production/Stable status make it a reasonable choice for developers tired of manual dependency file updates. However, the aging maintenance (468 days since last release) means you should verify it works reliably with your current Python and pip versions before committing to it in a critical project.
Install
to-requirements-txt on PyPI
Before you install
Low friction install with three lightweight runtime dependencies (appdata, click, colored). Maintenance status is aging—last release was 468 days ago, though the repository remains active and the package is marked Production/Stable.
Shell integration requires adding aliases to .bashrc, .zshrc, or equivalent rc file to enable sourced mode and virtual environment activation.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install to-requirements-txt
rex init
# Then use pip normally; requirements.txt updates automatically
Verify before relying
- Whether the package works reliably on non-Unix systems (classifiers list only Unix support).
- How well automatic sync handles version pinning, pre-release packages, or editable installs.
- Performance impact when managing large dependency trees.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesappdataclickcolored |
| Maintenance | Aging 468 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 214,647 / month, #9,411 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/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: UnixProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software DevelopmentTopic :: System :: Installation/SetupTopic :: TerminalsTopic :: Utilities |
Evidence: to_requirements_txt-2.0.14-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 › “auto-update requirements.txt”
- to-requirements.txtAutomatically synchronizes your project's requirements.txt with…
- expecttestexpecttest implements inline golden tests where expected outputs are…
- sphinx-last-updated-by-gitA Sphinx extension that automatically extracts and displays the…
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 pipenv · commitizen · pyupgrade · pipreqs · mike · pip-autoremove · pipmaster · requires.io · pip-audit · pip2pi