Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    uricore 0.1.2

    Download button

    No screenshots available
    Downloads: 96  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Matthew Hooker, Jeremy Avnet and Matt Chisholm | More programs
    BSD License / FREE
    May 15th, 2012, 07:59 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    uricore description

    URI Parsing for Humans

    uricore is a Python module that provides URI parsing for humans.

    Example of use:

     >>> from httpcore.uri import URI
     >>> from httpcore.iri import IRI
     >>> iri = IRI(u'http://\N{SNOWMAN}/')
     >>> iri
     IRI(u'http://\u2603/')
     >>> uri = URI(iri)
     >>> uri
     URI('http://xn--n3h/')
     >>> iri.netloc
     u'http://\u2603/'
     >>> iri.hostname
     '\u2603'
     >>> iri.port is None
     True
     >>> iri.path
     u'/'
     >>> hasattr(iri, '__hash__')
     True
     >>> iri.replace(port=8000)
     IRI(u'http://\u2603:8000/')
     >>> iriq = iri.update_query({'foo': u'42'})
     >>> iriq
     IRI(u'http://\u2603/?foo=42')
     >>> iriq.update_query(foo=None)
     IRI(u'http://\u2603/')
     >>> iriq.query
     MultiDict([('foo', '42')])
     >>> URI.from_template('http://{domain}/find{?year*}', domain="example.com",
     ... year=("1965", "2000", "2012"))
     URI('http://example.com/find?year=1965&year=2000&year=2012')



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    URI parsing | Python library | Python | URI | parsing

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM