What problem does it solve?
Python scripts often become hard to understand and change later due to inconsistent style, missing type hints, unclear execution structure, and non-reproducible dependencies.
Core Features & Use Cases
- Reproducible execution with uv: Use PEP 723 inline metadata for single-file throwaway scripts and
uv init + uv add for real projects.
- Static clarity with type hints: Require type hints on function signatures and prefer modern, precise types (including
Final for constants).
- Consistent readability with PEP 8: Enforce naming conventions, import grouping, formatting limits, and docstring expectations for public APIs.
- Safety guardrails: Use
if __name__ == "__main__": guards and reserve assert for invariants that type systems can’t express.
Quick Start
Ask an AI to rewrite your Python script to follow uv-based reproducible workflows, add complete type hints, and format it to PEP 8 while ensuring it can be run via uv (including the PEP 723 header when appropriate).