partial-fastapi.json
FastAPI web framework configuration for pyproject.toml
Validate with Lintel
npx @lintel/lintel check
Type:
object
Properties
entrypoint
string
Import string entrypoint for the FastAPI application, in the format:
importable.module:attribute
For example, for an app like:
from fastapi import FastAPI
app = FastAPI()
in a file at backend/main.py
the config could look like:
[tool.fastapi]
entrypoint = "backend.main:app"