public marks

PUBLIC MARKS from roberto with tags python & sql

October 2005

ASPN : Python Cookbook : List comprehensions for database requests

The usual way to make a request to a database is to write a string with the SQL syntax, then execute this request and get the result as a list with cursor.fetchall() or cursor.fetchone() Python has list comprehensions to select items in an iterable if a certain condition is true ; this is very similar to database requests This recipe wraps a table of a DB-API compliant database in a class that implements the iteration protocol, so that you can use the for ... in ... if ... syntax

September 2004

March 2004

ezSqlObject

A convenience wrapper for SQLObject.

roberto's TAGS related to tag python

3d +   alsa +   amazon +   apache +   atom +   audio +   benchmark +   blog +   bookmarks +   c +   cgi +   climate +   crypto +   css +   cvs +   dap +   darcs +   data +   db +   debian +   dods +   dvd +   email +   fun +   games +   gecko +   gimp +   gmail +   gmt +   gnome +   google +   grads +   grant +   graphviz +   greasemonkey +   homeostasis +   html +   http +   ical +   jabber +   javascript +   lan +   ldap +   linux +   lisp +   mac +   mail +   math +   meta +   network +   nevow +   oceanography +   opendap +   os +   p2p +   palm +   parsing +   photography +   php +   plone +   plot +   programming +   pyblosxom +   rails +   recipe +   regexp +   rss +   ruby +   scanner +   science +   search +   soap +   software +   sound +   spam +   sparklines +   sql +   ssl +   template +   textile +   time +   twisted +   unix +   video +   vim +   voip +   wavelet +   weather +   web +   webdav +   weblog +   wifi +   wiki +   windows +   writing +   wsgi +   x +   xhtml +   xml +   zope +