{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"},{"label":"Name Service (DNS)","url":"https://skillfed.io/packages/category/internet-name-service-dns"}],"enrichment":{"capability":"Extracts the public suffix and registrable domain from a domain name using the Public Suffix List, with support for IDNA encoding, wildcard handling, and strict validation.","skillfed_tags":["domain-parsing","psl-lookup","dns-utilities"],"use_cases":["Extract the registrable domain from a URL for web browser cookie scope management.","Identify the effective TLD of a domain to highlight the most important part in a user interface.","Aggregate and sort URLs by website in large-scale domain processing or DNS research.","Validate that a domain includes a recognized public suffix using strict mode.","Handle internationalized domain names (IDN) by toggling IDNA encoding on or off."],"what_it_does":"publicsuffix2 is a Python module that parses domain names against the Public Suffix List to identify the public suffix (effective TLD) and registrable domain. It builds the PSL as a Trie structure for efficient lookup, making it suitable for large-scale processing. The module comes bundled with a copy of the PSL so it works out of the box, though that data is from 2019-12-21.\n\nThe package supports several query modes: extracting the registrable domain (base domain), returning only the effective TLD, handling IDNA-encoded domains, ignoring wildcards for aggregation, and strict validation to reject domains with invalid TLDs. It exposes both convenience functions (get_public_suffix, get_sld, get_tld) and a PublicSuffixList class for finer control. However, the project is abandoned\u2014no releases or commits since late 2021\u2014so the bundled data will not reflect newly added public suffixes.","worth_installing":"Yes, if your domain processing needs are static or historical. The package has no dependencies, low install friction, and a stable API. However, do not use it if you require current public suffix data\u2014the bundled list is from 2019-12-21 and the project is abandoned. Use fetch() to pull the latest list at runtime, or consider an actively maintained alternative if freshness is critical."},"id":"publicsuffix2","links":{"html":"https://skillfed.io/packages/publicsuffix2","md":"https://skillfed.io/packages/publicsuffix2.md","pypi":"https://pypi.org/project/publicsuffix2/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-12-21","license_spdx":null,"license_treatment":"copyleft","name":"publicsuffix2","python_support":"unspecified","summary":"Get a public suffix for a domain name using the Public Suffix List. Forked from and using the same API as the publicsuffix package."},"popularity":{"monthly_downloads":7588428,"position":1718,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.20191221"}
