fastapi/docs
Sebastián Ramírez 3f9f4a0f8f
Add dependencies with yield (used as context managers) (#595)
*  Add development/testing dependencies for Python 3.6

*  Add concurrency submodule with contextmanager_in_threadpool

*  Add AsyncExitStack to ASGI scope in FastAPI app call

*  Use async stack for contextmanager-able dependencies

including running in threadpool sync dependencies

*  Add tests for contextmanager dependencies

including internal raise checks when exceptions should be handled and when not

*  Add test for fake asynccontextmanager raiser

* 🐛 Fix mypy errors and coverage

* 🔇 Remove development logs and prints

*  Add tests for sub-contextmanagers, background tasks, and sync functions

* 🐛 Fix mypy errors for Python 3.7

* 💬 Fix error texts for clarity

* 📝 Add docs for dependencies with yield

*  Update SQL with SQLAlchemy tutorial to use dependencies with yield

and add an alternative with a middleware (from the old tutorial)

*  Update SQL tests to remove DB file during the same tests

*  Add tests for example with middleware

as a copy from the tests with dependencies with yield, removing the DB in the tests

* ✏️ Fix typos with suggestions from code review

Co-Authored-By: dmontagu <35119617+dmontagu@users.noreply.github.com>
2019-10-09 13:01:58 -05:00
..
img Refactor param extraction using Pydantic Field (#278) 2019-05-30 17:40:43 +04:00
src Add dependencies with yield (used as context managers) (#595) 2019-10-09 13:01:58 -05:00
tutorial Add dependencies with yield (used as context managers) (#595) 2019-10-09 13:01:58 -05:00
alternatives.md Add support for Response parameters to set headers, cookies, and status codes (#294) 2019-06-06 14:29:40 +04:00
async.md Clarification about possible performance hit (#64) 2019-03-04 20:04:16 +04:00
benchmarks.md 📝 Use same link in benchmarks as in index 2019-04-12 22:56:09 +04:00
contributing.md 📝 Update Uvicorn docs with new --reload option (#74) 2019-03-09 22:10:25 +04:00
deployment.md 📝 Fix plural-s without apostrophe in docs (#411) 2019-08-07 14:01:31 -05:00
external-links.md 📝 Add recent articles and opinions (#490) 2019-08-30 20:35:34 -05:00
features.md 📝 Fix small typo in docs for features (#380) 2019-07-12 18:28:07 -05:00
help-fastapi.md 📝 Update Docs: Help FastAPI (#339) 2019-06-27 21:32:27 +02:00
history-design-future.md 📝 Add History, Design and Future to docs 2019-03-02 19:54:15 +04:00
index.md 📝 Add recent articles and opinions (#490) 2019-08-30 20:35:34 -05:00
project-generation.md Update SQL with dependency and intro project generator (#52) 2019-02-24 01:04:44 +04:00
python-types.md 🔀 Merge PR #72 2019-03-21 18:46:02 +04:00
release-notes.md 📝 Update release notes 2019-10-09 12:48:01 -05:00