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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tlds-2023050900.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for tlds-2023050900.tar.gz
Algorithm Hash digest
SHA256 3685469fd5d93f5fa3c82a5b0663ca332b7693ff79dd6b52757f42166d6cf46f
MD5 6f59fe1332ff00e6c1778064acdbac0f
BLAKE2b-256 078286b73c24d5a5daeebe681a60204cd32b663ab3771af02d2faf326d0c81ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2023050900-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for tlds-2023050900-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2713052a8d1a14d4de3cde30cb9ccb06f6b051fa4ce2b4f7871d2277dbd1ac37
MD5 b7b30246fd888192d96fadafbfe59c4f
BLAKE2b-256 935eb514bb2a292ac5da1453305b2aaa02c2c344b29d7dba54c25fdf2c450007

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