psl
psl copied to clipboard
publicsuffixlist for python
I recently pulled in the new release of the library into my project and had some difficulty with API changes to the [`privatesuffix()`](https://github.com/ko-zu/psl/blob/c35b56338aa20014fa5f470b896fecddccf653a9/publicsuffixlist/__init__.py#L228) method in particular. My project's existing code...
### Version affected 0.10.0.20240525 ### Summary DNS encoding for "weird" names is not handled. ### Reproducer ``` from publicsuffixlist import PublicSuffixList psl = PublicSuffixList() print(psl.privatesuffix("www.exa\\.mple.com")) mple.com ``` Result "mple.com" is...
This is an important notice for users. In the upcoming **version 1.0.0, support for Python 2.7 and 3.4 will be discontinued**. Version 0.10.x (or auto-released versions with the .yyyymmdd suffix)...
Hello, any plan on adding type hints so that mypy can use them? Currently, it shows ``` error: Skipping analyzing "publicsuffixlist": module is installed, but missing library stubs or py.typed...