Some Django like shortcuts that support sqlalchemy models.
django_sorcery.shortcuts.
get_list_or_404
Use filter() to return a list of objects, or raise a Http404 exception if the count is 0.
klass may be a Model or Query object. All other passed arguments used in filter() and keyword arguments are used in filter_by().
get_object_or_404
Use session.get() to return an object, or raise a Http404 exception if the object does not exist.
klass may be a Model, or Query object. All other passed arguments and keyword arguments are used in the get() query.