Skip to main content

A wrapper for pip to save packages in requirements files.

Project description

https://circleci.com/gh/danielzk/pipw/tree/master.svg?style=shield https://img.shields.io/pypi/v/pipw.svg https://img.shields.io/pypi/pyversions/pipw.svg https://img.shields.io/codecov/c/github/danielzk/pipw/master.svg

A wrapper for pip to save packages in requirements files similar to npm.

Installing

$ pip install pipw

You can also pass an option to replace the pip command:

$ pip install pipw --install-option="--override-pip"

If you want to recover the pip command, you just have to reinstall pip. For example:

$ pip uninstall pip
$ easy_install pip

Usage

TODO: add envs

pipw (install|uninstall) [-e] <package>... [options]

Options:

-s, --save           Save packages to the requirements file. This is default
                     unless --no-save. Packages are saved in
                     requirements.txt unless a custom configuration is used.
-n, --no-save        Prevent save packages to the requirements file.
-c, --config <path>  Pass a custom config file. By default it looks for a
                     .pipwrc file in the directory where the command is
                     executed.
--help               Show this message and exit.

All pip commands and options are still available.

Config file

You can create a .pipwrc file to use a custom configuration, or pass a custom file with the --config option.

Example of a config file:

requirements: requirements.txt
specifier: ~=

Tests

Tests are in tests/. To run the tests use one of these commands:

$ make tests
$ make wip-tests
$ make review-tests

You can also pass the environment. For example:

$ make tests env=py35

Authors

  • Daniel Ramos

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

pipw-0.1.9.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

pipw-0.1.9-py2.py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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