DumpTruck 0.1.4

Relaxing interface to SQLite
LICENSE TYPE:
AGPL v3 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Thomas Levine
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Database \ Administrative frontents
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.

Last updated on August 4th, 2012

requirements

#SQLite interface #SQLite database #document-like interface #SQLite #interface #database #document-like

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update

Add your review!

SUBMIT