Tldextract

Latest version: v5.1.2

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

Scan your dependencies

Page 1 of 8

5.1.2

* Bugfixes
* Remove `socket.inet_pton`, to fix platform-dependent IP parsing ([318](https://github.com/john-kurkowski/tldextract/issues/318))
* Use non-capturing groups for IPv4 address detection, for a slight speed boost ([323](https://github.com/john-kurkowski/tldextract/issues/323))
* Misc.
* Add CI for PyPy3.9 and PyPy3.10 ([316](https://github.com/john-kurkowski/tldextract/issues/316))
* Add script to automate package release process ([325](https://github.com/john-kurkowski/tldextract/issues/325))
* Update LICENSE copyright years

5.1.1

* Bugfixes
* Fix path join on Windows ([314](https://github.com/john-kurkowski/tldextract/issues/314))
* Support Python 3.12

5.1.0

* Features
* Allow passing in `requests.Session` ([311](https://github.com/john-kurkowski/tldextract/issues/311))
* Add "-j, --json" option to support output in json format ([313](https://github.com/john-kurkowski/tldextract/issues/313))
* Docs
* Improve clarity of absolute path ([312](https://github.com/john-kurkowski/tldextract/issues/312))
* Misc.
* Extract all testing deps from tox.ini to pyproject.toml extras ([310](https://github.com/john-kurkowski/tldextract/issues/310))
* Work around responses type union error, in tests

5.0.1

* Bugfixes
* Indicate MD5 not used in a security context (FIPS compliance) ([309](https://github.com/john-kurkowski/tldextract/issues/309))
* Misc.
* Increase typecheck aggression

5.0.0

* Breaking Changes
* Migrate `ExtractResult` from `namedtuple` to `dataclass` ([306](https://github.com/john-kurkowski/tldextract/issues/306))
* This means no more iterating/indexing/slicing/unpacking the result
object returned by this library. It is no longer a tuple. You must
directly reference the fields you're interested in.

For example, the
following will no longer work.
python
tldextract.extract("example.com")[1:3]
TypeError: 'ExtractResult' object is not subscriptable

Instead, use the following.
python
ext = tldextract.extract("example.com")
(ext.domain, ext.suffix)

* Bugfixes
* Drop support for EOL Python 3.7
* Misc.
* Switch from pycodestyle and Pylint to Ruff ([304](https://github.com/john-kurkowski/tldextract/issues/304))
* Consolidate config files
* Type tests
* Require docstrings in tests
* Remove obsolete tests

4.0.0

* **Breaking** bugfixes
* Always include suffix if private suffix enabled and private suffix exists ([300](https://github.com/john-kurkowski/tldextract/issues/300))
* Add a 4th field `is_private: bool`, to the `ExtractResult`
`namedtuple`, indicating whether the extraction came from the PSL's
private domains or not.
* **This could cause issues when iterating over the tuple and assuming
only 3 fields.**
* Previously, the docs promoted iteration to rejoin parts of the tuple.
This is better achieved by individual access of fields of interest
(e.g. `ExtractResult.subdomain`) or convenience properties (e.g.
`ExtractResult.{fqdn,registered_domain}`).

This is the same content as version 3.6.0, originally released 2023-09-19,
which was yanked.

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.