No Description

connect.py 276B

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