I find these especially useful in containers with Python but not much else.
python -c 'from urllib.request import urlretrieve; urlretrieve("https://bootstrap.pypa.io/get-pip.py", filename="target/path/get-pip.py")'
Multi-line with indentation:
echo '[{"a":"b", "c":"d"}]' | python -m json.tool [--compact]
python -m zipfile -e path/to/file.zip target/path
python -m http.server [--directory PATH] [--bind address] [PORT]
- The default port is 8000.