Skip to main content

Tool for installing and managing commands installed from PyPI

Project description

pipcmd is a tool for installing and managing commands installed from PyPI.

Installing pipcmd

Installing pipcmd is as simple as installing the pipcmd script (./bin/pipcmd) in this source repository into a location in your PATH. You will also need to set PATH to include the ${HOME}/.pipcmd/bin directory, which is where pipcmd will install commands.

Using pipcmd

If the command you want to install is provided with a project with the same name as the command, simply ask pipcmd to install the project:

$ pipcmd install tox
Installing tox from tox[latest] using python
New python executable in /Users/wsanchez/.pipcmd/env/tox/latest/bin/python
...
Successfully installed pluggy-0.6.0 py-1.5.2 six-1.11.0 tox-2.9.1 virtualenv-15.1.0

If a project provides a command with a different name, or mutiple commands, add the names of the commands to install:

$ pipcmd install twisted trial twist
Installing trial twist from twisted[latest] using python
New python executable in /Users/wsanchez/.pipcmd/env/twisted/latest/bin/python
...
Successfully installed Automat-0.6.0 attrs-17.4.0 constantly-15.1.0 hyperlink-17.3.1 incremental-17.5.0 six-1.11.0 twisted-17.9.0 zope.interface-4.4.3

Note that pipcmd does not attempt to install every command provided by a project. This avoids adding unwanted commands to your path, and in cases where a command name is used by multiple projects, it lets you be specific about which to install.

pipcmd uses the python command found on the command line by default. A different interpreter can be specified:

$ pipcmd install -p python3 mypy
Installing mypy from mypy[latest] using python3
Using base prefix '/Library/Frameworks/Python.framework/Versions/3.5'
New python executable in /Users/wsanchez/.pipcmd/env/mypy/latest/bin/python3
...
Successfully installed mypy-0.560 psutil-5.4.3 typed-ast-1.1.0

pipcmd uses latest available version of a project by default. A project can be pinned to a specific version:

$ pipcmd install -v 15 twisted twistd
Installing twistd from twisted[15] using python
New python executable in /Users/wsanchez/.pipcmd/env/twisted/15/bin/python
...
Successfully installed twisted-15.0.0 zope.interface-4.4.3

Note that we’ve installed trial and twist from the latest version of Twisted, but twistd from Twisted 15. That may or may not be a good idea in this case, but pipcmd doesn’t judge.

To list the installed commands:

$ pipcmd list
mypy from mypy[latest] using CPython 3.5.3
tox from tox[latest] using CPython 2.7.10
trial from twisted[latest] using CPython 2.7.10
twist from twisted[latest] using CPython 2.7.10
twistd from twisted[15] using CPython 2.7.10

To remove commands:

$ pipcmd remove twist twistd
Removing: twist from twisted[latest] using CPython 2.7.10
Removing: twistd from twisted[15] using CPython 2.7.10

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

pipcmd-0.1.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file pipcmd-0.1.tar.gz.

File metadata

  • Download URL: pipcmd-0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pipcmd-0.1.tar.gz
Algorithm Hash digest
SHA256 c80855288717540fa2a259fea936c6e2d9594d45130393304bd669d02f61c3d4
MD5 ee44dcaf40d7998427b5bc6f6ed0b91d
BLAKE2b-256 b3767f408074d9afb29fc0789ef09579c4d413459b0ae69c1c96b8580b552192

See more details on using hashes here.

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