skip to navigation
skip to content

ORM 1.0.1

An easy-to-use and framework-independent light wrapper for SQLAlchemy

Latest Version: 1.1.0

A framework-independent wrapper for SQLAlchemy that makes it really easy and fun to use.


from orm import SQLALchemy

db = SQLALchemy('postgresql://scott:tiger@localhost:5432/mydatabase')

class ToDo(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.String(60), nullable=False)
    done = db.Column(db.Boolean, nullable=False, default=False)
    pub_date = db.Column(db.DateTime, nullable=False,

to_do = ToDo(title='Install orm', done=True)

completed = db.query(ToDo).order_by(Todo.pub_date.desc()).all()

It does an automatic table naming (if no name is defined) and, to the base query class.

File Type Py Version Uploaded on Size
ORM-1.0.1.tar.gz (md5) Source 2013-06-16 126KB