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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for tlds-2023121200.tar.gz
Algorithm Hash digest
SHA256 f7e2529611c0a7ac02070f2ff7d1bf15247aba8f4087f623cb2db2c347397180
MD5 ae475d9ed8e842d10e9f523489c963d6
BLAKE2b-256 50f96a01448692639deff61fe3fdeacb7d24560fefcb374ddfbed49c34df3e4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2023121200-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for tlds-2023121200-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d4db5386ae841a6a2133a8eb775618a436adb5947aa729b9e22e4490c9e95118
MD5 07efd11addb3c5e52ef125f97e8cef5c
BLAKE2b-256 e75bf075fa6c718fb64fad8b7d45be271073d947f0f6b229af77961a7dfa58d5

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