I’m using ibm_db and ibm_db_dbi at the moment, but they’re getting rejected due to license requirement (yeah wtf).
Wondering if there’s a similar package in Python that’s easy to implement without beating around a jungle to connect to an IBMi server DB2 and without license requirements
EDIT:
u/MasterOfIBMi is LEGIT. Got this working in 5 minutes.
import pyodbc connection = pyodbc.connect( Driver='{IBM i Access ODBC Driver}’, SYSTEM=’someserver’, UserID=”, Password=”) cur = connection.cursor() cur.execute(“select * from sysibm.sysdummy1”) row = cur.fetchone() while row: print(row[0]) row = cur.fetchone() exit()
submitted by /u/tallburnik
[link][comments]