Tiny tool to install PyPi packages with pip
and update requirements.txt
.
If you're lost, you are probably looking for Poetry, pipenv, or PDM.
git clone https://github.com/aphilas/pips.git
cd pips
go install
pips --help
cd /path/to/project
python -m venv venv
source venv/bin/activate
pips install starlette[full]
cat requirements.txt
# starlette[full]==3.6.2
pips uninstall starlette
cat requirements.txt
#
I don't (yet) need Poetry. I had a bash function to do this that was getting unwieldy.
- pips only parses and saves requirements specifiers with the
==
version specifier - pips preserves the user-supplied extras name
- pips normalizes the package name