Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 63 lines (37 sloc) 1.263 kb
1caabecb »
2009-12-17 Reformatted README.
1 bitty.py
2 ========
a7349605 »
2009-12-14 Added README.
3
6b954ba3 »
2009-12-16 Added MySQLAdapter. v0.4!
4 A tiny storage layer.
a7349605 »
2009-12-14 Added README.
5
6
6b954ba3 »
2009-12-16 Added MySQLAdapter. v0.4!
7 Why another storage layer?
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
8 --------------------------
a7349605 »
2009-12-14 Added README.
9
10 I wanted one that was small (both in terms of a single file and in actual kloc),
11 tested and could handle multiple data stores. And because it was fun.
12
13 Example
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
14 -------
a7349605 »
2009-12-14 Added README.
15
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
16 `bitty` supports the usual CRUD methods. For example::
a7349605 »
2009-12-14 Added README.
17
18 from bitty import *
19
20 bit = Bitty('sqlite:///home/code/my_database.db')
21
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
22 bit.add('people', name='Claris', says='Moof!', age=37)
23 bit.add('people', name='John Doe', says='No comment.', age=37)
a7349605 »
2009-12-14 Added README.
24
25 # Select all.
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
26 for row in bit.find('people'):
a7349605 »
2009-12-14 Added README.
27 print row['name']
666010e1 »
2009-12-16 Added PostgresAdapter. v0.3!
28
29 bit.close()
a7349605 »
2009-12-14 Added README.
30
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
31 See `examples/` and `tests.py` for more usages.
fd7ecc34 »
2009-12-17 One more try, because GitHub hates me.
32
a7349605 »
2009-12-14 Added README.
33
6b954ba3 »
2009-12-16 Added MySQLAdapter. v0.4!
34 Supported Backends
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
35 ------------------
6b954ba3 »
2009-12-16 Added MySQLAdapter. v0.4!
36
37 * SQLite
38 * Postgres
39 * MySQL
40
41
a7349605 »
2009-12-14 Added README.
42 Schema
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
43 ------
a7349605 »
2009-12-14 Added README.
44
45 You're responsible for your own schema. bitty does the smallest amount of
46 introspection it can to get by.
47
48
fd7ecc34 »
2009-12-17 One more try, because GitHub hates me.
49 When to use bitty?
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
50 ------------------
a7349605 »
2009-12-14 Added README.
51
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
52 `bitty` is best used in environments like resource-based APIs and when
a7349605 »
2009-12-14 Added README.
53 integrating with other software (like a bigger web framework).
54
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
55 Tastes great when used with [itty][1].
fd7ecc34 »
2009-12-17 One more try, because GitHub hates me.
56
57 Serious Python Programmers™ with Enterprise Requirements need not apply.
58
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
59 [1]: http://github.com/toastdriven/itty
a7349605 »
2009-12-14 Added README.
60
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
61 *author: Daniel Lindsley*
331e8be5 »
2010-01-20 Added the ability to specify the port. Thanks to akrito for the origi…
62
8070fe00 »
2010-01-20 A bunch of README fixes. Thanks akrito!
63 *date: 2010-01-20*
Something went wrong with that request. Please try again.