ibm_db/ibm_db_dbi
, a Python library that allows you to use Python code to run SQL commands on the Db2 database.
The required arguments to establish a connection are as follows:
user
is the username associated with the database.password
is the password required to authenticate your access to the database.host
is the hostname or IP address of the server.port
is the port through which TCP/IP connection is to be made.database
is the database name to be connected.schema
is required to get the tables.