Use the inspector:
from sqlalchemy.engine.reflection import Inspector
inspector = Inspector.from_engine(engine)
print table_name in inspector.get_table_names()
You can find the documentation here:
http://docs.sqlalchemy.org/en/rel_0_7/core/schema.html?highlight=inspector#sqlalchemy.engine.reflection.Inspector
Wichert.
engine.dialect.has_table(engine.connect(), "mytable")
> --
> You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
> To post to this group, send email to sqlal...@googlegroups.com.
> To unsubscribe from this group, send email to sqlalchemy+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
>