Derp

An async Python backend toolkit. One client, one config file.

ORM · Auth · Payments · Storage · KV · Queues · AI · CLI · Studio

Warning

Derp is in alpha. The API is unstable and may change without notice before 1.0.

uv add derp-py
from derp import DerpClient, DerpConfig

config = DerpConfig.load("derp.toml")
derp = DerpClient(config)
await derp.connect()

products = await (
    derp.db.select(Product)
    .where(Product.is_active)
    .order_by(Product.created_at, asc=False)
    .limit(10)
    .execute()
)
ORM & Query Builder

Typed tables, fluent queries, joins, aggregates, transactions, migrations.

ORM
Auth

Email/password, magic links, OAuth, JWTs, organizations. Native or Clerk.

Auth
Payments

Stripe: customers, checkout, webhooks, payment intents, Connect accounts.

Payments
Storage

S3-compatible file uploads, downloads, metadata, bucket management.

Storage
KV Store

Valkey: caching, stampede protection, idempotency, webhook dedup, rate limiting.

KV
Task Queue

Celery or Vercel: enqueue, delay, schedules, status polling.

Queue
AI

OpenAI, Fal, Modal: chat, streaming with Vercel/TanStack adapters.

AI