{"categories":[{"label":"Internet","url":"https://skillfed.io/packages/category/internet"}],"enrichment":{"capability":"Extracts the top-level domain (TLD) and first-level domain (FLD) from URLs using the Public Suffix list, with optional error handling and support for custom TLD sources.","skillfed_tags":["url-parsing","domain-extraction","public-suffix"],"use_cases":["Validate and extract domain components from user-submitted URLs in web applications.","Parse and categorize domains in log analysis or security monitoring tools.","Build domain-based access control or cookie-scoping logic in web frameworks.","Identify first-level domains for analytics or tracking across subdomains.","Validate TLD names against the Public Suffix list in data pipelines.","Implement custom domain parsing rules by subclassing the base parser for specialized use cases."],"what_it_does":"tld is a lightweight URL parser that extracts domain components\u2014top-level domain, first-level domain, subdomain, and full domain\u2014from URLs using the Mozilla Public Suffix list. It handles edge cases like multi-part TLDs (e.g., 'co.uk') and can optionally repair malformed URLs by adding missing protocols. The package offers both string and object-based return modes, validation of TLD names, and extensibility through custom TLD source parsers and lists.\n\nThe library maintains a cached copy of the Public Suffix list and provides a command-line tool to refresh it. It has no external runtime dependencies, making it simple to integrate into URL-parsing pipelines, domain validation workflows, and security tools that need reliable domain decomposition.","worth_installing":"Yes. tld is a stable, actively maintained utility with zero dependencies, broad Python version support, and no known vulnerabilities. Its copyleft license requires review if you distribute proprietary code, but the license terms are well-established. Install it for any project needing reliable URL-to-domain decomposition."},"id":"tld","links":{"html":"https://skillfed.io/packages/tld","md":"https://skillfed.io/packages/tld.md","pypi":"https://pypi.org/project/tld/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-06","license_spdx":"MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later","license_treatment":"copyleft","name":"tld","python_support":"supports_current","summary":"Extract the top-level domain (TLD) from the URL given."},"popularity":{"monthly_downloads":15866317,"position":1171,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.13.2"}
