Created by: sdispater
Orator is a brand new ORM for Python following the ActiveRecord pattern with a pinch of magic in it.
Its main goal is simplicity and to be really easy to read and write with useful features out of the box (relationships decorators, timestampable models, soft deletes, protection against mass assigment, model events, caching).
An example of a simple model:
from orator import Model
class User(Model):
__fillable__ = ['name', 'email']
@has_many
def posts(self):
return Post