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://travis-ci.org/kichik/tlds.svg?branch=master 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-2020071001.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-2020071001-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tlds-2020071001.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.7

File hashes

Hashes for tlds-2020071001.tar.gz
Algorithm Hash digest
SHA256 98dfdd4e96ba562f7130d45e187038c3ee734b3d3ce165ee7f5ff2a75bf84aa4
MD5 81c58e87ee9bcfca5562f4289b34976b
BLAKE2b-256 f7864874ed795284a3b8c086bd4d7a7837c2c4b66ccb91dbf835826dba45eb56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2020071001-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.7

File hashes

Hashes for tlds-2020071001-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 726170d26d49f59c7f6b67308c5240c695010e6b686d01825786493cf3201e9d
MD5 d2dd9bb1351bea5d0de088a8030a9f56
BLAKE2b-256 7839c639e8c8a627ce9d974dfe101d4d0ab70c3d4f37c82b33cc93a51c2fb024

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