Name | urlparse3 JSON |
Version |
1.1
JSON |
| download |
home_page | UNKNOWN |
Summary | urlparse3 is simple and powerful url parsing tool |
upload_time | 2016-12-14 14:20:36 |
maintainer | None |
docs_url | None |
author | Alexander Kozin |
requires_python | None |
license | BSD |
keywords |
urlparse
parsing
parse
url
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
*urlparse3*
Urlparse3 is simple and powerful url parsing tool.
Example: ::
import urlparse3
url = 'http://admin:secret@local-domain.com:8000/path?q=123#anchor'
parsed_url = urlparse3.parse_url(url)
print parsed_url.scheme # http
print parsed_url.username # admin
print parsed_url.password # secret
print parsed_url.domain # domain.com
print parsed_url.port # 8000
print parsed_url.path # path
# query is converted into dictionary
print parsed_url.query # {'q': '123'}
print parsed_url.fragment # anchor
# now add new GET parameter
parsed_url.query['name'] = 'alex'
# and get url back to string representation
print parsed_url.geturl() #
http://admin:secret@local-domain.com:8000/path?q=123&name=alex#anchor
**Changes:**
* Version 1.0.4. Fix parsing url path with slashes
* Version 1.0.5. Fix parsing url query with slashes
* Version 1.0.6. Fix urls with port. Add port property to ParsedUrl. Add test for check url with ports.
* Version 1.0.7. Fix urls with dashes. Add test.
* Version 1.0.8. Fix queries with dashes.
* Version 1.0.9. Fix queries with "@" and "+" symbols.
* Version 1.0.10. Fix url fragment regexp.
* Version 1.1. Query parameters retain the order in which they were added.
Raw data
{
"_id": null,
"home_page": "UNKNOWN",
"name": "urlparse3",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "urlparse parsing parse url",
"author": "Alexander Kozin",
"author_email": "alexander@kozin.me",
"download_url": "https://files.pythonhosted.org/packages/10/0e/7645258aada05f6145ff60ee4d117d06400afea1039d3d15a18b71a06176/urlparse3-1.1.tar.gz",
"platform": "UNKNOWN",
"description": "*urlparse3*\n\nUrlparse3 is simple and powerful url parsing tool.\nExample: ::\n\n import urlparse3\n\n\n url = 'http://admin:secret@local-domain.com:8000/path?q=123#anchor'\n parsed_url = urlparse3.parse_url(url)\n print parsed_url.scheme # http\n print parsed_url.username # admin\n print parsed_url.password # secret\n print parsed_url.domain # domain.com\n print parsed_url.port # 8000\n print parsed_url.path # path\n # query is converted into dictionary\n print parsed_url.query # {'q': '123'}\n print parsed_url.fragment # anchor\n\n # now add new GET parameter\n parsed_url.query['name'] = 'alex'\n # and get url back to string representation\n print parsed_url.geturl() # \n http://admin:secret@local-domain.com:8000/path?q=123&name=alex#anchor\n\n\n**Changes:**\n\n* Version 1.0.4. Fix parsing url path with slashes\n* Version 1.0.5. Fix parsing url query with slashes\n* Version 1.0.6. Fix urls with port. Add port property to ParsedUrl. Add test for check url with ports.\n* Version 1.0.7. Fix urls with dashes. Add test.\n* Version 1.0.8. Fix queries with dashes.\n* Version 1.0.9. Fix queries with \"@\" and \"+\" symbols.\n* Version 1.0.10. Fix url fragment regexp.\n* Version 1.1. Query parameters retain the order in which they were added.",
"bugtrack_url": null,
"license": "BSD",
"summary": "urlparse3 is simple and powerful url parsing tool",
"version": "1.1",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "UNKNOWN"
},
"split_keywords": [
"urlparse",
"parsing",
"parse",
"url"
],
"urls": [
{
"comment_text": "built for Linux-3.19.0-51-generic-x86_64-with-glibc2.4",
"digests": {
"blake2b_256": "f834211c6737a02bac2ac203c8c31120ba939cab5fb41f33e304dc6669e2d405",
"md5": "6026368423f8edc31b9c4ad72077e1b6",
"sha256": "a50a8f5bcb3a2b828e4316479db39daac59a9e05c31a57627ab2c90a9c2b3a43"
},
"downloads": -1,
"filename": "urlparse3-1.1.linux-x86_64.tar.gz",
"has_sig": false,
"md5_digest": "6026368423f8edc31b9c4ad72077e1b6",
"packagetype": "bdist_dumb",
"python_version": "any",
"requires_python": null,
"size": 6918,
"upload_time": "2016-12-14T14:00:20",
"upload_time_iso_8601": "2016-12-14T14:00:20.833140Z",
"url": "https://files.pythonhosted.org/packages/f8/34/211c6737a02bac2ac203c8c31120ba939cab5fb41f33e304dc6669e2d405/urlparse3-1.1.linux-x86_64.tar.gz",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "100e7645258aada05f6145ff60ee4d117d06400afea1039d3d15a18b71a06176",
"md5": "852cf05957827a0d504344ad2dd98ee2",
"sha256": "0e2989f3ba54723d9c6607e72a71100b9b6d6efaacb0800480e6b7ef5f5ff5d0"
},
"downloads": -1,
"filename": "urlparse3-1.1.tar.gz",
"has_sig": false,
"md5_digest": "852cf05957827a0d504344ad2dd98ee2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4024,
"upload_time": "2016-12-14T14:20:36",
"upload_time_iso_8601": "2016-12-14T14:20:36.065488Z",
"url": "https://files.pythonhosted.org/packages/10/0e/7645258aada05f6145ff60ee4d117d06400afea1039d3d15a18b71a06176/urlparse3-1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2016-12-14 14:20:36",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "urlparse3"
}