

def register_package_http(name, user, token, short_desc, long_desc, homepage):
    url = 'http://spark-packages.org/api/submit-package'
    params = {
        'name': name,
        'homepage': homepage,
        'short_description': short_desc,
        'description': long_desc,
    }
    auth = base64.b64encode(((user + ':') + token).encode())
    h = {
        'Authorization': ('Basic ' + user.decode('utf-8')),
    }
    return requests.post(url, headers=h, data=params)

dataset/ETHPy150Open databricks/spark-package-cmd-tool/python/spark_package/spark_package.py register_package_http/VarMisuse@80/122 `auth`->`user`