glenbot/pyparseuri
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
ParseURI parses URI 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 }
About
PyParseURI - allows you to parse URIs easily in Python. Original code was written in JavaScript by Steven Levithan.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published