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.
Auth
Email/password, magic links, OAuth, JWTs, organizations. Native or Clerk.
Payments
Stripe: customers, checkout, webhooks, payment intents, Connect accounts.
Storage
S3-compatible file uploads, downloads, metadata, bucket management.
KV Store
Valkey: caching, stampede protection, idempotency, webhook dedup, rate limiting.
Task Queue
Celery or Vercel: enqueue, delay, schedules, status polling.
AI
OpenAI, Fal, Modal: chat, streaming with Vercel/TanStack adapters.