publicsuffix2


Namepublicsuffix2 JSON
Version 2.20191221 PyPI version JSON
download
home_pagehttps://github.com/nexb/python-publicsuffix2
SummaryGet a public suffix for a domain name using the Public Suffix List. Forked from and using the same API as the publicsuffix package.
upload_time2019-12-21 11:30:44
maintainer
docs_urlNone
authornexB Inc., Tomaz Solc, David Wilson and others.
requires_python
licenseMIT and MPL-2.0
keywords domain public suffix suffix dns tld sld psl idna
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            Public Suffix List module for Python
====================================

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.

This module builds the public suffix list as a Trie structure, making it more efficient
than other string-based modules available for the same purpose. It can be used
effectively in large-scale distributed environments, such as PySpark.

This Python module includes with a copy of the Public Suffix List (PSL) so that it is
usable out of the box. Newer versions try to provide reasonably fresh copies of
this list. It also includes a convenience method to fetch the latest list. The PSL does
change regularly.

The code is a fork of the publicsuffix package and includes the same base API. In
addition, it contains a few variants useful for certain use cases, such as the option to
ignore wildcards or return only the extended TLD (eTLD). You just need to import publicsuffix2 instead.

The public suffix list is now provided in UTF-8 format. To correctly process
IDNA-encoded domains, either the query or the list must be converted. By default, the
module converts the PSL. If your use case includes UTF-8 domains, e.g., '食狮.com.cn',
you'll need to set the IDNA-encoding flag to False on instantiation (see examples below).
Failure to use the correct encoding for your use case can lead to incorrect results for
domains that utilize unicode characters.

The code is MIT-licensed and the publicsuffix data list is MPL-2.0-licensed.



Usage
-----

Install with::

    pip install publicsuffix2

The module provides functions to obtain the base domain, or sld, of an fqdn, as well as one
to get just the public suffix. In addition, the functions a number of boolean parameters that
control how wildcards are handled. In addition to the functions, the module exposes a class that
parses the PSL, and allows for more control.

The module provides two equivalent functions to query a domain name, and return the base domain,
or second-level-doamin; get_public_suffix() and get_sld()::

    >>> from publicsuffix2 import get_public_suffix
    >>> get_public_suffix('www.example.com')
    'example.com'
    >>> get_sld('www.example.com')
    'example.com'
    >>> get_public_suffix('www.example.co.uk')
    'example.co.uk'
    >>> get_public_suffix('www.super.example.co.uk')
    'example.co.uk'
    >>> get_sld("co.uk")  # returns eTLD as is
    'co.uk'

This function loads and caches the public suffix list. To obtain the latest version of the
PSL, use the fetch() function to first download the latest version. Alternatively, you can pass
a custom list.

For more control, there is also a class that parses a Public
Suffix List and allows the same queries on individual domain names::

    >>> from publicsuffix2 import PublicSuffixList
    >>> psl = PublicSuffixList()
    >>> psl.get_public_suffix('www.example.com')
    'example.com'
    >>> psl.get_public_suffix('www.example.co.uk')
    'example.co.uk'
    >>> psl.get_public_suffix('www.super.example.co.uk')
    'example.co.uk'
    >>> psl.get_sld('www.super.example.co.uk')
    'example.co.uk'

Note that the ``host`` part of an URL can contain strings that are
not plain DNS domain names (IP addresses, Punycode-encoded names, name in
combination with a port number or a username, etc.). It is up to the
caller to ensure only domain names are passed to the get_public_suffix()
method.

The get_public_suffix() function and the PublicSuffixList class initializer accept
an optional argument pointing to a public suffix file. This can either be a file
path, an iterable of public suffix lines, or a file-like object pointing to an
opened list::

    >>> from publicsuffix2 import get_public_suffix
    >>> psl_file = 'path to some psl data file'
    >>> get_public_suffix('www.example.com', psl_file)
    'example.com'

Note that when using get_public_suffix() a global cache keeps the latest provided
suffix list data.  This will use the cached latest loaded above::

    >>> get_public_suffix('www.example.co.uk')
    'example.co.uk'

**IDNA-encoding.** The public suffix list is now in UTF-8 format. For those use cases that
include IDNA-encoded domains, the list must be converted. Publicsuffix2 includes idna
encoding as a parameter of the PublicSuffixList initialization and is true by
default. For UTF-8 use cases, set the idna parameter to False::

    >>> from publicsuffix2 import PublicSuffixList
    >>> psl = PublicSuffixList(idna=True)  # on by default
    >>> psl.get_public_suffix('www.google.com')
    'google.com'
    >>> psl = PublicSuffixList(idna=False)  # use UTF-8 encodings
    >>> psl.get_public_suffix('食狮.com.cn')
    '食狮.com.cn'

**Ignore wildcards.** In some use cases, particularly those related to large-scale domain processing,
the user might want to ignore wildcards to create more aggregation. This is possible by setting
the parameter wildcard=False.::

    >>> psl.get_public_suffix('telinet.com.pg', wildcard=False)
    'com.pg'
    >>> psl.get_public_suffix('telinet.com.pg', wildcard=True)
    'telinet.com.pg'

**Require valid eTLDs (strict).** In the publicsuffix2 module, a domain with an invalid TLD will still return
return a base domain, e.g,::

    >>> psl.get_public_suffix('www.mine.local')
    'mine.local'

This is useful for many use cases, while in others, we want to ensure that the domain includes a
valid eTLD. In this case, the boolean parameter strict provides a solution. If this flag is set,
an invalid TLD will return None.::

    >>> psl.get_public_suffix('www.mine.local', strict=True) is None
    True

**Return eTLD only.** The standard use case for publicsuffix2 is to return the registrable,
or base, domain
according to the public suffix list. In some cases, however, we only wish to find the eTLD
itself. This is available via the get_tld() method.::

    >>> psl.get_tld('www.google.com')
    'com'
    >>> psl.get_tld('www.google.co.uk')
    'co.uk'

All of the methods and functions include the wildcard and strict parameters.

For convenience, the public method get_sld() is available. This is identical to the method
get_public_suffix() and is intended to clarify the output for some users.

To **update the bundled suffix list** use the provided setup.py command::

    python setup.py update_psl

The update list will be saved in `src/publicsuffix2/public_suffix_list.dat`
and you can build a new wheel with this bundled data.

Alternatively, there is a fetch() function that will fetch the latest version
of a Public Suffix data file from https://publicsuffix.org/list/public_suffix_list.dat
You can use it this way::

    >>> from publicsuffix2 import get_public_suffix
    >>> from publicsuffix2 import fetch
    >>> psl_file = fetch()
    >>> get_public_suffix('www.example.com', psl_file)
    'example.com'

Note that the once loaded, the data file is cached and therefore fetched only
once.

The extracted public suffix list, that is the tlds and their modifiers, is put into
an instance variable, tlds, which can be accessed as an attribute, tlds.::

    >>> psl = PublicSuffixList()
    >>> psl.tlds[:5]
    ['ac',
    'com.ac',
    'edu.ac',
    'gov.ac',
    'net.ac']

**Using the module in large-scale processing**
If using this library in large-scale pyspark processing, you should instantiate the class as
a global variable, not within a user function. The class methods can then be used within user
functions for distributed processing.

Source
------

Get a local copy of the development repository. The development takes
place in the ``develop`` branch. Stable releases are tagged in the ``master``
branch::

    git clone https://github.com/nexB/python-publicsuffix2.git


History
-------
This code is forked from Tomaž Šolc's fork of David Wilson's code.

Tomaž Šolc's code originally at:

https://www.tablix.org/~avian/git/publicsuffix.git

Copyright (c) 2014 Tomaž Šolc <tomaz.solc@tablix.org>

David Wilson's code was originally at:

http://code.google.com/p/python-public-suffix-list/

Copyright (c) 2009 David Wilson


License
-------

The code is MIT-licensed.
The vendored public suffix list data from Mozilla is under the MPL-2.0.

Copyright (c) 2015 nexB Inc. and others.

Copyright (c) 2014 Tomaž Šolc <tomaz.solc@tablix.org>

Copyright (c) 2009 David Wilson

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Changelog
---------

2019-12-19   publicsuffix2 2.20191219

    * Add new strict mode to get_tld() by @hiratara .
    * Update TLD list
    * Add tests from Mozilla test suite


2019-08-12   publicsuffix2 2.20190812

    * Fix regression in available tlds.
    * Format and streamline code.


2019-08-11   publicsuffix2 2.20190811

    * Update publicsuffix.file to the latest version from Mozilla.


2019-08-08    publicsuffix2 2.20190808

    * Add additional functionality and handles change to PSL format
    * Add attribute to retrieve the PSL as a list


2019-02-05    publicsuffix2 2.201902051213

    * Update publicsuffix.file to the latest version from Mozilla.
    * Restore a fetch() function by popular demand


2018-12-13    publicsuffix2 2.20181213

    * Update publicsuffix.file to the latest version from Mozilla.


2018-10-01    publicsuffix2 2.20180921.2

    * Update publicsuffix.file to the latest version from Mozilla.
    * Breaking API change: publicsuffix module renamed to publicsuffix2


2016-08-18    publicsuffix2 2.20160818

    * Update publicsuffix.file to the latest version from Mozilla.


2016-06-21    publicsuffix2 2.20160621

    * Update publicsuffix.file to the latest version from Mozilla.
    * Adopt new version scheme: major.<publisiffix list date>


2015-10-12    publicsuffix2 2.1.0

    * Merged latest updates from publicsuffix
    * Added new convenience top level get_public_suffix_function caching
      a loaded list if needed.
    * Updated publicsuffix.file to the latest version from Mozilla.
    * Added an update_psl setup command to fetch and vendor the latest list
      Use as: python setup.py update_psl


2015-06-04    publicsuffix2 2.0.0

    * Forked publicsuffix, but kept the same API
    * Updated publicsuffix.file to the latest version from Mozilla.
    * Changed packaging to have the suffix list be package data
      and be wheel friendly.
    * Use spaces indentation, not tabs


2014-01-14    publicsuffix 1.0.5

    * Correctly handle fully qualified domain names (thanks to Matthäus
      Wander).
    * Updated publicsuffix.txt to the latest version from Mozilla.

2013-01-02    publicsuffix 1.0.4

    * Added missing change log.

2013-01-02    publicsuffix 1.0.3

    * Updated publicsuffix.txt to the latest version from Mozilla.
    * Added trove classifiers.
    * Minor update of the README.

2011-10-10    publicsuffix 1.0.2

    * Compatibility with Python 3.x (thanks to Joern
      Koerner) and Python 2.5

2011-09-22    publicsuffix 1.0.1

    * Fixed installation issue under virtualenv (thanks to
      Mark McClain)

2011-07-29    publicsuffix 1.0.0

    * First release



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nexb/python-publicsuffix2",
    "name": "publicsuffix2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "domain,public suffix,suffix,dns,tld,sld,psl,idna",
    "author": "nexB Inc., Tomaz Solc, David Wilson and others.",
    "author_email": "info@nexb.com",
    "download_url": "https://files.pythonhosted.org/packages/5a/04/1759906c4c5b67b2903f546de234a824d4028ef24eb0b1122daa43376c20/publicsuffix2-2.20191221.tar.gz",
    "platform": "",
    "description": "Public Suffix List module for Python\n====================================\n\nThis module allows you to get the public suffix, as well as the registrable domain,\nof a domain name using the Public Suffix List from http://publicsuffix.org\n\nA public suffix is a domain suffix under which you can register domain\nnames, or under which the suffix owner does not control the subdomains.\nSome examples of public suffixes in the former example are \".com\",\n\".co.uk\" and \"pvt.k12.wy.us\"; examples of the latter case are \"github.io\" and\n\"blogspot.com\".  The public suffix is sometimes referred to as the effective\nor extended TLD (eTLD).\nAccurately knowing the public suffix of a domain is useful when handling\nweb browser cookies, highlighting the most important part of a domain name\nin a user interface or sorting URLs by web site. It is also used in a wide range\nof research and applications that leverages Domain Name System (DNS) data.\n\nThis module builds the public suffix list as a Trie structure, making it more efficient\nthan other string-based modules available for the same purpose. It can be used\neffectively in large-scale distributed environments, such as PySpark.\n\nThis Python module includes with a copy of the Public Suffix List (PSL) so that it is\nusable out of the box. Newer versions try to provide reasonably fresh copies of\nthis list. It also includes a convenience method to fetch the latest list. The PSL does\nchange regularly.\n\nThe code is a fork of the publicsuffix package and includes the same base API. In\naddition, it contains a few variants useful for certain use cases, such as the option to\nignore wildcards or return only the extended TLD (eTLD). You just need to import publicsuffix2 instead.\n\nThe public suffix list is now provided in UTF-8 format. To correctly process\nIDNA-encoded domains, either the query or the list must be converted. By default, the\nmodule converts the PSL. If your use case includes UTF-8 domains, e.g., '\u98df\u72ee.com.cn',\nyou'll need to set the IDNA-encoding flag to False on instantiation (see examples below).\nFailure to use the correct encoding for your use case can lead to incorrect results for\ndomains that utilize unicode characters.\n\nThe code is MIT-licensed and the publicsuffix data list is MPL-2.0-licensed.\n\n\n\nUsage\n-----\n\nInstall with::\n\n    pip install publicsuffix2\n\nThe module provides functions to obtain the base domain, or sld, of an fqdn, as well as one\nto get just the public suffix. In addition, the functions a number of boolean parameters that\ncontrol how wildcards are handled. In addition to the functions, the module exposes a class that\nparses the PSL, and allows for more control.\n\nThe module provides two equivalent functions to query a domain name, and return the base domain,\nor second-level-doamin; get_public_suffix() and get_sld()::\n\n    >>> from publicsuffix2 import get_public_suffix\n    >>> get_public_suffix('www.example.com')\n    'example.com'\n    >>> get_sld('www.example.com')\n    'example.com'\n    >>> get_public_suffix('www.example.co.uk')\n    'example.co.uk'\n    >>> get_public_suffix('www.super.example.co.uk')\n    'example.co.uk'\n    >>> get_sld(\"co.uk\")  # returns eTLD as is\n    'co.uk'\n\nThis function loads and caches the public suffix list. To obtain the latest version of the\nPSL, use the fetch() function to first download the latest version. Alternatively, you can pass\na custom list.\n\nFor more control, there is also a class that parses a Public\nSuffix List and allows the same queries on individual domain names::\n\n    >>> from publicsuffix2 import PublicSuffixList\n    >>> psl = PublicSuffixList()\n    >>> psl.get_public_suffix('www.example.com')\n    'example.com'\n    >>> psl.get_public_suffix('www.example.co.uk')\n    'example.co.uk'\n    >>> psl.get_public_suffix('www.super.example.co.uk')\n    'example.co.uk'\n    >>> psl.get_sld('www.super.example.co.uk')\n    'example.co.uk'\n\nNote that the ``host`` part of an URL can contain strings that are\nnot plain DNS domain names (IP addresses, Punycode-encoded names, name in\ncombination with a port number or a username, etc.). It is up to the\ncaller to ensure only domain names are passed to the get_public_suffix()\nmethod.\n\nThe get_public_suffix() function and the PublicSuffixList class initializer accept\nan optional argument pointing to a public suffix file. This can either be a file\npath, an iterable of public suffix lines, or a file-like object pointing to an\nopened list::\n\n    >>> from publicsuffix2 import get_public_suffix\n    >>> psl_file = 'path to some psl data file'\n    >>> get_public_suffix('www.example.com', psl_file)\n    'example.com'\n\nNote that when using get_public_suffix() a global cache keeps the latest provided\nsuffix list data.  This will use the cached latest loaded above::\n\n    >>> get_public_suffix('www.example.co.uk')\n    'example.co.uk'\n\n**IDNA-encoding.** The public suffix list is now in UTF-8 format. For those use cases that\ninclude IDNA-encoded domains, the list must be converted. Publicsuffix2 includes idna\nencoding as a parameter of the PublicSuffixList initialization and is true by\ndefault. For UTF-8 use cases, set the idna parameter to False::\n\n    >>> from publicsuffix2 import PublicSuffixList\n    >>> psl = PublicSuffixList(idna=True)  # on by default\n    >>> psl.get_public_suffix('www.google.com')\n    'google.com'\n    >>> psl = PublicSuffixList(idna=False)  # use UTF-8 encodings\n    >>> psl.get_public_suffix('\u98df\u72ee.com.cn')\n    '\u98df\u72ee.com.cn'\n\n**Ignore wildcards.** In some use cases, particularly those related to large-scale domain processing,\nthe user might want to ignore wildcards to create more aggregation. This is possible by setting\nthe parameter wildcard=False.::\n\n    >>> psl.get_public_suffix('telinet.com.pg', wildcard=False)\n    'com.pg'\n    >>> psl.get_public_suffix('telinet.com.pg', wildcard=True)\n    'telinet.com.pg'\n\n**Require valid eTLDs (strict).** In the publicsuffix2 module, a domain with an invalid TLD will still return\nreturn a base domain, e.g,::\n\n    >>> psl.get_public_suffix('www.mine.local')\n    'mine.local'\n\nThis is useful for many use cases, while in others, we want to ensure that the domain includes a\nvalid eTLD. In this case, the boolean parameter strict provides a solution. If this flag is set,\nan invalid TLD will return None.::\n\n    >>> psl.get_public_suffix('www.mine.local', strict=True) is None\n    True\n\n**Return eTLD only.** The standard use case for publicsuffix2 is to return the registrable,\nor base, domain\naccording to the public suffix list. In some cases, however, we only wish to find the eTLD\nitself. This is available via the get_tld() method.::\n\n    >>> psl.get_tld('www.google.com')\n    'com'\n    >>> psl.get_tld('www.google.co.uk')\n    'co.uk'\n\nAll of the methods and functions include the wildcard and strict parameters.\n\nFor convenience, the public method get_sld() is available. This is identical to the method\nget_public_suffix() and is intended to clarify the output for some users.\n\nTo **update the bundled suffix list** use the provided setup.py command::\n\n    python setup.py update_psl\n\nThe update list will be saved in `src/publicsuffix2/public_suffix_list.dat`\nand you can build a new wheel with this bundled data.\n\nAlternatively, there is a fetch() function that will fetch the latest version\nof a Public Suffix data file from https://publicsuffix.org/list/public_suffix_list.dat\nYou can use it this way::\n\n    >>> from publicsuffix2 import get_public_suffix\n    >>> from publicsuffix2 import fetch\n    >>> psl_file = fetch()\n    >>> get_public_suffix('www.example.com', psl_file)\n    'example.com'\n\nNote that the once loaded, the data file is cached and therefore fetched only\nonce.\n\nThe extracted public suffix list, that is the tlds and their modifiers, is put into\nan instance variable, tlds, which can be accessed as an attribute, tlds.::\n\n    >>> psl = PublicSuffixList()\n    >>> psl.tlds[:5]\n    ['ac',\n    'com.ac',\n    'edu.ac',\n    'gov.ac',\n    'net.ac']\n\n**Using the module in large-scale processing**\nIf using this library in large-scale pyspark processing, you should instantiate the class as\na global variable, not within a user function. The class methods can then be used within user\nfunctions for distributed processing.\n\nSource\n------\n\nGet a local copy of the development repository. The development takes\nplace in the ``develop`` branch. Stable releases are tagged in the ``master``\nbranch::\n\n    git clone https://github.com/nexB/python-publicsuffix2.git\n\n\nHistory\n-------\nThis code is forked from Toma\u017e \u0160olc's fork of David Wilson's code.\n\nToma\u017e \u0160olc's code originally at:\n\nhttps://www.tablix.org/~avian/git/publicsuffix.git\n\nCopyright (c) 2014 Toma\u017e \u0160olc <tomaz.solc@tablix.org>\n\nDavid Wilson's code was originally at:\n\nhttp://code.google.com/p/python-public-suffix-list/\n\nCopyright (c) 2009 David Wilson\n\n\nLicense\n-------\n\nThe code is MIT-licensed.\nThe vendored public suffix list data from Mozilla is under the MPL-2.0.\n\nCopyright (c) 2015 nexB Inc. and others.\n\nCopyright (c) 2014 Toma\u017e \u0160olc <tomaz.solc@tablix.org>\n\nCopyright (c) 2009 David Wilson\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\nand/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n\nChangelog\n---------\n\n2019-12-19   publicsuffix2 2.20191219\n\n    * Add new strict mode to get_tld() by @hiratara .\n    * Update TLD list\n    * Add tests from Mozilla test suite\n\n\n2019-08-12   publicsuffix2 2.20190812\n\n    * Fix regression in available tlds.\n    * Format and streamline code.\n\n\n2019-08-11   publicsuffix2 2.20190811\n\n    * Update publicsuffix.file to the latest version from Mozilla.\n\n\n2019-08-08    publicsuffix2 2.20190808\n\n    * Add additional functionality and handles change to PSL format\n    * Add attribute to retrieve the PSL as a list\n\n\n2019-02-05    publicsuffix2 2.201902051213\n\n    * Update publicsuffix.file to the latest version from Mozilla.\n    * Restore a fetch() function by popular demand\n\n\n2018-12-13    publicsuffix2 2.20181213\n\n    * Update publicsuffix.file to the latest version from Mozilla.\n\n\n2018-10-01    publicsuffix2 2.20180921.2\n\n    * Update publicsuffix.file to the latest version from Mozilla.\n    * Breaking API change: publicsuffix module renamed to publicsuffix2\n\n\n2016-08-18    publicsuffix2 2.20160818\n\n    * Update publicsuffix.file to the latest version from Mozilla.\n\n\n2016-06-21    publicsuffix2 2.20160621\n\n    * Update publicsuffix.file to the latest version from Mozilla.\n    * Adopt new version scheme: major.<publisiffix list date>\n\n\n2015-10-12    publicsuffix2 2.1.0\n\n    * Merged latest updates from publicsuffix\n    * Added new convenience top level get_public_suffix_function caching\n      a loaded list if needed.\n    * Updated publicsuffix.file to the latest version from Mozilla.\n    * Added an update_psl setup command to fetch and vendor the latest list\n      Use as: python setup.py update_psl\n\n\n2015-06-04    publicsuffix2 2.0.0\n\n    * Forked publicsuffix, but kept the same API\n    * Updated publicsuffix.file to the latest version from Mozilla.\n    * Changed packaging to have the suffix list be package data\n      and be wheel friendly.\n    * Use spaces indentation, not tabs\n\n\n2014-01-14    publicsuffix 1.0.5\n\n    * Correctly handle fully qualified domain names (thanks to Matth\u00e4us\n      Wander).\n    * Updated publicsuffix.txt to the latest version from Mozilla.\n\n2013-01-02    publicsuffix 1.0.4\n\n    * Added missing change log.\n\n2013-01-02    publicsuffix 1.0.3\n\n    * Updated publicsuffix.txt to the latest version from Mozilla.\n    * Added trove classifiers.\n    * Minor update of the README.\n\n2011-10-10    publicsuffix 1.0.2\n\n    * Compatibility with Python 3.x (thanks to Joern\n      Koerner) and Python 2.5\n\n2011-09-22    publicsuffix 1.0.1\n\n    * Fixed installation issue under virtualenv (thanks to\n      Mark McClain)\n\n2011-07-29    publicsuffix 1.0.0\n\n    * First release\n\n\n",
    "bugtrack_url": null,
    "license": "MIT and MPL-2.0",
    "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.",
    "version": "2.20191221",
    "split_keywords": [
        "domain",
        "public suffix",
        "suffix",
        "dns",
        "tld",
        "sld",
        "psl",
        "idna"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "eb5b7bd06270ca4c90352541831cea58",
                "sha256": "786b5e36205b88758bd3518725ec8cfe7a8173f5269354641f581c6b80a99893"
            },
            "downloads": -1,
            "filename": "publicsuffix2-2.20191221-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eb5b7bd06270ca4c90352541831cea58",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 89033,
            "upload_time": "2019-12-21T11:30:41",
            "upload_time_iso_8601": "2019-12-21T11:30:41.744145Z",
            "url": "https://files.pythonhosted.org/packages/9d/16/053c2945c5e3aebeefb4ccd5c5e7639e38bc30ad1bdc7ce86c6d01707726/publicsuffix2-2.20191221-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "6983c3a76459487056aa1334d174d6de",
                "sha256": "00f8cc31aa8d0d5592a5ced19cccba7de428ebca985db26ac852d920ddd6fe7b"
            },
            "downloads": -1,
            "filename": "publicsuffix2-2.20191221.tar.gz",
            "has_sig": false,
            "md5_digest": "6983c3a76459487056aa1334d174d6de",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 99592,
            "upload_time": "2019-12-21T11:30:44",
            "upload_time_iso_8601": "2019-12-21T11:30:44.863432Z",
            "url": "https://files.pythonhosted.org/packages/5a/04/1759906c4c5b67b2903f546de234a824d4028ef24eb0b1122daa43376c20/publicsuffix2-2.20191221.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-12-21 11:30:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "nexb",
    "github_project": "python-publicsuffix2",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "publicsuffix2"
}
        
Elapsed time: 0.06288s