Python-side modeling of PyO3 patterns: type mappings, error handling, GIL management, and module str
patterns/: Core library code — dataclasses, protocols, type-annotated helpersexamples/: End-to-end runnable demosbenchmarks/: Comparative performance measurementstests/: pytest unit tests (CPU-only, no external deps required)
- Python 3.11+ with full type hints
- ruff lint (line-length = 120)
- mypy --strict
- PEP 257 docstrings
- pytest for all examples
See patterns/ for the documented patterns.
Run pytest tests/ -q to verify all patterns are correct.