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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for tlds-2024061300.tar.gz
Algorithm Hash digest
SHA256 610507945a3472fdd42fa4102d3ea3d8d025be4ee79bf61e7c7de907e0d2f3dc
MD5 8b449713b274694e5844ad2b6fd82bee
BLAKE2b-256 6fee0dd3b328391db50f7a6e1fb8688fd39100eaa21cd0ca48b7323799036d39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2024061300-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.0.0 CPython/3.12.4

File hashes

Hashes for tlds-2024061300-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ad46bcb14bd218d219de8f084be001a6b836a4ba12360eaf371ab2eb2d1a2d64
MD5 bc7ba2d467e2f7c13665b20cf730d2de
BLAKE2b-256 94695de97e5354fe21b486db239200c06f436146b1d61802328ffe94b987edba

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