This is a generic question about all python database drivers but if you an answer for a specific driver (pyodbc, psycopg2, pymysql, mysqldb, etc.) would be useful anyway.
Once I have a connection and cursor, is there a way (an API) to check the connection has or has not timeout without attempting to execute a command thus without reading/writing through the socket?