Skip to content

5.0.0

Compare
Choose a tag to compare
@john-kurkowski john-kurkowski released this 11 Oct 08:31
· 43 commits to master since this release

What's Changed

  • Breaking Changes
    • Migrate ExtractResult from namedtuple to dataclass (#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.

        tldextract.extract("example.com")[1:3]
        # TypeError: 'ExtractResult' object is not subscriptable

        Instead, use the following.

        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)
    • Consolidate config files
    • Type tests
    • Require docstrings in tests
    • Remove obsolete tests

Contributors

Full Changelog: 4.0.0...5.0.0