Angelo Gladding
lahacker.net

dlv5vbq7lzlthol5 4b942a3185b37d00

angelo@lahacker.net

South Pasadena, California, United States currently feels like 68.34°F

Home CodeuriAPI

uri

an intelligent Pythonic URI interface

uri = parse("en.wikipedia.org/wiki/Jabberwocky%22) >>> uri.is_secure True >>> uri.scheme 'https' >>> uri.host, uri.port 'en.wipedia.org', 80 >>> uri.subdomain, uri.domain 'en', 'wikipedia.org' >>> uri.path '/wiki/Jabberwocky'

Descendants

Members

Globals

supported_schemes

<class 'dict'>

['__class__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'clear', 'copy', 'fromkeys', 'get', 'items', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values']

Functions

parse(uri, secure=True)

return a URI object for given uri

listing B A

Classes

HTTPURI

web address

dict_items

listing A A

minimized

listing A A

normalized

listing A A

update(self, **args)

listing A A

_normalize(self)

listing B A

_normalize_scheme(self, scheme)

listing A A

_normalize_username(self, username)

listing A A

_normalize_password(self, password)

listing A A

_normalize_host(self, host)

listing A A

_normalize_port(self, port)

listing A A

_normalize_path(self, path)

listing B A

_normalize_query(self, query)

listing A A

_normalize_fragment(self, fragment)

listing A A

__getitem__(self, key)

get a query parameter

listing A A

__setitem__(self, key, value)

set a query parameter

listing A A

HTTPSURI

secure web address

WSURI

WebSocket service endpoint

WSSURI

secure WebSocket service endpoint

DataURI

data objects

normalized

listing A A

JavascriptURI

JavaScript code

normalized

listing A A

MagnetURI

address to a specific piece of content

normalized

listing A A

Metrics

full listing

Lines of Code

Source Docstrings Comments
420 0 17