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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tlds-2021031001.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for tlds-2021031001.tar.gz
Algorithm Hash digest
SHA256 04cf214d1f4feb3e021bafb6ac19c185781457a9a173371fdd375b816c124c89
MD5 b4c72e72a9881e5c10baec56309efbe4
BLAKE2b-256 654f104caf89489c5102829f35b22898d73924cbdbf4f0fd544d0ed405f328af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2021031001-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.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for tlds-2021031001-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f371e4604c2da68d7266cc160e1e80e8e2c18299084d2b603fee5ccd50cea88a
MD5 bcd3cd7f1f9d722637087c7f88a97a71
BLAKE2b-256 f400fa9b9e275a1b958ffd470b930f2c07b23cb103172ba4bba213783ae070d5

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