Technical requirements
In this chapter we will use a number of external packages in addition to the standard Python library to explore database engines, including database connection drivers and a simple object-relational mapper. As usual the source code is available in the relevant chapter folder of the Github repo (https://github.com/PacktPublishing/Asynchronous-Programming-in-Python).
In addition, to run the code for the external database examples you will need to install PostgreSQL (https://www.postgresql.org/download/) or use a container like Docker (https://www.docker.com/blog/how-to-use-the-postgres-docker-official-image/) or Podman (https://podman-desktop.io/tutorial/interacting-with-a-database-server) that runs PostgreSQL and gives you access to it using port 5432. Remember to generate a virtual environment exclusively for the chapter, so that the additional packages do not interfere with other requirements:
$ python3 -m venv .env
$ pip install -r requirements.txt...