On this page
  1. expose-api
  2. Role
  3. Install
  4. Quickstart
  5. When to Reach for It
  6. Gotchas & Pitfalls
  7. Pairs With
  8. Metadata

expose-api

Prev: expose-interface | Up: projects | Next: carets
Rel: wispsy, Frameworks, compose-application
Ref: wispsy on GitHub
Tags: #public #wispsy #project #frameworks #tier/core


Role

Turn ordinary typed dataclasses into native ASGI 3 JSON CRUD applications—plus explicit HTTP routing, OpenAPI 3.1.0 generation, resource WebSocket events, and optional backpack-store persistence—with zero runtime dependencies (Python 3.14+).

Install

python -m pip install expose-api==0.2.0
# Optional persistent storage / compiled validation:
python -m pip install "expose-api[backpack]==0.2.0"

Quickstart

from dataclasses import dataclass, field
from uuid import UUID, uuid4
from expose_api import App, MemoryStore

@dataclass
class Note:
    title: str
    content: str = ""
    id: UUID = field(default_factory=uuid4)

app = App(title="Notes API")
notes = app.include(Note, store=MemoryStore(), public=True)

if __name__ == "__main__":
    app.run()

When to Reach for It

Gotchas & Pitfalls

Pairs With


Metadata

type: project-card
slug: expose-api
org: wispsy
repo: wispsy/expose-api
package: expose-api
version: 0.2.0
requires_python: ">=3.14"
layer: frameworks
topic: wispsy-framework
status: active
language: python
source_docs: README.md, docs/

Linked from

Related notes