Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 673 Bytes

File metadata and controls

21 lines (17 loc) · 673 Bytes

pyo3-rust-python-patterns

Purpose

Python-side modeling of PyO3 patterns: type mappings, error handling, GIL management, and module str

Architecture

  • patterns/: Core library code — dataclasses, protocols, type-annotated helpers
  • examples/: End-to-end runnable demos
  • benchmarks/: Comparative performance measurements
  • tests/: pytest unit tests (CPU-only, no external deps required)

Conventions

  • Python 3.11+ with full type hints
  • ruff lint (line-length = 120)
  • mypy --strict
  • PEP 257 docstrings
  • pytest for all examples

Key Patterns

See patterns/ for the documented patterns. Run pytest tests/ -q to verify all patterns are correct.