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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tlds-2022070400.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for tlds-2022070400.tar.gz
Algorithm Hash digest
SHA256 09911b3031904a73f58687d4d7d4ad5c864caf62328b5e748a18d229a87c52b2
MD5 a615e738cf1a431edd490576596e1085
BLAKE2b-256 fa24849dfc39bbf244b59aefacb1c7c066f5d6c0b86c3c8a39708c89f0d94adc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2022070400-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.1 CPython/3.9.13

File hashes

Hashes for tlds-2022070400-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cf6cc5227fc39ba5a475bcaac8d8c14a91c017f43886e50983ec91e1047e35c0
MD5 98b3cdd4fd91120830195c4a2b1f2c3c
BLAKE2b-256 8d328cbafcfde2337a7c0358781c3373c6dd9599f330c1de198e3365179fc552

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