Did I find the right examples for you? yes no

All Samples(465)  |  Call(342)  |  Derive(0)  |  Import(123)

        def parse_url(url):
    import urlparse
    from decimal import Decimal

    u = urlparse.urlparse(url)
    assert u.scheme == 'bitcoin'

    address = u.path
    #assert bitcoin.is_address(address)

    pq = urlparse.parse_qs(u.query)
    
    for k, v in pq.items():
        if len(v)!=1:
            raise Exception('Duplicate Key', k)

    amount = label = message = request_url = ''
    if 'amount' in pq:
        am = pq['amount'][0]
        m = re.match('([0-9\.]+)X([0-9])', am)
        if m:
            k = int(m.group(2)) - 8
            amount = Decimal(m.group(1)) * pow(  Decimal(10) , k)
        else:
            amount = Decimal(am)
    if 'message' in pq:
        message = pq['message'][0]
    if 'label' in pq:
        label = pq['label'][0]
    if 'r' in pq:
        request_url = pq['r'][0]
        
    return address, amount, label, message, request_url, url
        


src/o/w/ownNotes-HEAD/Sailfish/ownNotes/python/requests/packages/urllib3/poolmanager.py   ownNotes(Download)
from .connectionpool import port_by_scheme
from .request import RequestMethods
from .util import parse_url
 
 
        constructor.
        """
        u = parse_url(url)
        return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 
        :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.
        """
        u = parse_url(url)
        conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 
            proxy_url = '%s://%s:%i' % (proxy_url.scheme, proxy_url.host,
                                        proxy_url.port)
        proxy = parse_url(proxy_url)
        if not proxy.port:
            port = port_by_scheme.get(proxy.scheme, 80)
    def urlopen(self, method, url, redirect=True, **kw):
        "Same as HTTP(S)ConnectionPool.urlopen, ``url`` must be absolute."
        u = parse_url(url)
 
        if u.scheme == "http":

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Toggl-Time-Tracking/alp/request/requests/packages/urllib3/poolmanager.py   AlfredWorkflow.com(Download)
from .connectionpool import connection_from_url, port_by_scheme
from .request import RequestMethods
from .util import parse_url
 
 
        constructor.
        """
        u = parse_url(url)
        return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 
        :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.
        """
        u = parse_url(url)
        conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/SearchKippt/alp/request/requests/packages/urllib3/poolmanager.py   AlfredWorkflow.com(Download)
from .connectionpool import connection_from_url, port_by_scheme
from .request import RequestMethods
from .util import parse_url
 
 
        constructor.
        """
        u = parse_url(url)
        return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 
        :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.
        """
        u = parse_url(url)
        conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Rotten-Tomatoes/PyAl/Request/requests/packages/urllib3/poolmanager.py   AlfredWorkflow.com(Download)
from .connectionpool import connection_from_url, port_by_scheme
from .request import RequestMethods
from .util import parse_url
 
 
        constructor.
        """
        u = parse_url(url)
        return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 
        :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.
        """
        u = parse_url(url)
        conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/nuomituangou/alp/request/requests/packages/urllib3/poolmanager.py   AlfredWorkflow.com(Download)
from .connectionpool import connection_from_url, port_by_scheme
from .request import RequestMethods
from .util import parse_url
 
 
        constructor.
        """
        u = parse_url(url)
        return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 
        :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.
        """
        u = parse_url(url)
        conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/KindleBookstore/PyAl/Request/requests/packages/urllib3/poolmanager.py   AlfredWorkflow.com(Download)
from .connectionpool import connection_from_url, port_by_scheme
from .request import RequestMethods
from .util import parse_url
 
 
        constructor.
        """
        u = parse_url(url)
        return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 
        :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.
        """
        u = parse_url(url)
        conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/delicious/alp/request/requests/packages/urllib3/poolmanager.py   AlfredWorkflow.com(Download)
from .connectionpool import connection_from_url, port_by_scheme
from .request import RequestMethods
from .util import parse_url
 
 
        constructor.
        """
        u = parse_url(url)
        return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 
        :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.
        """
        u = parse_url(url)
        conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Command-Help/alp/request/requests/packages/urllib3/poolmanager.py   AlfredWorkflow.com(Download)
from .connectionpool import connection_from_url, port_by_scheme
from .request import RequestMethods
from .util import parse_url
 
 
        constructor.
        """
        u = parse_url(url)
        return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 
        :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.
        """
        u = parse_url(url)
        conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Alfred-Time-Keeper/PyAl/Request/requests/packages/urllib3/poolmanager.py   AlfredWorkflow.com(Download)
from .connectionpool import connection_from_url, port_by_scheme
from .request import RequestMethods
from .util import parse_url
 
 
        constructor.
        """
        u = parse_url(url)
        return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 
        :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.
        """
        u = parse_url(url)
        conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 

src/o/w/ownNotes-HEAD/Desktop/python/requests/packages/urllib3/poolmanager.py   ownNotes(Download)
from .connectionpool import port_by_scheme
from .request import RequestMethods
from .util import parse_url
 
 
        constructor.
        """
        u = parse_url(url)
        return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 
        :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.
        """
        u = parse_url(url)
        conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
 
            proxy_url = '%s://%s:%i' % (proxy_url.scheme, proxy_url.host,
                                        proxy_url.port)
        proxy = parse_url(proxy_url)
        if not proxy.port:
            port = port_by_scheme.get(proxy.scheme, 80)
    def urlopen(self, method, url, redirect=True, **kw):
        "Same as HTTP(S)ConnectionPool.urlopen, ``url`` must be absolute."
        u = parse_url(url)
 
        if u.scheme == "http":

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next