2 ms·
Yes, it is a hack. I maintain the publicsuffix Python library (https://pypi.python.org/pypi/publicsuffix/ https://pypi.python.org/pypi/publicsuffix/). I had ma
by avian 10y ago
Yes, it is a hack. I maintain the publicsuffix Python library (https://pypi.python.org/pypi/publicsuffix/ https://pypi.python.org/pypi/publicsuffix/).
I had many long discussions with package and application maintainers on the topic of how to best provide data to the library. Arguably you need an up-to-date version of the list if you want to access the web securely today.
You can bundle a static version with the library. That's nice for developers, and users because it just works after "pip install", but will get out of date because library won't update as often as the list changes. Some distros like Debian provide their own mechanism for updating the list.
You can also download behind the scenes and cache. This way data is always up to date, but users don't like that apps call some web service on start-up and some people want to use the library off-line.
If you look at different libraries and apps, each one does it differently. Getting it right is hard. Things would be so much easier if this information would come decentralized from the DNS system.