sqldict

Dict with sqlalchemy database-agnostic back-end
Download

sqldict Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • Krister Hedfors
  • Publisher web site:
  • http://hedfors.se

sqldict Tags


sqldict Description

Dict with sqlalchemy database-agnostic back-end sqldict is a dict with SQLAlchemy database-agnostic backend.Usage: from sqldict import sqldict d = sqldict(dburi="mysql://user:pass@localhost/dbname", tablename="hoho", create=1) d = 123 for key,val in d.iteritems(): assert d == 123 from sqlalchemy import * engine = create_engine('sqlite://') conn = engine.connect() d2 = sqldict(engine=engine, tablename='hihi') d3 = sqldict(conn=conn, tablename='haha') d4 = sqldict(conn=conn, tablename='haha', ns='OtherNamespace') Requirements: · Python


sqldict Related Software