Application Configuration

The tinker method provides a unified interface for configuring both application settings and the underlying Uvicorn server.

Developer Tools

Enable the developer console to inspect requests, performance, and logs in real-time.

app.tinker(
    dev=True,           # Enable Dev Console
    dev_path="/__dev__" # Custom path (default: /__dev__)
)

Strict Versioning

Enforce the presence of the X-API-Version header on all versioned endpoints.

app.tinker(strict_versioning=True)

Server Settings

Pass any additional keyword arguments to configure Uvicorn directly.

app.tinker(
    host="0.0.0.0",
    port=8080,
    workers=4,
    loop="uvloop"
)