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-2021021900.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-2021021900-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tlds-2021021900.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for tlds-2021021900.tar.gz
Algorithm Hash digest
SHA256 d46685380765d0d6e2798d7188f595913f80371d3b8f7c6e485c345cec53a23d
MD5 b094ffc0594b8b5aff5c1dde23a53c4f
BLAKE2b-256 1d9f9b2ec9a710a4eb94a09af2503dd6cf489593104f70c071e89ac9a854e997

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2021021900-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for tlds-2021021900-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4b43b95997f5a2b6a41361bb2b9e7cf1dfe6d1bec24ab54da868663d8c113bab
MD5 e5b845c702e945f6c5fc5fe916dc75bf
BLAKE2b-256 e6c4afe011e9c3783ca9b4068f159a1dc38b85c2224dfa791dcde3718c5cdb25

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