Litestar Dependency Injection

Apply Litestar dependency injection with Provide, Dependency markers, layered scopes, overrides, generator-based cleanup, per-request caching, and nested providers. Use when wiring services, settings, database sessions, request-derived resources, or test doubles into Litestar handlers, controllers, routers, and apps. Do not use when plain local function parameters or a small helper are sufficient.

alti3 c53ae9f 4 files · 18.1 KB Updated

File contents

alti3/litestar-skills/tree/main/plugins/litestar/skills/litestar-dependency-injection commit c53ae9f3e8

Frequently asked questions

npx skillmds@latest add alti3/litestar-dependency-injection