from sqlalchemy import MetaData
combined_meta_data = MetaData()
for declarative_base in [Base1, Base2]:
    for table_name, table in list(declarative_base.metadata.tables.items()):
        combined_meta_data._add_table(table_name, table.schema, table)
Merge multiple declarative bases in SQLAlchemy