querying dictionary / list of dictionary like SQL

rkmr.em at gmail.com rkmr.em at gmail.com
Tue May 22 19:18:06 EDT 2007


Hi
Is there a module /add on in python that will let me query a dictionary [ or
a list of dictionary] exactly like an SQL query? For ex:
a=[{'id':1, 'name':'mark'}, {'id':2,'name': 'richard'}]
select * from a where id =1
should give me the a[0] or something similar to this.
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070522/122f3f2c/attachment.html>


More information about the Python-list mailing list