easypipinstall installs Python packages similarly to NPM in NodeJS. It automatically maintains the `requirements.txt`, `prod-requirements.txt` and `setup.cfg` files. It also easily uninstalls all the dependencies from those files.
Project description
EASY PIP INSTALL
easypipinstall
installs Python packages similarly to NPM in NodeJS. It automatically maintains the requirements.txt
, prod-requirements.txt
and setup.cfg
files. It also easily uninstalls all the dependencies from those files. It uses an opinionated pattern where:
- Only two types of dependencies exist:
prod
anddev
. - All dependencies are listed under
requirements.txt
. - By default, dependencies are listed in both
requirements.txt
andprod-requirements.txt
. - Dependencies are not listed under
prod-requirements.txt
when the-D
option (development mode) is used. - The
setup.cfg
file is updated as follows:- By default, the dependency is listed without its version under the
install_requires
property of the[options]
section. - When the
-D
option is used, the dependency is listed without its version under thedev
property of the[options.extras_require]
section.
- By default, the dependency is listed without its version under the
To install:
pip install easypipinstall
This will add two new CLI utilities: easyi
(install) and easyu
(uninstall).
Examples:
easyi numpy
This installs numpy
(via pip install
) then automatically updates the following files:
setup.cfg
(WARNING: this file must already exists):[options] install_requires = numpy
requirements.txt
andprod-requirements.txt
easyi flake8 black -D
This installs flake8
and black
(via pip install
) and then automatically updates the following files:
setup.cfg
(WARNING: this file must already exist):[options.extras_require] dev = black flake8
requirements.txt
only, as those dependencies are installed for development purposes only.
easyu flake8
This uninstalls flake8
as well as all its dependencies. Those dependencies are uninstalled only if other project dependencies do not use them. The setup.cfg
and requirements.txt
are automatically updated.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for easypipinstall-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f6c4afb47bff76cf8bf7a4cbd3f13213ac3ae464e0470cf12dda7521a86c64c |
|
MD5 | dd20dc7c5067c8f598ba019681125f18 |
|
BLAKE2b-256 | 15cf83308801302b253e9710f3d5b3c830d37eb4634a3eaef0e4ed8860c6bda1 |