Linux Terminal Glossary
›
Python & pip
Python & pip
292 commands
python3 script.py
python3 -c 'print(1+1)'
python3 -m http.server 8000
python3 -m json.tool file.json
python3 -i script.py
pip install requests
pip install requests==2.28.0
pip install -r requirements.txt
pip uninstall requests
pip list
pip list --outdated
pip freeze
pip freeze > requirements.txt
pip show requests
pip install --upgrade pip
python3 -m venv venv
source venv/bin/activate
deactivate
virtualenv venv
pip install -e .
python3 -m pip install package
conda create -n myenv python=3.11
conda activate myenv
conda install numpy
conda env list
python3 --version
python3 -c 'print("hello")'
python3 -m module_name
python3 -u script.py
python3 -O script.py
python3 -OO script.py
python3 -B script.py
python3 -W ignore script.py
python3 -W error script.py
python3 -X utf8 script.py
python3 -X dev script.py
python3 -X tracemalloc script.py
python3 -m pdb script.py
python3 -m timeit 'x = [i for i in range(100)]'
python3 -m http.server 8080
python3 -m venv .venv
python3 -m py_compile script.py
python3 -m compileall .
python3 -m site
python3 -m zipapp myapp/ -o myapp.pyz
pip install package
pip install 'package==1.2.3'
pip install 'package>=1.0,<2.0'
pip install --upgrade package
pip install --no-deps package
pip install --pre package
pip install --index-url https://pypi.org/simple/ package
pip install --extra-index-url URL package
pip install --find-links /local/dir package
pip install --no-cache-dir package
pip install --user package
pip install --target ./vendor package
pip uninstall package
pip uninstall -y -r requirements.txt
pip list --format=freeze
pip show package
pip check
pip search term
pip download package -d ./wheels
pip wheel package -w ./wheels
pip hash ./wheel.whl
pip config list
pip config set global.index-url URL
pip cache list
pip cache purge
pip debug
source .venv/bin/activate
python3 -m venv --upgrade .venv
python3 -m venv --without-pip .venv
python3 -m venv --copies .venv
python3 -m venv --system-site-packages .venv
virtualenv .venv
virtualenv --python=python3.11 .venv
pyenv install --list
pyenv install 3.12.2
pyenv uninstall 3.11.0
pyenv versions
pyenv version
pyenv global 3.12.2
pyenv local 3.11.0
pyenv shell 3.10.0
pyenv which python
pyenv rehash
pyenv update
pyenv doctor
pyenv exec python script.py
uv --version
uv init myproject
uv add requests
uv add 'django>=4.2'
uv add --dev pytest
uv remove requests
uv sync
uv sync --frozen
uv lock
uv lock --upgrade
uv run python script.py
uv run pytest
uv build
uv publish
uv pip install package
uv pip install -r requirements.txt
uv pip list
uv pip freeze
uv pip compile requirements.in -o requirements.txt
uv pip sync requirements.txt
uv python install 3.12
uv python list
uv python pin 3.12
uv tool install ruff
uv tool run ruff check .
uv tool list
uv tool upgrade ruff
uv tool uninstall ruff
uv cache clean
uv cache dir
uv venv .venv
uv venv --python 3.11 .venv
poetry new myproject
poetry init
poetry install
poetry install --no-root
poetry install --only main
poetry add requests
poetry add 'flask>=3.0'
poetry add --group dev pytest
poetry remove requests
poetry update
poetry update requests
poetry lock
poetry lock --no-update
poetry show
poetry show --tree
poetry show --outdated
poetry run python script.py
poetry shell
poetry build
poetry publish
poetry publish --repository testpypi
poetry env info
poetry env list
poetry env use python3.12
poetry env remove python3.11
poetry config --list
poetry config virtualenvs.in-project true
poetry config pypi-token.pypi TOKEN
poetry check
poetry export -f requirements.txt -o requirements.txt --without-hashes
poetry version patch
poetry version minor
poetry self update
pytest
pytest tests/
pytest tests/test_api.py
pytest tests/test_api.py::TestClass::test_method
pytest -v
pytest -vv
pytest -s
pytest -x
pytest --maxfail=3
pytest -k 'auth'
pytest -k 'not slow'
pytest -m smoke
pytest --lf
pytest --ff
pytest -n auto
pytest --cov=src --cov-report=term-missing
pytest --cov=src --cov-report=html
pytest --tb=short
pytest --tb=no
pytest --timeout=30
pytest --ignore=vendor/
pytest --collect-only
pytest --durations=10
pytest --log-cli-level=DEBUG
pytest -p no:warnings
pytest --cache-clear
pytest --fixtures
pytest --co -q
black .
black src/ tests/
black script.py
black --check .
black --diff .
black --line-length 100 .
black --target-version py311 .
black --quiet .
black --fast .
ruff check .
ruff check --fix .
ruff check --select E,W .
ruff check --ignore E501 .
ruff check --extend-select ALL .
ruff check --watch .
ruff check --output-format=json .
ruff format .
ruff format --check .
ruff format --diff .
ruff rule E501
ruff linter
ruff clean
ruff config
ruff check --statistics .
mypy src/
mypy script.py
mypy --strict .
mypy --ignore-missing-imports .
mypy --disallow-untyped-defs .
mypy --check-untyped-defs .
mypy --python-version 3.11 .
mypy --show-error-codes .
mypy --html-report mypy-report/ .
mypy --install-types
mypy --no-error-summary .
mypy --exclude tests/ .
mypy --cache-fine-grained .
pylint src/
pylint script.py
pylint --disable=C0114 src/
pylint --enable=all src/
pylint --errors-only src/
pylint --output-format=json src/
pylint --generate-rcfile > .pylintrc
pylint --rcfile=.pylintrc src/
pylint --score=no src/
flake8 .
flake8 --max-line-length=100 .
flake8 --ignore=E501,W503 .
flake8 --select=E,W .
flake8 --count .
flake8 --statistics .
flake8 --show-source .
flake8 --per-file-ignores='tests/*:S101' .
flake8 --generate-default-config
isort .
isort --check-only .
isort --diff .
isort --profile black .
isort --atomic .
isort --skip vendor/ .
isort --force-sort-within-sections .
pipx install ruff
pipx install --python python3.11 tool
pipx upgrade ruff
pipx upgrade-all
pipx uninstall ruff
pipx list
pipx run ruff check .
pipx inject tool extra-package
pipx reinstall-all
pipx ensurepath
twine upload dist/*
twine upload --repository testpypi dist/*
twine upload --skip-existing dist/*
twine check dist/*
twine register dist/package.tar.gz
coverage run -m pytest
coverage run --source=src -m pytest
coverage run --omit='tests/*' -m pytest
coverage report
coverage report --show-missing
coverage report --fail-under=80
coverage html
coverage xml
coverage json
coverage erase
coverage combine
bandit -r src/
bandit -r . -f json -o bandit-report.json
bandit -ll src/
bandit --skip B101 src/
bandit -t B601,B602 src/
pre-commit install
pre-commit run --all-files
pre-commit run black --all-files
pre-commit autoupdate
pre-commit clean
pre-commit gc
pre-commit uninstall
pre-commit sample-config
pre-commit validate-config .pre-commit-config.yaml
pre-commit try-repo https://github.com/org/repo
python3 -m pydoc json
python3 -m pydoc -b
python3 -m pydoc -p 8080
python3 -m pydoc -w json
python3 -m pydoc -k 'compress'
Search all 7,657 commands
instead.