The class-based system for building Application Program Interfaces. Clean, intuitive, and powerful routing for modern Python APIs.
from jec import Route
from jec.decorators import log, speed, version
class UsersRoute(Route):
@log
@speed
@version(">=1.0.0")
async def get(self):
# Automatically maps to GET /users
return {"users": [...]}Everything you need to build production-ready APIs, out of the box.
Organize your endpoints with clean, intuitive class structures. Each HTTP method maps automatically.
Add logging, performance monitoring, and version checks with simple decorators.
Built-in API versioning with semantic version constraints for safe evolution.
Real-time debugging console to monitor requests, logs, and performance metrics.
Built on top of FastAPI for async support, automatic OpenAPI docs, and validation.
Convention over configuration. Get started in seconds with sensible defaults.
Install JEC and create your first API endpoint with just a few lines of code.
$ pip install jec-api
$ python app.py
INFO: Uvicorn running on http://127.0.0.1:8000
INFO: Dev console at /__dev__