Skip to main content

BrainFreeze is an SQLAlchemy plugin that supports object composition (as opposed to class inheritance). Google for "composition vs inheritance" to get the general idea. Another way to think of BrainFreeze is that it's a plugin for proxying properties on one-to-one related objects. BrainFreeze uses SQLAlchemy's AssociationProxy for the python properties, only BrainFreeze goes the extra step of making those properties query-able using SQLAlchemy's session.query() machinery.

Project description

Introduction

BrainFreeze is an SQLAlchemy plugin that supports object composition (as opposed to class inheritance). Google for “composition vs inheritance” to get the general idea.

Another way to think of BrainFreeze is that it’s a plugin for proxying properties on one-to-one related objects. BrainFreeze uses SQLAlchemy’s AssociationProxy for the python properties, only BrainFreeze goes the extra step of making those properties query-able using SQLAlchemy’s session.query() machinery.

Installation and Usage

Visit the BrainFreeze project home for more information.

OneToOneProxy

BrainFreeze provides an SQLAlchemy Python Property that will take all the foreign columns in a one-to-one relation and make them accessible on the mapped class.

But wait! There’s More! Also included is a SQLAlchemy MapperProperty that lets these foreign columns be query-able just as if they were normal columns on the mapped class.

Act now and you’ll receive as our special gift to you, an SQLAlchemy MapperExtension that sets this all up for you automatically.

Project details


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
BrainFreeze-0.1rc2-py2.5.egg (34.6 kB) Copy SHA256 hash SHA256 Egg 2.5
BrainFreeze-0.1rc2.tar.gz (21.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

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