A simplified ORM
Python Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
LICENSE.txt
README.mkd
TODO
__init__.py
couch.py
maroon.py
maroondb.py
mock.py
mongo.py
runtests.sh
tee.py

README.mkd

maroon

A simplified object relational model written in Python.

contrived example

from maroon import Model, IntField, connect

#connect to the database
connect(db_name='example_db')

#make a model
class SimpleModel(Model):
	someint = IntField('someint')

# create an object
s_m = SimpleModel()
s_m.someint = 23
s_m.save()

# retrieval
si = SimpleModel.someint
results = SimpleModel.find(si > 19)
print si.someint

That's it for now.