Skip to main content

The tlds module provides a a set of valid TLDs directly taken from IANA. The package is automatically updated daily.

Available on PyPI.

https://github.com/kichik/tlds/workflows/tlds%20build/badge.svg https://badge.fury.io/py/tlds.svg

Usage

>>> from tlds import tld_set
>>> 'com' in tld_set
True
>>> 'foobar' in tld_set
False
>>> 'pizza' in tld_set
True
>>>

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tlds-2021101000.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tlds-2021101000-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tlds-2021101000.tar.gz.

File metadata

  • Download URL: tlds-2021101000.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for tlds-2021101000.tar.gz
Algorithm Hash digest
SHA256 7f358f664344ba2d1ae41893fc83913deb7af0494c353cd0c16dbe3db4efffe6
MD5 29d51fad3f6bb80d166c514c9fca2e82
BLAKE2b-256 275246df465fe16cca549183fe9068599886cc0f3c39fdf77f1fd4b66dd8dcc4

See more details on using hashes here.

File details

Details for the file tlds-2021101000-py2.py3-none-any.whl.

File metadata

  • Download URL: tlds-2021101000-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for tlds-2021101000-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 65cfda90a7ae54cf0e7b32e67f65ce0654f70037e0f6cd3e9b98b67d7e8f75b8
MD5 aace73e2e73890afb3bf021f9821d25c
BLAKE2b-256 84b937197bd56457b6f4b7dc99ad2592e6903c7eb0b3d073349235b5d6e8cadd

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page