Hyperlink

Latest version: v21.0.0

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

20.0.1

*(August 4, 2020)*

Rerelease to fix packaging metadata around conditional requirements.
See [issue 133](https://github.com/python-hyper/hyperlink/issues/133)
for more details.

20.0.0

*(August 3, 2020)*

* CPython 3.7 and 3.8 and PyPy3 added to test matrix
* Hyperlink now has type hints and they are now exported per
[PEP 561](https://www.python.org/dev/peps/pep-0561/).
* Several bugs related to hidden state were fixed, making it so that all data
on a `URL` object (including `rooted` and `uses_netloc`) is reflected by and
consistent with its textual representation.
This does mean that sometimes these constructor arguments are ignored, if it
would create invalid or unparseable URL text.

19.0.0

*(April 7, 2019)*

A query parameter-centric release, with two enhancements:

* "equals sign" characters in query parameter values are no longer
escaped. (see
[39](https://github.com/python-hyper/hyperlink/pull/39))
* `URL.remove()` now accepts *value* and *limit* parameters, allowing
for removal of specific name-value pairs, as well as limiting the
number of removals.
(See [71](https://github.com/python-hyper/hyperlink/pull/71))

18.0.0

*(February 25, 2018)*

Maybe the biggest release since the original. Big thanks to glyph,
wsanchez, Julian, wbolster, and of course, markrwilliams, for all
the reports, reviews, and other contributions.

* When passed to `str()` URLs now stringify to usable URL
strings. (See 49)
* Switched off of Python's built-in IDNA facilities to using the
[idna](https://pypi.python.org/pypi/idna) package. Not only is it
much more modern, it's also much more strict and correct in its
output. (See 19 and 56)
* Added new `DecodedURL` type with almost-identical API to the normal
`URL`, except that it automatically handles reserved characters in
argument values passed to its methods. (See 6, 11, 44)
* Added top-level `parse()` convenience function that now represents
the main entrypoint to hyperlink.
* Accept dictionaries as ‘query=’ arguments, in addition to
sequences of tuples (see 50)
* `URL.child()` will no longer fail when child gets no segments (42 and 43)
* `URL.normalize()` now supports encoding stray/unmatched `%` characters
in character-encoded fields (userinfo, path, query string, fragment)
(see 61, 62)

17.3.1

*(August 19, 2017)*

* Add `URL.normalize()` method, which applies five normalizations from
RFC 3986 (sections 2.3, 2.1, 3.2.2, 6.2.2.3, 6.2.3). See [the docs](http://hyperlink.readthedocs.io/en/latest/api.htmlhyperlink.URL.normalize)
for more details.
* Enable `URL.click()` to accept a URL object as a target.

17.3.0

*(July 18, 2017)*

Fixed a couple major decoding issues and simplified the URL API.

* limit types accepted by `URL.from_text()` to just text (str on py3,
unicode on py2), see 20
* fix percent decoding issues surrounding multiple calls to
`URL.to_iri()` (see 16)
* remove the `socket`-inspired `family` argument from `URL`'s APIs. It
was never consistently implemented and leaked slightly more problems
than it solved.
* Improve authority parsing (see 26)
* include LICENSE, README, docs, and other resources in the package

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.