A Python package for executing pip (Python Package Manager) commands from within code.
Supported pip verion: >=22.0.4
pip-script provides a wrapper for pip commands and their arguments. Internally, pip-script make use of the subprocess package to execute pip. The basic usage is as follows:
pip.command().arg1().arg2().argN().run()import pipscript as pip
# simple call to pip 'list' with the '--include-editable' argument
pip.list().include_editable().run()Please refer to the official pip documentation.
Currently, the following pip commands are wrapped:
- list
- show
- install