Comparison
publicsuffixlist vs tldextract
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
publicsuffixlist implement
Maintained. Last release 3 days ago, commits in 3 of the last 26 weeks. Weaker on commit activity and contributor spread.
$
pip install publicsuffixlistAccurately separates a URL's subdomain, domain, and public suffix, using the Public Suffix List (PSL). By default, this includes the public ICANN TLDs and their exceptions. You can optionally support the Public Suffix List's private domains as well.
Maintained. Last release 8 weeks ago, commits in 6 of the last 26 weeks. Weaker on contributor spread.
$
pip install tldextractIn short
- tldextract is the most used: 41.9M downloads a month, 6.1× more than publicsuffixlist.
- Maintenance is comparable: tldextract 64, publicsuffixlist 59 on Pythie’s Index.
- publicsuffixlist is growing fastest: downloads +70% over the last month.
- Safe default for a new project: tldextract.
Side by side
| Metric | publicsuffixlist | tldextract |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 59 | 64 |