events

Installation
SKILL.md

Events

Use this skill when code must run during application startup/shutdown or when lifecycle orchestration is needed.

Workflow

  1. Register startup hooks for shared resources (DB pools, clients, caches).
  2. Register shutdown hooks for cleanup.
  3. Keep hooks idempotent and failure-aware.
  4. Use app state/dependencies to expose initialized resources.

Pattern

from litestar import Litestar


async def on_startup() -> None:
    pass
Installs
1
GitHub Stars
6
First Seen
Mar 2, 2026
events — alti3/litestar-skills