What's Changed
- Breaking Changes
- Migrate
ExtractResult
fromnamedtuple
todataclass
(#306)- This means no more iterating/indexing/slicing/unpacking the result
object returned by this library. You must directly reference the
fields you're interested in. For example, instead ofyou must usetldextract.extract("example.com")[1:3]
ext = tldextract.extract("example.com") (ext.domain, ext.suffix)
- This means no more iterating/indexing/slicing/unpacking the result
- Migrate
- Bugfixes
- Drop support for EOL Python 3.7
- Misc.
- Switch from pycodestyle and Pylint to Ruff (#304)
- Consolidate config files
- Type tests
- Require docstrings in tests
- Remove obsolete tests
Full Changelog: 4.0.0...5.0.0