new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

FastAPI · all subjects

editor-support

13 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

FastAPI Extension for VS Code and Cursor

The official FastAPI Extension enhances FastAPI development workflow with path operation discovery, navigation, FastAPI Cloud deployment, and live log streaming. It is available for both VS Code and Cursor, and works in browser-based editors such as vscode.dev and github.dev.

FastAPI Extension installation

The FastAPI Extension can be installed directly from the Extensions panel in VS Code or Cursor by searching for 'FastAPI' and selecting the extension published by FastAPI Labs.

FastAPI application auto-discovery configuration

The extension automatically discovers FastAPI applications by scanning for files that instantiate FastAPI(). If auto-detection doesn't work, you can specify an entrypoint via [tool.fastapi] in pyproject.toml or the fastapi.entryPoint VS Code setting using module notation (e.g., myapp.main:app).

Path Operation Explorer feature

The Path Operation Explorer is a sidebar tree view that displays all path operations in the FastAPI application. Clicking an entry jumps to the route or router definition.

Route Search keyboard shortcut

Route Search allows searching by path, method, or name using Ctrl + Shift + E on Windows/Linux or Cmd + Shift + E on macOS.

CodeLens Navigation feature

CodeLens Navigation provides clickable links above test client calls (e.g., client.get('/items')) that jump to the matching path operation for quick navigation between tests and implementation.

FastAPI Cloud deployment from extension

The extension supports one-click deployment of applications to FastAPI Cloud.

Application log streaming from FastAPI Cloud

The extension provides real-time log streaming from FastAPI Cloud-deployed applications with level filtering and text search capabilities.

FastAPI extension walkthrough access

The extension includes a walkthrough that can be accessed by opening the Command Palette (Ctrl + Shift + P on Windows/Linux or Cmd + Shift + P on macOS), selecting 'Welcome: Open walkthrough...', and choosing 'Get started with FastAPI'.

FastAPI tested with major Python editors for 80% developer coverage

FastAPI was specifically tested with PyCharm, VS Code, and Jedi-based editors, which together cover about 80% of Python developers according to the Python Developer Survey. The design prioritized editor support including autocompletion, type checks, and error checks.

FastAPI uses standard Python type declarations

FastAPI is built on standard Python type declarations with Pydantic. No new syntax needs to be learned; developers write standard modern Python with type annotations.

FastAPI editor autocompletion support

FastAPI is designed for comprehensive autocompletion in editors like Visual Studio Code and PyCharm. Autocompletion works throughout the framework, including for nested JSON keys in request bodies. Developers rarely need to return to documentation.

FastAPI editor support and type checking

FastAPI provides automatic editor support including completion and type checking. When declaring parameters and response models, editors can auto-complete attributes and know their types, reducing debugging time.

Give your agent this brain