maxim-yurchuk 9731d8a4bb publishFullContrib: true for ydb | 1 month ago | |
---|---|---|
.. | ||
.dist-info | b8cf9e88f4 add kikimr_configure | 11 months ago |
hyperlink | 9731d8a4bb publishFullContrib: true for ydb | 1 month ago |
patches | 9731d8a4bb publishFullContrib: true for ydb | 1 month ago |
tests | 9731d8a4bb publishFullContrib: true for ydb | 1 month ago |
LICENSE | b8cf9e88f4 add kikimr_configure | 11 months ago |
README.md | b8cf9e88f4 add kikimr_configure | 11 months ago |
ya.make | b8cf9e88f4 add kikimr_configure | 11 months ago |
Cool URLs that don't change.
<img src="https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat" alt="Documentation">
<img src="https://img.shields.io/pypi/v/hyperlink.svg" alt="PyPI">
<img src="https://img.shields.io/badge/calver-YY.MINOR.MICRO-22bfda.svg" alt="Calendar Versioning">
<img src="https://img.shields.io/pypi/pyversions/hyperlink.svg" alt="Python Version Compatibility">
<img src="https://codecov.io/github/python-hyper/hyperlink/coverage.svg?branch=master" alt="Code Coverage">
<img src="https://requires.io/github/python-hyper/hyperlink/requirements.svg?branch=master" alt="Requirements Status">
Hyperlink provides a pure-Python implementation of immutable URLs. Based on RFC 3986 and 3987, the Hyperlink URL makes working with both URIs and IRIs easy.
Hyperlink is tested against Python 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, and PyPy.
Full documentation is available on Read the Docs.
Hyperlink is a pure-Python package and requires nothing but Python. The easiest way to install is with pip:
pip install hyperlink
Then, hyperlink away!
from hyperlink import URL
url = URL.from_text(u'http://github.com/python-hyper/hyperlink?utm_source=README')
utm_source = url.get(u'utm_source')
better_url = url.replace(scheme=u'https', port=443)
org_url = better_url.click(u'.')
See the full API docs on Read the Docs.
Hyperlink would not have been possible without the help of Glyph Lefkowitz and many other community members, especially considering that it started as an extract from the Twisted networking library. Thanks to them, Hyperlink's URL has been production-grade for well over a decade.
Still, should you encounter any issues, do file an issue, or submit a pull request.