Type check with mypy python
Strict static type checking for a package
mypy --strict --ignore-missing-imports src/
more python
all 15 commands →
Inspect object attributes
python3 -c "import json; print([x for x in dir(json) if not x.startswith('_')])"
Create virtual environment
python3 -m venv .venv && source .venv/bin/activate
Install from requirements
pip install -r requirements.txt --no-cache-dir
Freeze installed packages
pip freeze > requirements.txt
Show outdated packages
pip list --outdated --format=columns