dbkit

DB-API made easier
Download

dbkit Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Keith Gaughan
  • Publisher web site:
  • http://dbkit.readthedocs.org/

dbkit Tags


dbkit Description

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, queryfrom contextlib import closingimport sqlite3with connect(sqlite3, 'counters.db') as ctx, closing(ctx): for counter, value in query('SELECT counter, value FROM counters'): print "%s: %d" % (counter, value)Overviewdbkit 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.Product's homepage


dbkit Related Software