Skip to content

nod/maroon

Repository files navigation

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.

About

A simplified ORM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages