A CLI which aims to provide an npm-like experience when installing Python packages.
MIT License
.. image:: https://github.com/eight04/vpip/actions/workflows/build.yml/badge.svg :target: https://github.com/eight04/vpip/actions/workflows/build.yml :alt: Build status
.. image:: https://readthedocs.org/projects/vpip/badge/?version=latest :target: https://vpip.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
.. image:: https://img.shields.io/pypi/v/vpip.svg :alt: PyPI :target: https://pypi.org/project/vpip
A CLI which aims to provide an npm
-like experience when installing Python packages.
Install packages to isolated global virtual environments.
Install packages to a local virtual environment.
requirements.txt
(development) and setup.cfg
/pyproject.toml
(production).When removing a package, also remove its sub-dependencies.
Easily run commands in the local virtual environment.
Generate a lock file (requirements-lock.txt
).
vpip
is hosted on pypi::
pip install vpip
After installing vpip as a CLI, you can use it to install other packages (globally or locally).
Install:
vpip install
- Create/activate a local venv and install all dependencies.vpip install configupdater
- Create/activate a local venv, install configupdater
, and add to production dependency.vpip install -g youtube-dl
- Create a venv under ~/.vpip
, install youtube-dl
, and link the executable (youtube-dl.exe
) to the script folder.vpip install -g https://github.com/eight04/ComicCrawler/archive/refs/heads/master.zip
- You can also install global CLI from a URL.Uninstall:
vpip uninstall pylint
- Activate the local venv, uninstall pylint
, and remove pylint
from both dev/prod dependency.Update:
vpip update pylint
- Upgrade pylint to the compatible version.vpip update pylint --latest
- Upgrade pylint to the latest release.Execute command:
vpip run python
- Launch python REPL in the local venv.vpip run pylint my_proj
- Run pylint installed in the local venv.List dependencies:
vpip list
- List development/production dependencies.vpip list --outdated
- List development/production dependencies that are outdated.vpip list -g
- List globally installed packages.vpip
is a cross-platform CLI. Please report any compatibility issues.
https://vpip.readthedocs.io/en/latest/index.html
pipm <https://github.com/jnoortheen/pipm>
_ - which doesn't use virtualenv.pipx <https://github.com/pypa/pipx>
_ - like vpip install -g
.pdm <https://github.com/pdm-project/pdm>
_ - a more feature-rich depdenency manager.0.9.2 (Feb 4, 2024)
list --outdated
.0.9.1 (Oct 22, 2023)
0.9.0 (Oct 22, 2023)
pyproject.toml
.link
command now accepts an optional package name.install -g
error when using a specifier.pip_api.list_
.0.8.0 (Apr 23, 2022)
pip install
when installing/updating packages.vpip update
won't install packages whose env marker evaluates to false.0.7.0 (Feb 9, 2022)
wheel
is also pre-installed in venv like pip
.0.6.0 (Jan 25, 2022)
vpip link
.pip_api.install
now accepts multiple packages.vpip update
now updates sub-dependencies.0.5.0 (Jan 5, 2022)
setup.cfg
or requirements.txt
.0.4.3 (Jan 31, 2020)
0.4.2 (Nov 9, 2019)
setup.py
automatically if needed.0.4.1 (Nov 2, 2019)
0.4.0 (Nov 1, 2019)
update_venv
command.pip_api.show
and pip_api.uninstall
now accept multiple packages.0.3.0 (Oct 31, 2019)
0.2.3 (Feb 10, 2019)
pypi.is_compatible
treat 0.1.0
and 0.2.0
as compatible.0.2.2 (Feb 2, 2019)
link
command.0.2.1 (Nov 16, 2018)
0.2.0 (Nov 16, 2018)
0.1.0 (Nov 13, 2018)