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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tlds-2022020100.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for tlds-2022020100.tar.gz
Algorithm Hash digest
SHA256 d7769e9af8d307c5876abe9898ed84b5666efc650cb1f426f96325633d6e7433
MD5 a4e93e5c4a8b7fa373e0b92e7615538b
BLAKE2b-256 23dfbd9d779c357027ae4c21a091197ed2358db5217fe6a46b152b95db7c8ebc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2022020100-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.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for tlds-2022020100-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8676617f7b08b0114838092fe090ea18944e71efa48b6ef17c9719861e96c9e7
MD5 835f6de3bd2e06ab769e3ca1b06f07c8
BLAKE2b-256 1af52a927005b73721e56df908a487b4d85fc6e4b73636487232bd03beb02acf

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