This design follows FastAPI best practices:
import asyncpg
from contextlib import asynccontextmanager
from typing import Callable
from os import getenv # convert to pydantic_settings
import airThis design follows FastAPI best practices:
import asyncpg
from contextlib import asynccontextmanager
from typing import Callable
from os import getenv # convert to pydantic_settings
import air| from typing import AsyncIterator | |
| import asyncpg | |
| from ..applications import Air | |
| from contextlib import asynccontextmanager | |
| from typing import Callable | |
| from os import getenv | |
| DATABASE_URL = getenv('DATABASE_URL') |
| /* Bonkers CSS Framework - Semantic HTML with style */ | |
| :root { | |
| /* Light mode colors */ | |
| --bg-primary: #fafafa; | |
| --bg-secondary: #ffffff; | |
| --bg-tertiary: #f0f0f5; | |
| --text-primary: #1a1a2e; | |
| --text-secondary: #4a4a68; |
I'm really proud of what we've accomplished with Air. In a few short months we've taken a sketch of an idea and built out a new web framework that is both new and exciting, yet able to plug effortlessly into the FastAPI ecosystem.
Through our own experiences and feedback from users we can say the following is working out quite well:
| # Dependency: air and "fastapi[standard]"" | |
| # | |
| import air | |
| from fastapi import FastAPI | |
| app = air.Air() | |
| api = FastAPI() | |
| @app.page |
.zshrc/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"