Skip to main content

FastAPI runtime adapter for FastBackend framework

Project description

@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:

  1. Loads IR from .fastbackend/ir.json
  2. Dynamically creates CRUD endpoints for each entity
  3. Dynamically creates relationship endpoints
  4. Registers custom endpoints from app/custom/
  5. Supports endpoint overrides via @fastbackend.override() markers

Components

  • Runtime - Orchestrates initialization
  • CRUDEngine - Dynamic CRUD route creation
  • RelationshipEngine - Dynamic relationship routes
  • ValidationEngine - Dynamic Pydantic models
  • QueryEngine - Pagination, filtering, sorting, search

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastbackend_fastapi-0.1.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

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

Hashes for fastbackend_fastapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9626a6734e62cdd539df5d96d197c7b8046017addb1bed5352d7d506c277a696
MD5 171955ff35d383f62803156ee4492026
BLAKE2b-256 cba98ffae80c278620dbf378e5c10692c1e74ce0f675f5789aa63285e7ac1b35

See more details on using hashes here.

File details

Details for the file fastbackend_fastapi-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fastbackend_fastapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd5bbf7107db30550ad7a69a935057a14f741ef8623f1910c877435cd01d5eb9
MD5 ad6f93c728d95359d7be47b68f3250c7
BLAKE2b-256 feecbab44020b72500292791010a3cbef6eac8d46040df247d662d1d55e7a814

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page