SQLSoup

Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

SQLSoup

SQLSoup provides a convenient way to map Python objects to relational database tables, with no declarative code of any kind. It's built on top of the SQLAlchemy ORM and provides a super-minimalistic interface to an existing database.

Usage is as simple as:

import sqlsoup
db = sqlsoup.SQLSoup("postgresql://scott:tiger@localhost/test")

for user in db.users.all():
print "user:", user.name

db.users.filter_by(name="ed").update({"name":"jack"})
db.commit()


Included for many years as an extension to SQLAlchemy itself, SQLSoup has been broken out into it's own project as of 2012. The community is encouraged to collaborate on Bitbucket with patches and features.

Documentation and status of SQLSoup is at http://readthedocs.org/docs/sqlsoup/.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.