Python
Build Python around pure transformations, immutable domain values, explicit capabilities, and typed Results with returns. Covers modules, types, state, composition, documentation, and behavioral tests.
Comments
Document Python caller-facing constraints, typed failure variants, and resource effects.Conditionals
Use early Python guards and explicit variant handling without exception-driven branching.Errors
Return typed Python failures and adapt external exceptions without authored raise or try/except.File structure
Keep Python domain modules independent of presentation, runtime wiring, and resource adapters.Functional Python
Use pure functions, immutable domain values, explicit capabilities, and typed Results. Never author `raise` or `try`/`except` application control flow. Apply this pack to Python source and examples.Functions
Declare focused typed Python operations with named inputs and explicit failure contracts.Naming
Use native Python casing and name concrete domain operations and values.Paradigm
Compose pure Python functions and immutable domain values with explicit effect boundaries.State
Produce new Python domain values and prevent mutation hidden inside frozen records.Testing
Verify typed Python outcomes, real resource boundaries, and the supported returns typing setup.Types
Validate external Python values and model immutable domain alternatives with explicit typed contracts.Utilities
Use returns for typed composition and native Python iterators for straightforward transformations.