Skip to main content

library to retrieve and validate domain's TLD

Project description

Python

Installation

pip install gladhost-tlds

Functions

  • get_tlds() -> list[str]
  • is_valid_tld(tld:str) -> bool
  • has_domain_valid_tld(domain:str) -> bool

Examples

import tlds

print(tlds.get_tlds())
print(tlds.is_valid_tld("com"))
print(tlds.has_domain_valid_tld("example.com"))

expected results:

  • ['com', 'fr', ...]
  • true
  • true

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gladhost_tlds-1.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

gladhost_tlds-1.0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file gladhost_tlds-1.0.1.tar.gz.

File metadata

  • Download URL: gladhost_tlds-1.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for gladhost_tlds-1.0.1.tar.gz
Algorithm Hash digest
SHA256 29720c9dde85921a4e5e114d38304320905be0d348575762a8e33754bf7b4042
MD5 f44afe81442e7ce7729dd1538123b283
BLAKE2b-256 034a845b2fc8f3bfbb514aecbb575ab124e51d0bd664438511370ec2f6211efd

See more details on using hashes here.

File details

Details for the file gladhost_tlds-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: gladhost_tlds-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for gladhost_tlds-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9fca90248f8286876c4e7961740723e8700a05c33c28877c81979bd48f62b76b
MD5 5464b9a5abaabd15619e3703362278e9
BLAKE2b-256 08697e40f9a9faf31523b2a8df3ba6435ef5e3431bc20f471ceee8b8e69c9a16

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page