DumpTruck

  546 downloads
0.1.4 AGPL v3    
  not rated
Relaxing interface to SQLite

description

download

specifications

DumpTruck is a document-like interface to a SQLite database.

Quick start

Install, save data and retrieve it using default settings.

Install

pip2 install dumptruck || pip install dumptruck

Initialize

Open the database connection by initializing the a DumpTruck object

dt = DumpTruck()

Save

The simplest `insert` call looks like this.

dt.insert({"firstname":"Thomas","lastname":"Levine"})

This saves a new row with "Thomas" in the "firstname" column and "Levine" in the "lastname" column. It uses the table "dumptruck" inside the database "dumptruck.db". It creates or alters the table if it needs to.

Retrieve

Once the database contains data, you can retrieve them.

data = dt.dump()

The data come out as a list of dictionaries, with one dictionary per row.
READ MORE   
Last updated on August 4th, 2012

0 User reviews so far.

SUBMIT