python-conventions

Installation
SKILL.md

Python conventions

Modern Python (3.11+) defaults.

Types

  • Type hints required everywhere
  • from __future__ import annotations at top
  • Pydantic v2 for I/O, TypedDict for internal, Literal for string enums

Stdlib

  • pathlib.Path over os.path
  • dataclasses over manual init
  • subprocess.run over os.system
  • f-strings except logging
  • match for tagged unions

Async

Installs
1
GitHub Stars
2
First Seen
8 days ago