Binary package “python3-pyodbc” in ubuntu oracular
Python3 module for ODBC database access
A Python3 DB API 2 module for ODBC. No 3rd party libraries are required.
Only native Python datatypes are used, such as decimal and datetime.
It implements the Python Database API Specification v2.0.
For example:
import pyodbc
Next, create a connection by passing an ODBC connection string to the
connect method. This step causes ODBC to load the database driver (the SQL
Server driver in this example) and connect to the database.
cnxn = pyodbc.