Version 2 (modified by wouter, 3 years ago) ( diff )

--

URI

basic immutable URI class that includes normalization for equality testing. ==install

examples

from uri import URI
u2=URI("ws://localhost:8080/bla/2/3?q=hello#zozo") 
u2.getScheme()
'ws'
>>> u2.getFragment()
'zozo'
u1=URI("http://blabla")
u1a=URI("hTTP://blaBla")
>>> u1==u1a
True
>>> u1==u2
False
Note: See TracWiki for help on using the wiki.