Inspect object attributes python
List public attributes of any Python object
python3 -c "import json; print([x for x in dir(json) if not x.startswith('_')])"
more python
all 15 commands →
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
Run module as script
python3 -m http.server 8080