def create_connect_args(self, url):
        opts = url.translate_connect_args(username='user')
        if 'port' in opts:
            opts['port'] = int(opts['port'])
        else:
            opts['port'] = 5432
        opts.update(url.query)
        return ([], opts)
dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/dialects/postgresql/pypostgresql.py/PGDialect_pypostgresql.create_connect_args/original