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-2023072502.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tlds-2023072502-py2.py3-none-any.whl (8.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tlds-2023072502.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for tlds-2023072502.tar.gz
Algorithm Hash digest
SHA256 ff084754b15d9a6de6237b9539b9d991d5e516dc379a1875703d970ce8a4ef18
MD5 5adaf5f7d4eabf6073800aec8ee2424d
BLAKE2b-256 507230f80881eea9c5f295333d28603f38057f928332d7ac23677c6c6d70c93a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2023072502-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for tlds-2023072502-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5aaf30397ff914bfe63066c66d07adc27eea39bdfa97c89c86caffa7a11b776b
MD5 47ade3eb1bf1382b94ca35d531523ee5
BLAKE2b-256 3a648e7926062d7940f40c8508a10791d77f3d3508b4a2241c41cff684c794e3

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