Skip to content

Wireme guide

One page per concept, in reading order. Every page ends with a runnable example from examples/.

  1. Getting started - install, wire a function, reuse a dependency
  2. Wiring classes - constructor and method injection
  3. The dependency graph - nesting, caching, singletons
  4. Resources - async factories and generator cleanup
  5. Testing - overrides and explicit values
  6. Side-effect dependencies - guards and auditing with requires
  7. Validation control - cast flags and errors
  8. Protocol dependencies - depend on interfaces
  9. FastAPI integration - FromWeb, resources, web overrides
  10. Building integrations - Wireme as your project's DI primitive

Architecture decisions live in docs/adr.