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.
sebastianbreguel
2c580247f6
⚡ Deduplicate get_flat_dependant calls in OpenAPI schema generation
get_openapi_path called get_flat_dependant on the same route 3 times:
once directly, once inside _get_openapi_operation_parameters, and once
inside get_flat_params. All three computed the identical result.
Hoist the computation before the method loop and pass the result to
the internal consumers. This eliminates 2 redundant dependency-tree
traversals per route during schema generation.
Benchmark (10-200 routes, 3 deps each, Python 3.11):
| Routes | Speed Δ | RAM Δ |
|--------|---------|-------|
| 10 | −11 % | ~0 % |
| 50 | −6 % | 0 % |
| 100 | −7 % | 0 % |
| 200 | −10 % | 0 % |
1 month ago
..
.agents/skills/ fastapi
📝 Update Skill, optimize context, trim and refactor into references (#15031)
4 months ago
_compat
⬆ Bump ty from 0.0.21 to 0.0.34 (#15443)
2 months ago
dependencies
♻️ Do not accept underscore headers when using `convert_underscores=True` (the default) (#15589)
1 month ago
middleware
📝 Use `WSGIMiddleware` from `a2wsgi` instead of deprecated `fastapi.middleware.wsgi.WSGIMiddleware` (#14756)
5 months ago
openapi
⚡ Deduplicate get_flat_dependant calls in OpenAPI schema generation
1 month ago
security
✏️ Fix typo for `client_secret` in OAuth2 form docstrings (#14946)
3 months ago
__init__.py
🔖 Release version 0.136.3
1 month ago
__main__.py
♻️ Add support for `pip install "fastapi[standard]"` with standard dependencies and `python -m fastapi` (#11935)
2 years ago
applications.py
⬆ Bump ty from 0.0.21 to 0.0.34 (#15443)
2 months ago
background.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
cli.py
⬆ Bump ty from 0.0.21 to 0.0.34 (#15443)
2 months ago
concurrency.py
♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564)
6 months ago
datastructures.py
👷 Add `ty` to precommit (#15091)
4 months ago
encoders.py
⬆ Bump ty from 0.0.21 to 0.0.34 (#15443)
2 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
👷 Add `ty` to precommit (#15091)
4 months ago
params.py
⬆ Bump ty from 0.0.21 to 0.0.34 (#15443)
2 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
⬆ Bump ty from 0.0.21 to 0.0.34 (#15443)
2 months ago
routing.py
⬆ Bump ty from 0.0.21 to 0.0.34 (#15443)
2 months ago
sse.py
♻️ Validate Server Sent Event fields to avoid applications from sending broken data (#15588)
1 month 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