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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tlds-2018121901.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for tlds-2018121901.tar.gz
Algorithm Hash digest
SHA256 441341c86856bdf353f14846fac66438b27df89574dc723b2659b9d2ae7d2c21
MD5 946151121613ea161f47acf4da818306
BLAKE2b-256 f28f2fb01db688178b706ff5f69e536cf0df09b5f7df622377865a83012f8c2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tlds-2018121901-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for tlds-2018121901-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8e6f1b0b7b0e7bbc0de1579f4a677f38332963b365c0a6b7b0719e71a2055eb3
MD5 820c7775c7a6174b0242b68ffe0e1a6c
BLAKE2b-256 401d66c9f9db333c5d05e7e7202c5215896f5a05fed6fbbd0ba83e0ac2973155

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