There are also several libraries and packages that are required, many of which may be installed by default, depending on your system. The CData ODBC Drivers are supported in various Red Hat-based and Debian-based systems, including Ubuntu, Debian, RHEL, CentOS, and Fedora. Using the CData ODBC Drivers on a UNIX/Linux Machine
This article shows how to use the pyodbc built-in functions to connect to PostgreSQL data, execute queries, and output the results. With the CData Linux/UNIX ODBC Driver for PostgreSQL and the pyodbc module, you can easily build PostgreSQL-connected Python applications. The rich ecosystem of Python modules lets you get to work quicker and integrate your systems more effectively.