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

    return decorate
Class decorator for :func:`.declarative_base`.
dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/ext/declarative/api.py/as_declarative