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-2021073000.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tlds-2021073000.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for tlds-2021073000.tar.gz
Algorithm Hash digest
SHA256 49ee2df819a0298e7d90e003c665b90f5595a5fea41e0c1a304e5fc9541efbb2
MD5 4998ce58cfe81b62881d1ab6796180fe
BLAKE2b-256 36515d06913ccda55d4452105b7064e0816651e692bfec67c5af77f5dd46a55a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2021073000-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.6.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for tlds-2021073000-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 39ebbb8a407efaee532c26ff86f8187c3f0fbe9a3e4633703d9f18a7f2c8e506
MD5 500d06d4f96991c9a2b113a4b474f18c
BLAKE2b-256 19ae9d3baf3e02d5bccc50c0c9e523821a4ef1f0d20ed46cd8a670408184d87e

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