def set_proxy ( proxy_url , transport_proxy = None ) : global proxy , PYPI_URL PYPI_URL = proxy_url proxy = xmlrpc . ServerProxy ( proxy_url , transport = RequestsTransport ( proxy_url . startswith ( 'https://' ) ) , allow_none = True )
how to set up a python proxy
Create the proxy to PyPI XML - RPC Server
def set_proxy(proxy_url, transport_proxy=None):
    """Create the proxy to PyPI XML-RPC Server"""
    global proxy, PYPI_URL
    PYPI_URL = proxy_url
    proxy = xmlrpc.ServerProxy(
        proxy_url,
        transport=RequestsTransport(proxy_url.startswith('https://')),
        allow_none=True)