skillfed

to-requirements.txt

Automatically add and delete modules to requirements.txt installing them using pip.

to-requirements-txt v2.0.14 214.6K downloads/30d#9,411 on PyPI29
Permissive license MIT AGING released

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

Automatically synchronizes your project's requirements.txt with packages you install via pip, keeping dependencies up-to-date without manual editing.

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

pip

pip install to-requirements-txt

uv

uv add to-requirements-txt

poetry

poetry add to-requirements-txt

Installing to-requirements.txt

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.

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

Shell integration requires adding aliases to .bashrc, .zshrc, or equivalent rc file to enable sourced mode and virtual environment activation.

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 — appdata, click, colored
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)

Evidence: to_requirements_txt-2.0.14-py3-none-any.whl

Keywords: pip, requirements.txt, dependency, dependencies, requirements, packages, wrapper, repository

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

Tags

auto-update requirements.txtpip dependency syncautomatic requirements managementrequirements.txt generatorpip wrapper for requirementskeep requirements.txt in syncdependency tracking tool
dependency-managementpip-wrapperrequirements-sync

More Software Development packages