Skip to content

ls -lt posts/

geekBlog

Writing on systems, tooling and the occasional yak-shave.

Click: Kommandozeilen-Tools mit Decorators bauen

Only available in German.

Click baut CLIs aus Decorators: Optionen, Argumente, Unterbefehle, Prompts, Fehlerbehandlung und Tests mit CliRunner – der Baukasten, auf dem auch Typer aufsetzt.

cli python

pytest von Null

Only available in German.

Automatische Tests statt Durchklicken: pytest finden, schreiben und ausführen – mit assert, Fixtures, Parametrisierung, tmp_path, monkeypatch und pytest.raises.

python testing

uv: pip und venv in schnell

Only available in German.

uv bündelt Paketinstallation, virtuelle Umgebungen, Projektverwaltung, Python-Versionen und isolierte Tools – schnell, reproduzierbar und mit modernen Workflows für pyproject.toml und uv.lock.

python tooling

Debuggen mit breakpoint() und pdb

Only available in German.

Statt überall print zu streuen: Mit breakpoint() und pdb hältst Du Python-Code gezielt an, inspizierst Variablen und gehst Schritt für Schritt durch den Ablauf.

python tooling