Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    PyParseURI 0.1

    Download button

    No screenshots available
    Downloads: 198  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Glen Zangirolami | More programs
    GPL / FREE
    April 23rd, 2010, 19:14 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    PyParseURI description

    Allows you to parse URIs easily

    ParseURI parses URIs with the same algorithm as the JavaScript version created by Steven Levithan http://blog.stevenlevithan.com/archives/parseuri

    Usage:

    from parse_uri import ParseUri
    p = ParseUri()
    parsed_uri = p.parse('http://www.example.com')
    print parsed_uri.authority
    'www.example.com'
    print parsed_uri.protocol
    'http'


    And so on....

    Sample Output:


    {
      'protocol': 'http',
      'authority': 'www.example.com',
      'anchor': None,
      'relative': '',
      'source': 'http://www.example.com',
      'host': 'www.example.com',
      'userInfo': None,
      'file': '',
      'queryKey': {},
      'directory': None,
      'query': None,
      'path': '',
      'password': None,
      'port': None,
      'user': None
    }



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    URI parser | Python library | Python | URI | parser

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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