Skip to content

exarkun/hyperlink

This branch is up to date with python-hyper/hyperlink:master.

Folders and files

NameName
Last commit message
Last commit date
Jan 14, 2021
Mar 7, 2021
Apr 4, 2021
Mar 26, 2021
Apr 6, 2021
Apr 15, 2020
Jan 14, 2021
Nov 7, 2019
Mar 30, 2020
Aug 4, 2020
Oct 21, 2019
Jan 25, 2020
Mar 14, 2017
May 7, 2017
Jan 8, 2021
Aug 8, 2021

Repository files navigation

Hyperlink

Cool URLs that don't change.

Documentation PyPI Calendar Versioning Python Version Compatibility Code Coverage 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.

Installation

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.

More information

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.

About

πŸ”— Immutable, Pythonic, correct URLs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%