DBGlue is a python library that assists with ignoring SQL. There are two main goals behind DBGlue: eliminating the need to write SQL, and creating portable database objects. The best part, is that dbglue supports multiple database: mysql, sqlite2, sqlite3, and postgresql. Of course if you want to write your own driver (it's easy), feel free to do so.

DBGlue turns database rows into python objects, classes where the class variables are literally the names of the columns in the database row. And now, as of version 2.0 DBGlue supports encrypted and hashed rows, including almost full querying (no like queries).

News

DBGlue 2.1 is almost ready. A few bugfixes have gone in to the new version (as well as native support for spyce). Finally, support for oracle (via cx_Oracle) should be ready for the new version.

Downloads

DBGlue 2.0 - The current version with support for encryption, and cgi/dbglue integration

DBGlue 1.0 (pydb) - Previous version (4+ years stable)

Next: DBGlue Tutorial