Install sqlacodegen by entering the following commands in the terminal:
sudo apt update sudo apt install sqlacodegen
Description:
Automatic model code generator for SQLAlchemy
This is a tool that reads the structure of an existing database and generates the appropriate SQLAlchemy model code, using the declarative style if possible.
Homepage: https://pypi.python.org/pypi/sqlacodegen
Version: 1.1.6-2build1
Section: universe/python