Comparison
publicsuffix2 vs publicsuffixlist vs tld
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Get a public suffix for a domain name using the Public Suffix List. Forked from and using the same API as the publicsuffix package.
Likely abandoned. No release or commit for years (last release over 6 years ago).
$
pip install publicsuffix2publicsuffixlist implement
Maintained. Last release 1 day ago, commits in 4 of the last 26 weeks. Weaker on commit activity and contributor spread.
$
pip install publicsuffixlistExtract the top-level domain (TLD) from the URL given.
Maintained. Last release 9 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install tldIn short
- publicsuffix2 looks abandoned: avoid it for new projects.
- tld is the most used: 19.7M downloads a month, 2.7× more than publicsuffixlist.
- publicsuffixlist is better maintained: Pythie’s Index 61 against 40.
- publicsuffixlist is growing fastest: downloads +89% over the last month.
Side by side
| Metric | publicsuffix2 | publicsuffixlist | tld |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 21 | 61 |