python
>>> import MySQLdb # pSQL setzt auf MySQLdb auf
>>> import pSQL
>>> datenbank = "Beispiel"
>>> connection = MySQLdb.connect("localhost", db=datenbank)
>>> beispiel = pSQL.pSQL(connection, name=datenbank)
>>> print beispiel
<pSQL database 'Beispiel' at '0x80efacc'>
>>> print beispiel.keys()
['Adressen']
>>> adress = beispiel.Adressen
>>> print adress
<pSQL table 'Adressen' of database 'Beispiel' at '0x8100414'>
>>> ergebnis = adress.PLZ['5%']
>>> len(ergebnis)
3
>>> print ergebnis[0]
{ 'ID_Nummer': 233, 'Name': 'Dr. Hans Mustermann',
'Strasse': 'Musterstraße 13', 'PLZ': 50823, 'Ort': 'Köln' }