Sqlobject is a Python database object relational mapping. For example, a library will wrap your database table in a Python class. Currently supports MySQL through the MYSQLDB package, supported by the PSYCOPG package postgresql,sqlite,firebird,maxdb (SAP DB), MS SQL and Sybase. Also supports the Python 2.4 version.
SQLObject version 1.1.3 Fixes bugs in http://www.aliyun.com/zixun/aggregation/14171.html ">postgres.
Example:
This is just a fragment, creating a simple class that encapsulates a table:
>>> from sqlobject import *>>>>>> sqlhub.processconnection = Connectionforuri (' sqlite:/: Memory: ') >>>>>> class person (SQLObject): ... fname = Stringcol () ... mi = stringcol (length=1, default= None) ... lname = Stringcol () ...>>> person.createtable ()
Software Information http://sqlobject.org/
Download Address: http://pypi.python.org/packages/source/S/SQLObject/SQLObject-1.1.3.tar.gz#md5=09c865d5d08e9242e81a3e1e6bafda0b