@fastbackend/fastapi
FastAPI runtime adapter for the FastBackend framework. Reads IR from .fastbackend/ir.json and dynamically creates routes in memory at startup.
Installation
pip install fastbackend-fastapi
Usage
from fastbackend_fastapi import create_app
app = create_app()
Then run with uvicorn:
uvicorn main:app --reload
Or use the CLI:
fastbackend generate # Generate IR and OpenAPI
fastbackend dev # Start development server
Architecture
Routes exist only in memory (never written to disk). The runtime:
- Loads IR from
.fastbackend/ir.json - Dynamically creates CRUD endpoints for each entity
- Dynamically creates relationship endpoints
- Registers custom endpoints from
app/custom/ - Supports endpoint overrides via
@fastbackend.override()markers
Components
Runtime- Orchestrates initializationCRUDEngine- Dynamic CRUD route creationRelationshipEngine- Dynamic relationship routesValidationEngine- Dynamic Pydantic modelsQueryEngine- Pagination, filtering, sorting, search
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastbackend_fastapi-0.1.0.tar.gz
(14.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastbackend_fastapi-0.1.0.tar.gz.
File metadata
- Download URL: fastbackend_fastapi-0.1.0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9626a6734e62cdd539df5d96d197c7b8046017addb1bed5352d7d506c277a696
|
|
| MD5 |
171955ff35d383f62803156ee4492026
|
|
| BLAKE2b-256 |
cba98ffae80c278620dbf378e5c10692c1e74ce0f675f5789aa63285e7ac1b35
|
File details
Details for the file fastbackend_fastapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fastbackend_fastapi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd5bbf7107db30550ad7a69a935057a14f741ef8623f1910c877435cd01d5eb9
|
|
| MD5 |
ad6f93c728d95359d7be47b68f3250c7
|
|
| BLAKE2b-256 |
feecbab44020b72500292791010a3cbef6eac8d46040df247d662d1d55e7a814
|