from sqlalchemy import create_engine engine = create_engine('postgresql://postgres:admin1@localhost:5432/postgres') username^:pass^ databasename^