{ "info": { "author": "Todd Wolfson", "author_email": "todd@twolfson.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "resolve-link\n============\n\n.. image:: https://travis-ci.org/underdogio/resolve-link.png?branch=master\n :target: https://travis-ci.org/underdogio/resolve-link\n :alt: Build Status\n\nResolve complete/partial URLs against a canonical target URL\n\nThis library was built to resolve URLs when candidates submit incompleted URLs (e.g. missing protocol, username only).\n\n.. code:: python\n\n # Username only\n resolve_link('underdogio', 'https://github.com/')\n # https://github.com/underdogio\n\n # Missing protocol\n resolve_link('www.linkedin.com/in/toddwolfson', 'https://www.linkedin.com/')\n # https://www.linkedin.com/in/toddwolfson\n\n # Custom website\n resolve_link('https://underdog.io/', 'https://www.linkedin.com/')\n # https://underdog.io/\n\n # Complete URL\n resolve_link('https://github.com/underdogio', 'https://github.com/')\n # https://github.com/underdogio\n\nThis is a port of our JavaScript library `resolve-link`_.\n\n.. _`resolve-link`: http://github.com/underdogio/resolve-link\n\nGetting Started\n---------------\nInstall the module with: ``pip install resolve_link``\n\n.. code:: python\n\n from resolve_link import resolve_link\n resolve_link('underdogio', 'https://github.com/') # https://github.com/underdogio\n\nDocumentation\n-------------\nWe expose ``resolve_link`` via our package ``resolve_link``.\n\nresolve_link(src_url, target_url)\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nResolve the best variation of ``src_url`` with respect to our ``target_url``\n\n- src_url ``str`` - URL/partial URL to be resolving from\n- target_url ``str`` - Canonical URL to try to match if on the same domain\n\n**Returns:**\n\n- ret_val ``str`` - Completed URL formatted via ``urllib.parse``\n\nContributing\n------------\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Test via ``nosetests``.\n\nLicense\n-------\nCopyright (c) 2015 Underdog.io\n\nLicensed under the MIT license.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/underdogio/python-resolve-link/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/underdogio/python-resolve-link", "keywords": "resolve,link,url,target,canonical", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "resolve_link", "package_url": "https://pypi.org/project/resolve_link/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/resolve_link/", "project_urls": { "Download": "https://github.com/underdogio/python-resolve-link/archive/master.zip", "Homepage": "https://github.com/underdogio/python-resolve-link" }, "release_url": "https://pypi.org/project/resolve_link/1.2.0/", "requires_dist": null, "requires_python": null, "summary": "Resolve complete/partial URLs against a canonical target URL", "version": "1.2.0" }, "last_serial": 1625405, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "3ba456760f67394f849fd74d4492cd77", "sha256": "a1c3f151b818c5d540502025308d8f180f32123443f39685f09cdc5d4f5bf29f" }, "downloads": -1, "filename": "resolve_link-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3ba456760f67394f849fd74d4492cd77", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7511, "upload_time": "2015-03-30T16:38:32", "url": "https://files.pythonhosted.org/packages/8c/e2/1ad03e113b0a2fa53471e8056f38e910dac6325935f2ff7e6a5053f85914/resolve_link-1.0.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "3cc5091fdd2ada7d83a07b70cc78a2fb", "sha256": "41610b0b2c321ac9c76c03d5ce1cec170473f0132601013bc002d5ba8fae600b" }, "downloads": -1, "filename": "resolve_link-1.0.0.zip", "has_sig": false, "md5_digest": "3cc5091fdd2ada7d83a07b70cc78a2fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14778, "upload_time": "2015-03-30T16:38:35", "url": "https://files.pythonhosted.org/packages/ea/0a/dc9c85d876e0df906f25277c1a932004126b79e4ab48a8ac6318274b7355/resolve_link-1.0.0.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "a80bd5602a16e29eae9955e57c886d86", "sha256": "744fc1222f1ca9029a808eb4bf76f24421ce7def41b62ae5b1c09197a182e9ca" }, "downloads": -1, "filename": "resolve_link-1.0.1.tar.gz", "has_sig": false, "md5_digest": "a80bd5602a16e29eae9955e57c886d86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7531, "upload_time": "2015-03-30T16:40:20", "url": "https://files.pythonhosted.org/packages/52/fe/c5bc7e276bc0250a061ad373386c47a633b9b21a70443a7d5bc6c2db643b/resolve_link-1.0.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "7cbe25fee7550febc311fc7a769faac9", "sha256": "5a27cb27b4fba1ed8f34753e1efe7ad28dcdcbdcfd53140f44707c2a6ecd5f42" }, "downloads": -1, "filename": "resolve_link-1.0.1.zip", "has_sig": false, "md5_digest": "7cbe25fee7550febc311fc7a769faac9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14803, "upload_time": "2015-03-30T16:40:23", "url": "https://files.pythonhosted.org/packages/47/3d/cb5ad47e6045e5982adbcf7e93eec4693ceb419efc1e787649a9b85a3720/resolve_link-1.0.1.zip" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "2b493e6e9be50ca27cf3d5c8260671ff", "sha256": "bdfde9270206965041fc4ec9c36963d5175c04f00a7fdeafe5d533cbf48270a3" }, "downloads": -1, "filename": "resolve_link-1.1.0.tar.gz", "has_sig": false, "md5_digest": "2b493e6e9be50ca27cf3d5c8260671ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8435, "upload_time": "2015-04-21T23:02:32", "url": "https://files.pythonhosted.org/packages/61/7c/ce73e7fc4a0b2ad7bc8f2937c31e7449b40b74995da358a09ed72710df7a/resolve_link-1.1.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "2740b3c89995cce2237f527cf9ce46c0", "sha256": "0b2d9d787e4527afa3f033d8ec33fc6d59f0bb7b14e269ea4795365b34ce9b8b" }, "downloads": -1, "filename": "resolve_link-1.1.0.zip", "has_sig": false, "md5_digest": "2740b3c89995cce2237f527cf9ce46c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15878, "upload_time": "2015-04-21T23:02:36", "url": "https://files.pythonhosted.org/packages/af/93/332b3051aff6b7e33a6e9ba978d41391e3fbee1ff43bc44126b8e8c54d24/resolve_link-1.1.0.zip" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "d8dd5f7c07e62120afdc22b0c7f87763", "sha256": "b9df280f0c5833010e4f9009e677bd022a22594693a8abed1e0b0d6e2feaeaad" }, "downloads": -1, "filename": "resolve_link-1.2.0.tar.gz", "has_sig": false, "md5_digest": "d8dd5f7c07e62120afdc22b0c7f87763", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6788, "upload_time": "2015-07-08T22:38:48", "url": "https://files.pythonhosted.org/packages/9a/eb/c51a5dafc85e3e02c0343d2ea07c4874b60e85fe7edd6e9cc6e65c184d66/resolve_link-1.2.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "331826bd176048cbb50c8f1d046286ef", "sha256": "8b611cdd75b39a86aea083e7385b0f84e45927bfd7672314c9c6825c0926f899" }, "downloads": -1, "filename": "resolve_link-1.2.0.zip", "has_sig": false, "md5_digest": "331826bd176048cbb50c8f1d046286ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12689, "upload_time": "2015-07-08T22:38:52", "url": "https://files.pythonhosted.org/packages/7f/e2/017e940dfeb765da3e5ee5253aa7b2091e77c84e03c932fe572ea0d8787f/resolve_link-1.2.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d8dd5f7c07e62120afdc22b0c7f87763", "sha256": "b9df280f0c5833010e4f9009e677bd022a22594693a8abed1e0b0d6e2feaeaad" }, "downloads": -1, "filename": "resolve_link-1.2.0.tar.gz", "has_sig": false, "md5_digest": "d8dd5f7c07e62120afdc22b0c7f87763", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6788, "upload_time": "2015-07-08T22:38:48", "url": "https://files.pythonhosted.org/packages/9a/eb/c51a5dafc85e3e02c0343d2ea07c4874b60e85fe7edd6e9cc6e65c184d66/resolve_link-1.2.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "331826bd176048cbb50c8f1d046286ef", "sha256": "8b611cdd75b39a86aea083e7385b0f84e45927bfd7672314c9c6825c0926f899" }, "downloads": -1, "filename": "resolve_link-1.2.0.zip", "has_sig": false, "md5_digest": "331826bd176048cbb50c8f1d046286ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12689, "upload_time": "2015-07-08T22:38:52", "url": "https://files.pythonhosted.org/packages/7f/e2/017e940dfeb765da3e5ee5253aa7b2091e77c84e03c932fe572ea0d8787f/resolve_link-1.2.0.zip" } ] }