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.
Tailored Evaluation
Select your profile to view customized proof points and next steps:
"Can I build a real, high-performance API quickly with the public facade?"
Runnable quickstart, multi-protocol generation code, clean decorator signatures.
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.
Single-Source Protocol Projector
Toggle an operation spec to inspect how Tigrbl auto-projects it across protocols and plans the kernel execution tree.
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")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.
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.
tigrbl.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:
Facade Declarations
Developers write simple declarative code using standard TigrblRouter and table schemas, remaining focused on clean Python logic.
Intent Compiling
Tigrbl core maps all decorators, payload specifications, and tables into intermediate operational structures.
Dispatch Generation
The ASGI kernel generates explicit, readable request trees and logs dispatch sequences ahead of server startup.
Transport Dispatch
At runtime, the optimized execution package dispatches requests, streams, and socket signals into the planned tree.
Multi-Protocol Capabilities
See how the central operation specifications map across standard HTTP and ASGI transport layers:
| Capability | REST (HTTP) | JSON-RPC | SSE (Streams) | WebSocket | WebTransport |
|---|---|---|---|---|---|
| Request Validation | Pydantic-like automatic headers/JSON validation | Strict RPC-params mapping & error codes | N/A | Message payload structure checks | Inherent stream packet parsing |
| Contract Autogeneration | Full OpenAPI 3.1 specifications & Interactive Swagger | OpenRPC documentation schemas | SSE stream channel specs | AsyncAPI message templates | WebTransport session protocols |
| Hook Integrations | HTTP route middleware & post-serialize filters | Method pre-auth handlers & error wrappers | Connection startup/termination logs | Frame receive/send lifecycle traps | Stream setup/shutdown events |
| Diagnostic Reports | Route-by-route execution logs & latencies | Procedure failure diagnostic mapping | Heartbeat check logs & active connection counts | Active channel and socket status dashboards | Congestion window diagnostics |
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.