You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kimchikingdom
fbcdc4ad28
fix: support mounting StaticFiles to APIRouter, raise error for other apps
- Override APIRouter.mount() to only allow StaticFiles; raise FastAPIError
for any other ASGI app with a clear message directing users to mount
sub-applications on the root FastAPI instance instead
- Add APIRouter._mount() as internal bypass used by include_router()
and FastAPI.mount()
- Override FastAPI.mount() to call self.router._mount() directly,
bypassing the StaticFiles-only restriction on APIRouter
- Propagate StaticFiles mounts in include_router() via _mount()
Fixes #10180
5 months ago
..
_compat
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
dependencies
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
middleware
📝 Use `WSGIMiddleware` from `a2wsgi` instead of deprecated `fastapi.middleware.wsgi.WSGIMiddleware` (#14756)
5 months ago
openapi
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
security
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
__init__.py
🔖 Release version 0.129.0
5 months ago
__main__.py
♻️ Add support for `pip install "fastapi[standard]"` with standard dependencies and `python -m fastapi` (#11935)
2 years ago
applications.py
fix: support mounting StaticFiles to APIRouter, raise error for other apps
5 months ago
background.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
cli.py
♻️ Add support for `pip install "fastapi[standard]"` with standard dependencies and `python -m fastapi` (#11935)
2 years ago
concurrency.py
♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564)
7 months ago
datastructures.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
encoders.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
exception_handlers.py
⬆️ Upgrade Starlette supported version range to >=0.40.0,<0.49.0 (#14077)
10 months ago
exceptions.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
logger.py
🔊 Refactor logging (#781)
7 years ago
param_functions.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
params.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
py.typed
✨ add py.typed to ship typing information (#209)
7 years ago
requests.py
⬆ Require Pydantic > 1.0 (#1862)
6 years ago
responses.py
✨ Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392)
3 years ago
routing.py
fix: support mounting StaticFiles to APIRouter, raise error for other apps
5 months ago
staticfiles.py
✨ Improve type annotations, add support for mypy --strict, internally and for external packages (#2547)
6 years ago
templating.py
✨ Improve type annotations, add support for mypy --strict, internally and for external packages (#2547)
6 years ago
testclient.py
✨ Improve type annotations, add support for mypy --strict, internally and for external packages (#2547)
6 years ago
types.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
utils.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
websockets.py
✨ Export `WebSocketState` in `fastapi.websockets` (#4376)
4 years ago