As noted in jonrsharpe
comment, it looks like you are falling in a trap you have just digged yourself.
Any correct database can give you the individual columns, and if you correctly do the query, you get them in proper format.
Assuming you can use a DB-API 2.0 described in PEP 249, and assuming conn
is an open connection to your database, you should do something like :
curs = conn.cursor()
curs.execute('SELECT name, ip, dat FROM tab')
t = curs.fetchone()
and t
should directly be the tuple ('username', '192.168.1.1', datatime.datetime(2013, 1, 3, 7, 18))
(use list(t)
if you need a list ...)