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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tlds-2022042000.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for tlds-2022042000.tar.gz
Algorithm Hash digest
SHA256 f82a233ce822a5121d1f3f67370ba12fba0682040bad987e198e7132d73f2fc2
MD5 054b1c73737cfb66c534926d8140289d
BLAKE2b-256 915ab57681a436b53b8dce98ab220f750b24778a7c41e185034397f77e7b031e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2022042000-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.0 CPython/3.9.12

File hashes

Hashes for tlds-2022042000-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 95911b149efa45622c32d76764b5586d7d20cd9ed23529d1f9891eb0f6c7bd1a
MD5 98c2cd8e6b242737a11faccd1dea31f7
BLAKE2b-256 a5f2d44a06a02b84633484a9591152b145969014caae6be684ccb5d40bf07a83

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