Python library for generating SQL queries [selects, alters, inserts and commits]

Adam Tauno Williams awilliam at whitemice.org
Tue Oct 11 11:33:46 EDT 2011


Quoting Alec Taylor <alec.taylor6 at gmail.com>
> They look good, but I'm looking for something which can "compile" down
> to normal SQL code.
> So that I can just plug that .sql file into any environment [i.e.
> non-python env]

SQLalchemy will happily give you statements and argument lists if that  
is what you want.


query = db.query(Task).filter(Task.objectid==10100)
print str(query)




More information about the Python-list mailing list