Tld

Latest version: v0.12.7

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 8

0.12.6

------
2021-06-05

- Move ``Registry`` class from ``tld.registry`` to ``tld.base``.
- Reformat code using ``black``.
- Log information on updated resources of the ``update_tld_names``.

0.12.5

------
2021-01-11

.. note::

Release dedicated to defenders of Armenia and Artsakh (Nagorno Karabakh)
and all the victims of Turkish and Azerbaijani aggression.

- Fixed lower-cased `parsed_url` attributes (`SplitResult`) when getting
tld as object (`as_object=True`).

0.12.4

------
2021-01-02

- Tested against Python 3.9.

0.12.3

------
2020-11-26

- Separate parsers for (a) public and private and (b) public only domains. This
fixes a bug. If you want an old behaviour:

The following code would raise exception in past.

.. code-block:: python

from tld import get_tld

get_tld(
'http://silly.cc.ua',
search_private=False
)

Now it would return `ua`.

.. code-block:: python

get_tld(
'http://silly.cc.ua',
search_private=False
)

If you want old behavior, do as follows:

.. code-block:: python

from tld.utils import MozillaTLDSourceParser

get_tld(
'http://silly.cc.ua',
search_private=False,
parser_class=MozillaTLDSourceParser
)

Same goes for ``get_fld``, ``process_url``, ``parse_tld`` and ``is_tld``
functions.

0.12.2

------
2020-05-20

- Add mozilla license to dist.
- Fix MyPy issues.

0.12.1

------
2020-04-25

.. note::

In commemoration of `Armenian Genocide <https://en.wikipedia.org/wiki/Armenian_Genocide>`_.

- Correctly handling domain names ending with dot(s).

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.