Tldextract

Latest version: v5.1.3

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

Scan your dependencies

Page 2 of 8

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.

3.5.0

* Features
* Support IPv6 addresses ([298](https://github.com/john-kurkowski/tldextract/issues/298))
* Bugfixes
* Accept only 4 decimal octet IPv4 addresses ([292](https://github.com/john-kurkowski/tldextract/issues/292))
* Support IPv4 addresses with unicode dots ([292](https://github.com/john-kurkowski/tldextract/issues/292))
* Reject IPv4 addresses with trailing whitespaces + non-whitespaces ([293](https://github.com/john-kurkowski/tldextract/issues/293))
* Misc.
* Migrate setup.py to pyproject.toml ([299](https://github.com/john-kurkowski/tldextract/issues/299))

3.4.4

* Bugfixes
* Honor private domains flag on `self`, not only when passed to `__call__` ([289](https://github.com/john-kurkowski/tldextract/issues/289))

3.4.3

* Bugfixes
* Speed up 10-15% over all inputs
* Refactor `suffix_index()` to use a trie ([285](https://github.com/john-kurkowski/tldextract/issues/285))
* Docs
* Adopt PEP257 doc style

3.4.2

* Bugfixes
* Speed up 10-40% on "average" inputs, and even more on pathological inputs, like long subdomains
* Optimize `suffix_index()`: search from right to left ([283](https://github.com/john-kurkowski/tldextract/issues/283))
* Optimize netloc extraction: switch from regex to if/else ([284](https://github.com/john-kurkowski/tldextract/issues/284))

3.4.1

* Bugfixes
* Fix Pyright not finding tldextract public interface ([279](https://github.com/john-kurkowski/tldextract/issues/279))
* Fix various Pyright checks
* Use SPDX license identifier ([280](https://github.com/john-kurkowski/tldextract/issues/280))
* Support Python 3.11
* Docs
* Add FAQ about private domains
* Misc.
* Update bundled snapshot
* Fix lint in newer pylint

Page 2 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.