现代Python纲要

#Python

TOOLS

multiple version: mise, pyenv

run dev app: pipx

project tool: PDF, Hatch

format: Black, Ruff

linter: flake8

test: pytest, pytest-cov, pytest-randomly

package: pyinstaller

LANG

type hint: mypy, pydantic

format: f-string

data class

breakpoint()

TOML: tomli, tomli-w, tomlib(3.11+)

LIB

argparse

os.listdir()

httpx

subprocess

PROJECT

pyproject.toml

[tool.pip-tools]
# Set generate-hashes for pip-compile
generate-hashes = true

pip-compile (installed by pipx)