├── ch1 ├── asgi │ ├── __pycache__ │ │ └── main.cpython-310.pyc │ └── main.py ├── coroutines.py ├── helloworld │ └── main.py ├── hint.py ├── hintexample.py ├── listing-1-1.txt ├── listing-1-10.txt └── requirements.txt ├── ch10 ├── fastapi-app-deta │ ├── fastapi-app │ │ └── main.py │ ├── main.py │ └── requirements.txt ├── fastapi-render-app-main.zip ├── fastapiapp-docker │ ├── Dockerfile │ └── app │ │ └── main.py └── fastapiapp-gcp │ ├── app.yaml │ ├── main.py │ └── requirements.txt ├── ch2 ├── externally-visible │ └── main.py ├── metadata │ └── main.py ├── numeric validation │ └── main.py ├── optional parameters │ └── main.py ├── order of parameters │ └── main.py ├── parameters │ └── main.py ├── path parameters │ └── main.py ├── query parameters │ └── main.py ├── regex │ └── main.py ├── string validation │ └── main.py └── uvicorn-run │ └── main.py ├── ch3 ├── body parameters │ ├── dataclass-decorator.py │ └── main.py ├── model config │ └── config.py ├── nested models │ └── main.py ├── orm mode │ └── orm-mode.py ├── post operation │ └── main.py ├── pydantic field validation │ └── main.py ├── pydantic fields │ └── main.py ├── pydantic parameter │ └── main.py └── validator decorator │ └── main.py ├── ch4 ├── HTML parameter substitution │ └── main.py ├── HTML response │ └── main.py ├── conditionals │ └── templates │ │ └── employee.html ├── css │ ├── static │ │ └── mystyle.css │ └── templates │ │ └── profile.html ├── dict in context │ ├── main.py │ └── templates │ │ └── employee.html ├── form template │ ├── main.py │ └── templates │ │ └── form.html ├── hello template │ ├── main.py │ └── templates │ │ └── hello.html ├── image │ ├── main.py │ └── templates │ │ └── static-img.html ├── js │ ├── main.py │ ├── static │ │ └── myscript.js │ └── templates │ │ └── static-js.html ├── loops │ ├── main.py │ └── templates │ │ └── profile.html └── template with parameter │ ├── main.py │ └── templates │ └── hello.html ├── ch5 ├── File response │ ├── Wildlife.mp4 │ └── main.py ├── Redirect Response │ └── main.py ├── cookies │ ├── __pycache__ │ │ └── main.cpython-310.pyc │ ├── main.py │ └── templates │ │ ├── form.html │ │ └── form.html.bak ├── headers │ └── main.py ├── reponse model │ ├── __pycache__ │ │ └── main.cpython-310.pyc │ └── main.py └── straming response │ ├── large-file.txt │ └── main.py ├── ch6 ├── PyMongo │ └── main.py ├── aiosqlite │ └── main.py ├── databases_module │ └── main.py ├── db-api │ └── main.py ├── motor │ └── main.py └── sqlalchemy │ └── main.py ├── ch7 ├── APIRouter │ ├── albums │ │ ├── __init__.py │ │ ├── albums.py │ │ └── models.py │ ├── books │ │ ├── __init__.py │ │ ├── books.py │ │ └── models.py │ └── main.py ├── cors │ ├── __pycache__ │ │ └── main.cpython-310.pyc │ └── main.py ├── depends │ ├── apikey │ │ ├── __pycache__ │ │ │ └── main.cpython-310.pyc │ │ └── main.py │ ├── asyncdep │ │ ├── __pycache__ │ │ │ └── main.cpython-310.pyc │ │ └── main.py │ ├── class_inst │ │ ├── __pycache__ │ │ │ └── main.cpython-310.pyc │ │ └── main.py │ ├── depclass │ │ ├── __pycache__ │ │ │ └── main.cpython-310.pyc │ │ └── main.py │ └── dow │ │ ├── __pycache__ │ │ └── main.cpython-310.pyc │ │ └── main.py ├── middleware │ ├── __pycache__ │ │ └── main.cpython-310.pyc │ └── main.py └── subapp │ ├── __pycache__ │ └── main.cpython-310.pyc │ ├── albums │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-310.pyc │ │ ├── albums.cpython-310.pyc │ │ └── models.cpython-310.pyc │ ├── albums.py │ └── models.py │ ├── books │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-310.pyc │ │ ├── books.cpython-310.pyc │ │ └── models.cpython-310.pyc │ ├── books.py │ └── models.py │ └── main.py ├── ch8 ├── fastapi-events │ ├── log.txt │ └── main.py ├── flask-subapp │ └── main.py ├── graphql │ └── main.py ├── multiclient-chat │ ├── main.py │ └── templates │ │ └── socket.html ├── websocket-console │ ├── ws-client.py │ └── ws-server.py ├── websocket-echoserver │ ├── main.py │ └── templates │ │ ├── socket.html │ │ └── ws.js └── ws-number-gen │ ├── main.py │ └── test.html └── ch9 ├── AsyncTest ├── main.py └── test_main.py ├── Basic auth └── main.py ├── Exception handler └── main.py ├── HTTP Exception └── main.py ├── override-dep ├── main.py └── test_main.py ├── test-database ├── main.py └── tests │ ├── __init__.py │ └── test_mydata.py ├── testing ├── main.py └── test_main.py └── websocket-test ├── main.py └── test_main.py /ch1/asgi/__pycache__/main.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch1/asgi/__pycache__/main.cpython-310.pyc -------------------------------------------------------------------------------- /ch1/asgi/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch1/asgi/main.py -------------------------------------------------------------------------------- /ch1/coroutines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch1/coroutines.py -------------------------------------------------------------------------------- /ch1/helloworld/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch1/helloworld/main.py -------------------------------------------------------------------------------- /ch1/hint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch1/hint.py -------------------------------------------------------------------------------- /ch1/hintexample.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch1/hintexample.py -------------------------------------------------------------------------------- /ch1/listing-1-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch1/listing-1-1.txt -------------------------------------------------------------------------------- /ch1/listing-1-10.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch1/listing-1-10.txt -------------------------------------------------------------------------------- /ch1/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch1/requirements.txt -------------------------------------------------------------------------------- /ch10/fastapi-app-deta/fastapi-app/main.py: -------------------------------------------------------------------------------- 1 | def app(event): 2 | return "Hello, world!" -------------------------------------------------------------------------------- /ch10/fastapi-app-deta/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch10/fastapi-app-deta/main.py -------------------------------------------------------------------------------- /ch10/fastapi-app-deta/requirements.txt: -------------------------------------------------------------------------------- 1 | fastapi -------------------------------------------------------------------------------- /ch10/fastapi-render-app-main.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch10/fastapi-render-app-main.zip -------------------------------------------------------------------------------- /ch10/fastapiapp-docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch10/fastapiapp-docker/Dockerfile -------------------------------------------------------------------------------- /ch10/fastapiapp-docker/app/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch10/fastapiapp-docker/app/main.py -------------------------------------------------------------------------------- /ch10/fastapiapp-gcp/app.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch10/fastapiapp-gcp/app.yaml -------------------------------------------------------------------------------- /ch10/fastapiapp-gcp/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch10/fastapiapp-gcp/main.py -------------------------------------------------------------------------------- /ch10/fastapiapp-gcp/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch10/fastapiapp-gcp/requirements.txt -------------------------------------------------------------------------------- /ch2/externally-visible/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch2/externally-visible/main.py -------------------------------------------------------------------------------- /ch2/metadata/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch2/metadata/main.py -------------------------------------------------------------------------------- /ch2/numeric validation/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch2/numeric validation/main.py -------------------------------------------------------------------------------- /ch2/optional parameters/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch2/optional parameters/main.py -------------------------------------------------------------------------------- /ch2/order of parameters/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch2/order of parameters/main.py -------------------------------------------------------------------------------- /ch2/parameters/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch2/parameters/main.py -------------------------------------------------------------------------------- /ch2/path parameters/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch2/path parameters/main.py -------------------------------------------------------------------------------- /ch2/query parameters/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch2/query parameters/main.py -------------------------------------------------------------------------------- /ch2/regex/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch2/regex/main.py -------------------------------------------------------------------------------- /ch2/string validation/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch2/string validation/main.py -------------------------------------------------------------------------------- /ch2/uvicorn-run/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch2/uvicorn-run/main.py -------------------------------------------------------------------------------- /ch3/body parameters/dataclass-decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch3/body parameters/dataclass-decorator.py -------------------------------------------------------------------------------- /ch3/body parameters/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch3/body parameters/main.py -------------------------------------------------------------------------------- /ch3/model config/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch3/model config/config.py -------------------------------------------------------------------------------- /ch3/nested models/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch3/nested models/main.py -------------------------------------------------------------------------------- /ch3/orm mode/orm-mode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch3/orm mode/orm-mode.py -------------------------------------------------------------------------------- /ch3/post operation/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch3/post operation/main.py -------------------------------------------------------------------------------- /ch3/pydantic field validation/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch3/pydantic field validation/main.py -------------------------------------------------------------------------------- /ch3/pydantic fields/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch3/pydantic fields/main.py -------------------------------------------------------------------------------- /ch3/pydantic parameter/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch3/pydantic parameter/main.py -------------------------------------------------------------------------------- /ch3/validator decorator/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch3/validator decorator/main.py -------------------------------------------------------------------------------- /ch4/HTML parameter substitution/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/HTML parameter substitution/main.py -------------------------------------------------------------------------------- /ch4/HTML response/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/HTML response/main.py -------------------------------------------------------------------------------- /ch4/conditionals/templates/employee.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/conditionals/templates/employee.html -------------------------------------------------------------------------------- /ch4/css/static/mystyle.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/css/static/mystyle.css -------------------------------------------------------------------------------- /ch4/css/templates/profile.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/css/templates/profile.html -------------------------------------------------------------------------------- /ch4/dict in context/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/dict in context/main.py -------------------------------------------------------------------------------- /ch4/dict in context/templates/employee.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/dict in context/templates/employee.html -------------------------------------------------------------------------------- /ch4/form template/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/form template/main.py -------------------------------------------------------------------------------- /ch4/form template/templates/form.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/form template/templates/form.html -------------------------------------------------------------------------------- /ch4/hello template/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/hello template/main.py -------------------------------------------------------------------------------- /ch4/hello template/templates/hello.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/hello template/templates/hello.html -------------------------------------------------------------------------------- /ch4/image/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/image/main.py -------------------------------------------------------------------------------- /ch4/image/templates/static-img.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/image/templates/static-img.html -------------------------------------------------------------------------------- /ch4/js/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/js/main.py -------------------------------------------------------------------------------- /ch4/js/static/myscript.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/js/static/myscript.js -------------------------------------------------------------------------------- /ch4/js/templates/static-js.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/js/templates/static-js.html -------------------------------------------------------------------------------- /ch4/loops/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/loops/main.py -------------------------------------------------------------------------------- /ch4/loops/templates/profile.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/loops/templates/profile.html -------------------------------------------------------------------------------- /ch4/template with parameter/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/template with parameter/main.py -------------------------------------------------------------------------------- /ch4/template with parameter/templates/hello.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch4/template with parameter/templates/hello.html -------------------------------------------------------------------------------- /ch5/File response/Wildlife.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch5/File response/Wildlife.mp4 -------------------------------------------------------------------------------- /ch5/File response/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch5/File response/main.py -------------------------------------------------------------------------------- /ch5/Redirect Response/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch5/Redirect Response/main.py -------------------------------------------------------------------------------- /ch5/cookies/__pycache__/main.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch5/cookies/__pycache__/main.cpython-310.pyc -------------------------------------------------------------------------------- /ch5/cookies/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch5/cookies/main.py -------------------------------------------------------------------------------- /ch5/cookies/templates/form.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch5/cookies/templates/form.html -------------------------------------------------------------------------------- /ch5/cookies/templates/form.html.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch5/cookies/templates/form.html.bak -------------------------------------------------------------------------------- /ch5/headers/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch5/headers/main.py -------------------------------------------------------------------------------- /ch5/reponse model/__pycache__/main.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch5/reponse model/__pycache__/main.cpython-310.pyc -------------------------------------------------------------------------------- /ch5/reponse model/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch5/reponse model/main.py -------------------------------------------------------------------------------- /ch5/straming response/large-file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch5/straming response/large-file.txt -------------------------------------------------------------------------------- /ch5/straming response/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch5/straming response/main.py -------------------------------------------------------------------------------- /ch6/PyMongo/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch6/PyMongo/main.py -------------------------------------------------------------------------------- /ch6/aiosqlite/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch6/aiosqlite/main.py -------------------------------------------------------------------------------- /ch6/databases_module/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch6/databases_module/main.py -------------------------------------------------------------------------------- /ch6/db-api/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch6/db-api/main.py -------------------------------------------------------------------------------- /ch6/motor/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch6/motor/main.py -------------------------------------------------------------------------------- /ch6/sqlalchemy/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch6/sqlalchemy/main.py -------------------------------------------------------------------------------- /ch7/APIRouter/albums/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ch7/APIRouter/albums/albums.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/APIRouter/albums/albums.py -------------------------------------------------------------------------------- /ch7/APIRouter/albums/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/APIRouter/albums/models.py -------------------------------------------------------------------------------- /ch7/APIRouter/books/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ch7/APIRouter/books/books.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/APIRouter/books/books.py -------------------------------------------------------------------------------- /ch7/APIRouter/books/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/APIRouter/books/models.py -------------------------------------------------------------------------------- /ch7/APIRouter/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/APIRouter/main.py -------------------------------------------------------------------------------- /ch7/cors/__pycache__/main.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/cors/__pycache__/main.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/cors/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/cors/main.py -------------------------------------------------------------------------------- /ch7/depends/apikey/__pycache__/main.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/depends/apikey/__pycache__/main.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/depends/apikey/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/depends/apikey/main.py -------------------------------------------------------------------------------- /ch7/depends/asyncdep/__pycache__/main.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/depends/asyncdep/__pycache__/main.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/depends/asyncdep/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/depends/asyncdep/main.py -------------------------------------------------------------------------------- /ch7/depends/class_inst/__pycache__/main.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/depends/class_inst/__pycache__/main.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/depends/class_inst/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/depends/class_inst/main.py -------------------------------------------------------------------------------- /ch7/depends/depclass/__pycache__/main.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/depends/depclass/__pycache__/main.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/depends/depclass/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/depends/depclass/main.py -------------------------------------------------------------------------------- /ch7/depends/dow/__pycache__/main.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/depends/dow/__pycache__/main.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/depends/dow/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/depends/dow/main.py -------------------------------------------------------------------------------- /ch7/middleware/__pycache__/main.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/middleware/__pycache__/main.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/middleware/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/middleware/main.py -------------------------------------------------------------------------------- /ch7/subapp/__pycache__/main.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/subapp/__pycache__/main.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/subapp/albums/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ch7/subapp/albums/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/subapp/albums/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/subapp/albums/__pycache__/albums.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/subapp/albums/__pycache__/albums.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/subapp/albums/__pycache__/models.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/subapp/albums/__pycache__/models.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/subapp/albums/albums.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/subapp/albums/albums.py -------------------------------------------------------------------------------- /ch7/subapp/albums/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/subapp/albums/models.py -------------------------------------------------------------------------------- /ch7/subapp/books/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ch7/subapp/books/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/subapp/books/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/subapp/books/__pycache__/books.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/subapp/books/__pycache__/books.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/subapp/books/__pycache__/models.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/subapp/books/__pycache__/models.cpython-310.pyc -------------------------------------------------------------------------------- /ch7/subapp/books/books.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/subapp/books/books.py -------------------------------------------------------------------------------- /ch7/subapp/books/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/subapp/books/models.py -------------------------------------------------------------------------------- /ch7/subapp/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch7/subapp/main.py -------------------------------------------------------------------------------- /ch8/fastapi-events/log.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/fastapi-events/log.txt -------------------------------------------------------------------------------- /ch8/fastapi-events/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/fastapi-events/main.py -------------------------------------------------------------------------------- /ch8/flask-subapp/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/flask-subapp/main.py -------------------------------------------------------------------------------- /ch8/graphql/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/graphql/main.py -------------------------------------------------------------------------------- /ch8/multiclient-chat/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/multiclient-chat/main.py -------------------------------------------------------------------------------- /ch8/multiclient-chat/templates/socket.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/multiclient-chat/templates/socket.html -------------------------------------------------------------------------------- /ch8/websocket-console/ws-client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/websocket-console/ws-client.py -------------------------------------------------------------------------------- /ch8/websocket-console/ws-server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/websocket-console/ws-server.py -------------------------------------------------------------------------------- /ch8/websocket-echoserver/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/websocket-echoserver/main.py -------------------------------------------------------------------------------- /ch8/websocket-echoserver/templates/socket.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/websocket-echoserver/templates/socket.html -------------------------------------------------------------------------------- /ch8/websocket-echoserver/templates/ws.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/websocket-echoserver/templates/ws.js -------------------------------------------------------------------------------- /ch8/ws-number-gen/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/ws-number-gen/main.py -------------------------------------------------------------------------------- /ch8/ws-number-gen/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch8/ws-number-gen/test.html -------------------------------------------------------------------------------- /ch9/AsyncTest/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/AsyncTest/main.py -------------------------------------------------------------------------------- /ch9/AsyncTest/test_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/AsyncTest/test_main.py -------------------------------------------------------------------------------- /ch9/Basic auth/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/Basic auth/main.py -------------------------------------------------------------------------------- /ch9/Exception handler/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/Exception handler/main.py -------------------------------------------------------------------------------- /ch9/HTTP Exception/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/HTTP Exception/main.py -------------------------------------------------------------------------------- /ch9/override-dep/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/override-dep/main.py -------------------------------------------------------------------------------- /ch9/override-dep/test_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/override-dep/test_main.py -------------------------------------------------------------------------------- /ch9/test-database/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/test-database/main.py -------------------------------------------------------------------------------- /ch9/test-database/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ch9/test-database/tests/test_mydata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/test-database/tests/test_mydata.py -------------------------------------------------------------------------------- /ch9/testing/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/testing/main.py -------------------------------------------------------------------------------- /ch9/testing/test_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/testing/test_main.py -------------------------------------------------------------------------------- /ch9/websocket-test/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/websocket-test/main.py -------------------------------------------------------------------------------- /ch9/websocket-test/test_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/Build-High-Performance-Web-Apps-with-FastAPI-by-Malhar-Lathkar/HEAD/ch9/websocket-test/test_main.py --------------------------------------------------------------------------------