Inspect object attributes
List public attributes of any Python object
python3 -c "import json; print([x for x in dir(json) if not x.startswith('_')])"
- tool
- python15 commands
More python commands
-
python3 -m venv .venv && source .venv/bin/activateCreate and activate an isolated Python environment
-
pip install -r requirements.txt --no-cache-dirInstall dependencies without using pip cache
-
pip freeze > requirements.txtSave exact versions of all installed packages
-
pip list --outdated --format=columnsList packages with newer versions available
-
python3 -m http.server 8080Serve current directory over HTTP on port 8080