BSD Ports

net/py-publicsuffix2 2.20191221p0 OpenBSD

pure-Python interface to publicsuffix.org

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
net, lang/python

Description

This module allows you to get the public suffix, as well as the registrable domain, of a domain name using the Public Suffix List from http://publicsuffix.org

A public suffix is a domain suffix under which you can register domain names, or under which the suffix owner does not control the subdomains. Some examples of public suffixes in the former example are ".com", ".co.uk" and "pvt.k12.wy.us"; examples of the latter case are "github.io" and "blogspot.com". The public suffix is sometimes referred to as the effective or extended TLD (eTLD). Accurately knowing the public suffix of a domain is useful when handling web browser cookies, highlighting the most important part of a domain name in a user interface or sorting URLs by web site. It is also used in a wide range of research and applications that leverages Domain Name System (DNS) data.

Install

Binary package:

pkg_add py3-publicsuffix2

From the ports tree:

cd /usr/ports/net/py-publicsuffix2 && make install

Dependencies

Build dependencies 6
Run dependencies 2
Required by 1