- import sqlalchemy as db
- # import mysqlclient
- # mysql+pymysql://<username>:<password>@<host>/<dbname>[?<options>]
-
- engine = db.create_engine('mysql+pymysql://jose.ortiz23:cS6pHbYlw7XaS4LX@localhost/registro_escolar_test')
- connection = engine.connect()
- metadata = db.MetaData()
|