Django has a
get_or_create() method for times when you don't know if data for an entity already exists. There are multiple implementations available for SQLAlchemy at http://stackoverflow.com/questions/2546207/does-sqlalchemy-have-an-equivalent-of-djangos-get-or-create/, but I thought it would be nice to have a native support for such widely used feature.
I'm not sure of the ideal implementation, but one that pleases my eye is to add a keyword arugment for
Or simply add a new method: