Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Syntactic sugar for SQLAlchemy: a Storm ORM-like find method

Project description

A find() method for SQLAlchemy


from sqlalchemy_find import SessionWithFind, QueryWithFind
from sqlalchemy.orm import sessionmaker

# Configure engine and sessionmaker
engine = create_engine('postgresql://scott:tiger@localhost/')
Session = sessionmaker(bind=engine,

# Create a session
session = Session()

# Equivalent to:
#   query = session.query(MyClass)
#   query = query.filter( == 'foo')
#   query = query.filter_by(is_active=True)
query = session.find(MyClass, == 'foo', is_active=True)

# Equivalent to:
#   ob = session.query(MyClass).get(21)
ob = session.get(MyClass, id=21)


Version 0.1

  • Initial release

Project details

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
sqlalchemy-find-0.1.tar.gz (2.4 kB) Copy SHA256 hash SHA256 Source None Jul 6, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page