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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for tlds-2024032800.tar.gz
Algorithm Hash digest
SHA256 6214a5de99371a61138a81d324f3d8c76149f162d96143be49c7465a474204a3
MD5 e756d72ddd09d1083831493c53160178
BLAKE2b-256 36bf27cd855c6fe497db47f5706432322c905728569c5396a2baf99444c7bc5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2024032800-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.0.0 CPython/3.12.2

File hashes

Hashes for tlds-2024032800-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 05767580a6483eef1aa09a7364e4912620fc343663e04e003c3bdb0ea01ed35d
MD5 927b632752930b2b4ff3cd53347a4bc1
BLAKE2b-256 21d56c75f94477d801e1be417fde8831fd52788a1135e86661090b3017485109

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