Skip to main content

cdi 📦

Smart cd + a fistful of shortcuts so you never type pip install -r requirements.txt again.

Install

pip install cdi
cdi-setup          # injects everything into ~/.bashrc / ~/.zshrc
source ~/.bashrc   # or restart your terminal

cdi — smart cd

cdi my-project              # just cd, nothing extra
cdi my-project -req         # cd + auto-install deps
cdi my-project -venv        # cd + create/activate .venv
cdi my-project -venv -req   # cd + venv + install (the full combo)
cdi my-project -p           # cd + prompt: "install deps? [y/N]"

Standalone shortcuts

Command What it does
req Install deps in current folder (auto-detects file)
venv Create .venv if missing, then activate it
vreq venv + req in one shot
deact Deactivate current virtualenv
pipu <pkg> pip install --upgrade <pkg>
freeze pip freeze > requirements.txt (with confirmation)

Examples

# forgot to -req on the way in? just:
req

# fresh clone, want everything set up:
vreq

# done working, get out of the venv:
deact

# upgrade a package:
pipu requests

# lock your deps:
freeze

What req / cdi -req detects

File Command run
Pipfile pipenv install
pyproject.toml pip install -e .
requirements.txt pip install -r requirements.txt
environment.yml conda env update -f environment.yml

Uninstall

cdi-setup uninstall
pip uninstall cdi

License

MIT

Metadata

Release files for shreq 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shreq 0.1.0
File Size Uploaded
shreq-0.1.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shreq 0.1.0
File Interpreter ABI Platform
shreq-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / shreq-0.1.0.tar.gz

Download URL shreq-0.1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
67a6fccfc453389366fc434c9e1821c5a22ea778ec952c59da90d384157bb5b5
BLAKE2b-256 checksum
How to use checksums
cf7611229ecdeeecdb79c2bfe2db7058ecac38d834958e4a104dce8dfe2aba4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / shreq-0.1.0-py3-none-any.whl

Download URL shreq-0.1.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7920f60a7a2736b9bb9d0e567fe0335ee3dd8deb6be3f7173f4dd115300c066
BLAKE2b-256 checksum
How to use checksums
a0ca3332ceda98cf182c0a337c7d7774e6e40e0b2e6936e086b4949e0c0c6dc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page