Did I find the right examples for you? yes no

All Samples(19)  |  Call(6)  |  Derive(0)  |  Import(13)
Parse a URL into 6 components:
<scheme>://<netloc>/<path>;<params>?<query>#<fragment>
Return a 6-tuple: (scheme, netloc, path, params, query, fragment).
Note that we don't break the components up in smaller bits
(e.g. netloc is a single string) and we don't expand % escapes.

        def urlparse(url, scheme='', allow_fragments=True):
    """Parse a URL into 6 components:
    :///;?#
    Return a 6-tuple: (scheme, netloc, path, params, query, fragment).
    Note that we don't break the components up in smaller bits
    (e.g. netloc is a single string) and we don't expand % escapes."""
    tuple = urlsplit(url, scheme, allow_fragments)
    scheme, netloc, url, query, fragment = tuple
    if scheme in uses_params and ';' in url:
        url, params = _splitparams(url)
    else:
        params = ''
    return ParseResult(scheme, netloc, url, params, query, fragment)
        


src/b/u/bulbs-0.3.29-20140417/bulbs/config.py   bulbs(Download)
#
import os
from .utils import bulbs_logger, get_logger, urlparse
from logging import StreamHandler, DEBUG, INFO, WARNING, ERROR, CRITICAL
 
 
        if url is not None:
            parsed =  urlparse(url)
            pieces = (parsed.scheme, parsed.hostname, parsed.port, parsed.path)
            self.root_uri = "%s://%s:%s%s" % pieces

src/b/u/bulbs-HEAD/bulbs/config.py   bulbs(Download)
#
import os
from .utils import bulbs_logger, get_logger, urlparse
from logging import StreamHandler, DEBUG, INFO, WARNING, ERROR, CRITICAL
 
 
        if url is not None:
            parsed =  urlparse(url)
            pieces = (parsed.scheme, parsed.hostname, parsed.port, parsed.path)
            self.root_uri = "%s://%s:%s%s" % pieces

src/r/e/reporter-HEAD/apps/website_issues/helpers.py   reporter(Download)
def sites_url(context, url, **kw):
    _parsed = utils.urlparse(url)
    base_url = reverse('single_site', args=[_parsed.scheme, _parsed.netloc])
    base_url = base_url + '?' + context['request'].META['QUERY_STRING']
    return urlparams(base_url, page=None)
def strip_protocol(url_):
    """Strip protocol from urls with exceptions for chrome:// and about:."""
    parsed = utils.urlparse(url_)
    if parsed.scheme in ('about', 'chrome'):
        return url_
def domain(url_):
    """Remove the protocol from a sites URL (path has been removed already)"""
    parsed = utils.urlparse(url_)
    if parsed.scheme == 'chrome':
        return url_[len('chrome://'):]
def protocol(url_):
    """Extract the protocol from a URL."""
    parsed = utils.urlparse(url_)
    return parsed.scheme
 

src/v/d/vdirsyncer-HEAD/vdirsyncer/storage/http.py   vdirsyncer(Download)
 
from .base import Item, Storage
from ..utils import expand_path, get_password, request, text_type, urlparse
from ..utils.vobject import split_collection
from ..exceptions import NotFoundError

src/v/d/vdirsyncer-0.1.4/vdirsyncer/storage/dav.py   vdirsyncer(Download)
from .. import exceptions
from .. import log
from ..utils import request, get_password, urlparse
import requests
import datetime

src/w/e/webassets2-0.10.dev-fork-renderer.7/src/webassets/bundle.py   webassets2(Download)
from .updater import SKIP_CACHE
from .exceptions import BundleError, BuildError
from .utils import cmp_debug_levels, urlparse
 
 

src/w/e/webassets-0.9/src/webassets/bundle.py   webassets(Download)
from .updater import SKIP_CACHE
from .exceptions import BundleError, BuildError
from .utils import cmp_debug_levels, urlparse
 
 

src/w/e/webassets-HEAD/src/webassets/bundle.py   webassets(Download)
from .updater import SKIP_CACHE
from .exceptions import BundleError, BuildError
from .utils import cmp_debug_levels, urlparse
 
 

src/w/e/webassets2-0.10.dev-fork-renderer.7/src/webassets/env.py   webassets2(Download)
from .version import get_versioner, get_manifest
from .updater import get_updater
from .utils import urlparse
from .renderer import prepare_renderer
 

src/w/e/webassets-0.9/src/webassets/env.py   webassets(Download)
from .version import get_versioner, get_manifest
from .updater import get_updater
from .utils import urlparse
 
 

  1 | 2  Next