How To Install python3-sqlacodegen on Fedora 36

In this tutorial we learn how to install python3-sqlacodegen in Fedora 36. python3-sqlacodegen is Automatic model code generator for SQLAlchemy

Introduction

In this tutorial we learn how to install python3-sqlacodegen on Fedora 36.

What is python3-sqlacodegen

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. This tool was written as a replacement for sqlautocode, which was suffering from several issues (including, but not limited to, incompatibility with Python 3 and the latest SQLAlchemy version). Features * Supports SQLAlchemy 0.8.x - 1.2.x * Produces declarative code that almost looks like it was hand written * Produces PEP 8 compliant code * Accurately determines relationships, including many-to-many, one-to-one * Automatically detects joined table inheritance * Excellent test coverage Python 3 version.

We can use yum or dnf to install python3-sqlacodegen on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-sqlacodegen.

Install python3-sqlacodegen on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-sqlacodegen using dnf by running the following command:

sudo dnf -y install python3-sqlacodegen

Install python3-sqlacodegen on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-sqlacodegen using yum by running the following command:

sudo yum -y install python3-sqlacodegen

How To Uninstall python3-sqlacodegen on Fedora 36

To uninstall only the python3-sqlacodegen package we can use the following command:

sudo dnf remove python3-sqlacodegen

python3-sqlacodegen Package Contents on Fedora 36

/usr/bin/sqlacodegen
/usr/lib/python3.10/site-packages/sqlacodegen
/usr/lib/python3.10/site-packages/sqlacodegen-2.0.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/sqlacodegen-2.0.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/sqlacodegen-2.0.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/sqlacodegen-2.0.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/sqlacodegen-2.0.0-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/sqlacodegen-2.0.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/sqlacodegen-2.0.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/sqlacodegen/__init__.py
/usr/lib/python3.10/site-packages/sqlacodegen/__pycache__
/usr/lib/python3.10/site-packages/sqlacodegen/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sqlacodegen/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/sqlacodegen/__pycache__/codegen.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sqlacodegen/__pycache__/codegen.cpython-310.pyc
/usr/lib/python3.10/site-packages/sqlacodegen/__pycache__/main.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sqlacodegen/__pycache__/main.cpython-310.pyc
/usr/lib/python3.10/site-packages/sqlacodegen/codegen.py
/usr/lib/python3.10/site-packages/sqlacodegen/main.py
/usr/share/doc/python3-sqlacodegen
/usr/share/doc/python3-sqlacodegen/CHANGES.rst
/usr/share/doc/python3-sqlacodegen/README.rst
/usr/share/licenses/python3-sqlacodegen
/usr/share/licenses/python3-sqlacodegen/LICENSE

References

Summary

In this tutorial we learn how to install python3-sqlacodegen on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).