dbkit

0.2.2 MIT/X Consortium License    
  UNRATED

  191 downloads

DB-API made easier

description

download

specs

dbkit is a Python library that abstracts away at least part of the pain involved in dealing with DB-API 2 compatible database drivers.

from dbkit import connect, query
from contextlib import closing
import sqlite3

with connect(sqlite3, 'counters.db') as ctx, closing(ctx):
 for counter, value in query('SELECT counter, value FROM counters'):
 print "%s: %d" % (counter, value)


Overview

dbkit is intended to be used in circumstances where it is impractical or overkill to use an ORM such as SQLObject or SQLAlchemy, but it would be useful to at least abstract away some of the pain involved in dealing with the database.
read more   
Last updated on August 29th, 2012

#database drivers #database API #Python #DB-API #database #drivers

0 User reviews so far.

SUBMIT