from sqlalchemy import create_engine
eng = create_engine('mysql+pymysql://root:password@localhost:3306',
    pool_recycle=3600)
q = eng.execute('SHOW DATABASES')
available_tables = q.fetchall()
Список баз данных в SQLAlchemy