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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tlds-2024071000.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tlds-2024071000.tar.gz
Algorithm Hash digest
SHA256 6e7cf05ec2edb543dd8c4ca71857c84ab4937317475be247a65985b2f6f8d7c5
MD5 56cbf01cedd90f3a4466649095cb26d0
BLAKE2b-256 776a05a4e9462c03ac490014e0a72bba10c27d30585893655fa0466b5f62eceb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2024071000-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tlds-2024071000-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 957a015cab9d84826484e714d8e9d727e4c491f86b442aa60fb75a66d0803cff
MD5 5515e8f160cd622ecb93415a520639ff
BLAKE2b-256 777a4b156b9d6f83e96f354db968fda61312ad0ea2df345920ff7ab0c629458d

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