bitty 0.4.1

A tiny database layer

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Daniel Lindsley
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Utilities
bitty is a tiny storage layer written in Python.

Why another storage layer?

I wanted one that was small (both in terms of a single file and in actual kloc), tested and could handle multiple data stores. And because it was fun.

Example:

bitty supports the usual CRUD methods. For example::

from bitty import *

bit = Bitty('sqlite:///home/code/my_database.db')

bit.add('people', name='Claris', says='Moof!', age=37)
bit.add('people', name='John Doe', says='No comment.', age=37)

# Select all.
for row in bit.find('people'):
 print row['name']

bit.close()


See examples/ and tests.py for more usages.

Supported Backends

 * SQLite
 * Postgres
 * MySQL

Schema

You're responsible for your own schema. bitty does the smallest amount of introspection it can to get by.

When to use bitty?

bitty is best used in environments like resource-based APIs and when integrating with other software (like a bigger web framework).

Tastes great when used with itty.

Serious Python Programmers™ with Enterprise Requirements need not apply.

Last updated on January 21st, 2010

requirements

#storage layer #database storage #Python library #database #storage #layer #library

Add your review!

SUBMIT