Fastapi
Articles about fastapi
Category articles "Fastapi"
Study all materials on this topic
Middleware and CORS in FastAPI
Allows browser clients to make requests to an API from a different domain.
HTTPException in FastAPI
Охватываемые темы: Basic Usage, Status Codes, Error Details, Custom Headers.
Dependency Injection in FastAPI
Depends — FastAPI's dependency injection system for reusing code across endpoints.
Testing FastAPI with pytest
Охватываемые темы: Installation, TestClient (synchronous), Test database, Tests with fixtures.
Lifespan Events in FastAPI
Lifespan — manage application startup and shutdown (DB initialization, ML models, connection pools).
Background Tasks in FastAPI
BackgroundTasks — execute tasks after the response has been sent to the client.
FastAPI: Basics
FastAPI is a modern Python framework for building APIs. Automatic documentation, type hints, high performance.
Alembic: Database Migrations
Alembic is a migration management tool for SQLAlchemy/SQLModel.
SQLModel CRUD in FastAPI
SQLModel combines SQLAlchemy and Pydantic — a single model for both the database and the API.
OAuth2 Bearer in FastAPI
OAuth2PasswordBearer is FastAPI's Bearer token authentication scheme.
Swagger Documentation in FastAPI
FastAPI automatically generates OpenAPI documentation from your code.
Deploying FastAPI with Docker
Railway will also automatically detect a Dockerfile if one is present.
Other categories
Study related topics
Want more materials?
Subscribe to updates and be the first to know about new articles!