Python FastAPI Docker Postgres

Requirements

Python 3.9

Installation

$ poetry install

---> 100%
$ poetry shell

---> 100%

Example

Use it

  • Start up PostgreSQL(Docker) and amin(Docker)
$ docker-compose up -d

---> 100%
  • Start up FastAPI
$ make up

---> 100%

Tests

$ pytest -s -v

---> 100%

image

Performance

Independent TechEmpower benchmarks show FastAPI applications running under Uvicorn as one of the fastest Python frameworks available, only below Starlette and Uvicorn themselves (used internally by FastAPI). (*)

To understand more about it, see the section Benchmarks.