This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


This is a vary simple database access interface for python.


  • Easy to use
  • supports sqlite, mysql


Go to the homepage:


example table: foo (id int, name string)


connect to sqlite3

ctx =  SqliteContext("test.db")
db = Database(ctx)

connect mysql

ctx = MySqlContext(username="name", password="pwd", hostname="localhost", db="test")
db = Database(ctx)


query a row dict"name=?", "tom").get()

# raw sql
db.get("select * from foo where name=?", "tom")

query many rows"id>?", 100).orderby("id desc").limit(0,10).query()

# raw sql
db.query("select * from foo where id>? order by id desc limit 0,100;", 100)

query selected cols"id, name")

# raw sql
db.query("select id, name from foo")


fdict = dict(name="new foo")"id=?", 1).update(**fidct)

# raw sql
db.execute("update foo set name=? where id=?", "new foo", 1)

Delete"name like ?", "test%").delete()

# raw sql
db.execute("delete from foo where name like ?", "test%")


see the test code.


Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting