v0.4.4
Schema-First ASGI Framework for Python

Define your API once. Project everywhere.

Tigrbl projects operations across REST, JSON-RPC, streaming, and WebTransport-aware runtimes with generated documentation and explicit lifecycle hooks.

uv add tigrbl
Latest stable: v0.4.4•Python: >=3.10,<3.15•License: Apache-2.0•Status: Alpha

Tailored Evaluation

Select your profile to view customized proof points and next steps:

Key Question

"Can I build a real, high-performance API quickly with the public facade?"

Verified Proof Required

Runnable quickstart, multi-protocol generation code, clean decorator signatures.

Primary Action

Copy install command or proceed to 'Get started'.

Define once, project everywhere

One Operation Model, Projected across all Channels

Avoid duplicate code. Write Python schemas and endpoints that are compiled into optimized execution trees and projected automatically as REST routes, JSON-RPC procedures, and OpenAPI contracts.

Interactive Tooling

Single-Source Protocol Projector

Toggle an operation spec to inspect how Tigrbl auto-projects it across protocols and plans the kernel execution tree.

1. Author Operation Spec (Python)
from sqlalchemy import Column, String
from tigrbl import RestJsonRpcTable, TigrblApp

class Customer(RestJsonRpcTable):
    __tablename__ = "customers"
    id = Column(String, primary_key=True)
    name = Column(String, nullable=False)

class Product(RestJsonRpcTable):
    __tablename__ = "products"
    id = Column(String, primary_key=True)
    name = Column(String, nullable=False)

class Order(RestJsonRpcTable):
    __tablename__ = "orders"
    id = Column(String, primary_key=True)
    customer_id = Column(String, nullable=False)

class OrderLine(RestJsonRpcTable):
    __tablename__ = "order_lines"
    id = Column(String, primary_key=True)
    order_id = Column(String, nullable=False)

app = TigrblApp(
    engine={"kind": "sqlite", "mode": "memory", "async": False}
)
for table in (Customer, Product, Order, OrderLine):
    app.include_table(table)
app.initialize()
app.mount_jsonrpc(prefix="/rpc")
The developer writes this single contract using stable public tigrbl facade imports.
2. Projected Framework Outputs
Target ASGI URL PathPOST /sales/order
Request Body:
{
  "customer_id": "integer (required)",
  "status": "string (required)"
}

Response (201 Created):
{
  "id": "integer",
  "customer_id": "integer",
  "status": "string"
}

Aligned Contracts

No version drift between runtime behavior, request validators, and client specs. Your code is the absolute Single Source of Truth.

Multi-Protocol Operations

Simultaneously support REST path bindings and JSON-RPC method structures from the same underlying python controller class.

Explicit Lifecycle Runtime

Tigrbl builds pre-boot compiled dispatch logs. Inspect hook priorities, authentication blocks, and routers before standard server deployment.

Declarative Engines

Attach PostgreSQL connection pooling, memory caching, or rate limits declarations directly into operational layers cleanly.

10-Second Quickstart

A stable application-facing facade.

Tigrbl features a highly robust public interface. You import directly from the main tigrbl package, keeping downstream micro-packages hidden until advanced configurations demand them.

Import app and routers cleanly from tigrbl.
Zero complex boilerplate is required for standard endpoints.
Strict, stable, and tested range compliance (Python 3.10-3.14).
example_api.py
from tigrbl import TigrblApp

app = TigrblApp()

@app.get("/health")
def health() -> dict[str, str]:
    return {"status": "ok"}

Progressive Model

From Code to Execution Plan

Tigrbl operates progressively. Instead of assembling loosely typed routing blocks, Tigrbl processes application design systematically:

01. AUTHOR

Facade Declarations

Developers write simple declarative code using standard TigrblRouter and table schemas, remaining focused on clean Python logic.

Target: tigrbl package
02. DESCRIBE

Intent Compiling

Tigrbl core maps all decorators, payload specifications, and tables into intermediate operational structures.

Target: tigrbl-core, tigrbl-orm
03. PLAN

Dispatch Generation

The ASGI kernel generates explicit, readable request trees and logs dispatch sequences ahead of server startup.

Target: tigrbl-kernel
04. EXECUTE

Transport Dispatch

At runtime, the optimized execution package dispatches requests, streams, and socket signals into the planned tree.

Target: tigrbl-runtime
Protocol Matrices

Multi-Protocol Capabilities

See how the central operation specifications map across standard HTTP and ASGI transport layers:

CapabilityREST (HTTP)JSON-RPCSSE (Streams)WebSocketWebTransport
Request ValidationPydantic-like automatic headers/JSON validationStrict RPC-params mapping & error codesN/AMessage payload structure checksInherent stream packet parsing
Contract AutogenerationFull OpenAPI 3.1 specifications & Interactive SwaggerOpenRPC documentation schemasSSE stream channel specsAsyncAPI message templatesWebTransport session protocols
Hook IntegrationsHTTP route middleware & post-serialize filtersMethod pre-auth handlers & error wrappersConnection startup/termination logsFrame receive/send lifecycle trapsStream setup/shutdown events
Diagnostic ReportsRoute-by-route execution logs & latenciesProcedure failure diagnostic mappingHeartbeat check logs & active connection countsActive channel and socket status dashboardsCongestion window diagnostics
WebTransport-aware routing belongs to high-level framework layers and remains in Alpha development status.
Evaluation Path

Ready to construct aligned Python APIs?

Get started with Tigrbl in under a minute. Define schemas once, compile your execution tree, and deploy secure services across REST, RPC, and Sockets simultaneously.