fbdbinfo is a tiny python script which creates xhtml files that display information about a Firebird database. The data can as well be exported to xhtml files.
PySQLdb provides a simple and consistent programming interface to SQL databases,
in Python.
The PySQLdb classes are abstracted sufficiently for programmers consider writing tiny compilers (in python!) that take a SQL file and auto-generate code to acc