pi
venv · pipenv · poetry · conda
🧪 Working in Progress
npm i -g @zhengbangbo/pi
pi - install
pi
# python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
# pipenv install
# poetry install
pi rich
# pip install rich
# pipenv install rich
# poetry add rich
pru - run
pru dev
# pipenv run dev
# poetry run dev
psh - enter virtual environment
psh
# pipenv shell
# pipenv shell
pun - uninstall
pun
# pipenv uninsatll
# poetry remove
pu - update
pu
# pipenv update
# poetry update
pci - clean install
pci
# pipenv clean
pa - agent alias
pa
# pipenv
# poetry
How?
pi assumes that you work with lockfiles (and you should)
Before it runs, it will detect your requirement.txt
/ Pipfile.lock
/ poetry.lock
to know current package manager and runs the corresponding commands.
Todo
- detect agent
- venv
- pipenv
- poetry
- conda
- cover main commands
- install pipenv / poetry / conda script
Credit
This project is inspired by Anthony Fu's antfu/ni project and has many references.
License
MIT License © 2022 Bang-Bo Zheng