def as_declarative(**kw):
    def decorate(cls):
        kw['cls'] = cls
        kw['name'] = cls.__name__
        return declarative_base(**kw)

    return decorate
Used to extend the Django template library with custom filters and tags.
dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/ext/declarative/api.py/as_declarative--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/webapp/template.py/create_template_register