Skip to main content

An extended pip installer that updates requirements.txt

Project description

pipext

pipext is a utility to enhance Python's package installer pip. With pipext, when you install or uninstall a package, it automatically manages your requirements.txt file by appending, commenting out, or uncommenting package entries as needed.

Features

  • Automatic Requirements Management: On package installation, pipext appends the installed package (with version) to requirements.txt or uncomments it if it's already there.

  • Commenting on Uninstall: On package uninstallation, instead of removing the package from requirements.txt, pipext comments it out, making it easy to keep track of previously used packages.

Installation

To install pipext, run:

pip install pipext

This will download and install the pipext utility from PyPI, allowing you to use it directly from your terminal or command prompt.

Usage

Install a Package

pipext install package_name

This will:

  1. Install the package using pip.
  2. Add the package with its specific version to requirements.txt or uncomment it if it's already present (but commented out).

Uninstall a Package

pipext uninstall package_name

This will:

  1. Uninstall the package using pip.
  2. Comment out the package in requirements.txt.

Why pipext?

Managing a requirements.txt can be tedious. You install and uninstall packages during development, and sometimes it's easy to forget to update requirements.txt accordingly. pipext eases this process by automatically managing your requirements file as you modify your environment.

Contributing

Any kind of contribution is appreciatable! Please open an issue or submit a pull request on my GitHub repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipext-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipext-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file pipext-0.1.1.tar.gz.

File metadata

  • Download URL: pipext-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for pipext-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e53af496ee567b0720d42c7724a773f8cdc05ef64ebd69b6170a8e8e8ab2ea89
MD5 0e4bbac07643225783bad1ac8e0b2539
BLAKE2b-256 5f8dce9ea6c966ca5493d063445720b36b1554125d95382eca97db3ac49dd68d

See more details on using hashes here.

File details

Details for the file pipext-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pipext-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for pipext-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7b2172f46d9d78ca01eacb623ee0ddc0b8b554afc3ede2aeda8f72952c92776
MD5 f0a3b550f3e83afb0ac40819a5588528
BLAKE2b-256 4bdcb1cf8cdbd7d3ef42b81c4fa6798ef88d6260d8bcc49276904501fc3fcc6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page