skip to navigation
skip to content

Not Logged In

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.

Example:

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,
        default=datetime.utcnow)

to_do = ToDo(title='Install orm', done=True)
db.add(to_do)
db.commit()

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
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 102 downloads in the last week
  • 575 downloads in the last month