Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Functions | |
def | clear_cache |
def | urlparse |
def | urlsplit |
def | urlunparse |
def | urlunsplit |
def | urljoin |
def | urldefrag |
def | test |
Variables | |
list | __all__ = ["urlparse", "urlunparse", "urljoin"] |
list | uses_relative |
list | uses_netloc |
list | non_hierarchical |
list | uses_params |
list | uses_query |
list | uses_fragment |
tuple | scheme_chars |
int | MAX_CACHE_SIZE = 20 |
dictionary | _parse_cache = {} |
string | test_input |
Parse (absolute and relative) URLs. See RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, UC Irvine, June 1995.
def urlparse.clear_cache | ( | ) |
def urlparse.test | ( | ) |
def urlparse.urldefrag | ( | url) |
Removes any existing fragment from URL. Returns a tuple of the defragmented URL and the fragment. If the URL contained no fragments, the second element is the empty string.
Definition at line 194 of file urlparse.py.
References urlunparse().
def urlparse.urljoin | ( | base, | |
url, | |||
allow_fragments = 1 |
|||
) |
Join a base URL and a possibly relative URL to form an absolute interpretation of the latter.
Definition at line 142 of file urlparse.py.
References dospath.join(), and urlunparse().
def urlparse.urlparse | ( | url, | |
scheme = '' , |
|||
allow_fragments = 1 |
|||
) |
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.
Definition at line 46 of file urlparse.py.
References urlsplit().
def urlparse.urlsplit | ( | url, | |
scheme = '' , |
|||
allow_fragments = 1 |
|||
) |
Parse a URL into 5 components: <scheme>://<netloc>/<path>?<query>#<fragment> Return a 5-tuple: (scheme, netloc, path, 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.
Definition at line 69 of file urlparse.py.
References clear_cache(), and string.lower().
def urlparse.urlunparse | ( | scheme, | |
netloc, | |||
url, | |||
params, | |||
query, | |||
fragment | |||
) |
Put a parsed URL back together again. This may result in a slightly different, but equivalent URL, if the URL that was parsed originally had redundant delimiters, e.g. a ? with an empty query (the draft states that these are equivalent).
Definition at line 121 of file urlparse.py.
References urlunsplit().
def urlparse.urlunsplit | ( | scheme, | |
netloc, | |||
url, | |||
query, | |||
fragment | |||
) |
Definition at line 130 of file urlparse.py.
list __all__ = ["urlparse", "urlunparse", "urljoin"] |
Definition at line 7 of file urlparse.py.
dictionary _parse_cache = {} |
Definition at line 38 of file urlparse.py.
int MAX_CACHE_SIZE = 20 |
Definition at line 37 of file urlparse.py.
list non_hierarchical |
Definition at line 17 of file urlparse.py.
tuple scheme_chars |
Definition at line 32 of file urlparse.py.
string test_input |
Definition at line 209 of file urlparse.py.
list uses_fragment |
Definition at line 27 of file urlparse.py.
list uses_netloc |
Definition at line 13 of file urlparse.py.
list uses_params |
Definition at line 20 of file urlparse.py.
list uses_query |
Definition at line 23 of file urlparse.py.
list uses_relative |
Definition at line 10 of file urlparse.py.