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.

Build status PyPI PyPI - Downloads

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-2024092600.tar.gz (7.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-2024092600-py2.py3-none-any.whl (8.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tlds-2024092600.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for tlds-2024092600.tar.gz
Algorithm Hash digest
SHA256 865d010419b8899bbadd076f6409fa205d07e93b54bb6b942efbd2038b97ae6a
MD5 7749c62b28605a835626c2e41c9d0974
BLAKE2b-256 5088769cacc79a9d5fba4a437aa9b94169f09abc3cd5df641b267e5ba13133fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2024092600-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for tlds-2024092600-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 69a96e0c8391d47d20b8505a2a68871f7b1cdae4505d90d1401a23cebdda6d3c
MD5 985680fff6e75ef1a1e32ba771ee0bd4
BLAKE2b-256 ba2679e26b0acb6e4e47f1e27bd7740c381f29226a20523fcdd8b2fe69f73bfc

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