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["asd"] = 123
for key,val in d.iteritems():
assert d["asd"] == 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')
Product's homepage
Requirements:
· Python