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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for tlds-2026072401.tar.gz
Algorithm Hash digest
SHA256 765141e79f0bf85a9edc8d93300106e46d07b105cfe3e916e9abe238c71b34ee
MD5 b96f6bdb4c99798135597e59209a0b70
BLAKE2b-256 6b84b85436040a7215d24aa4ccde38fdb5a9512b07da074073d6dce07d008e13

See more details on using hashes here.

Provenance

The following attestation bundles were made for tlds-2026072401.tar.gz:

Publisher: publish.yml on kichik/tlds

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: tlds-2026072401-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for tlds-2026072401-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7e0b2008d4bb66523587bb2ec5db91c12a88e6c5c0b525ee40ac837faf5e35a0
MD5 a9f60fccc78fff12d21e845acce21deb
BLAKE2b-256 6a8450e99110176b9296e02e4eb6c82c8db46b6f9cfd4bec40b4ee70663e5da4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tlds-2026072401-py2.py3-none-any.whl:

Publisher: publish.yml on kichik/tlds

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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