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) -> boolhas_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', ...]truetrue
Project details
Release history Release notifications | RSS feed
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.5.tar.gz
(2.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gladhost_tlds-1.0.5.tar.gz.
File metadata
- Download URL: gladhost_tlds-1.0.5.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57e0fe9a26f83ff78def93bddb6642a8589a6cb808b8e864d001b8d4d3bb240d
|
|
| MD5 |
bac87112b47c714798fe9bd127f9cbab
|
|
| BLAKE2b-256 |
efa83d8cb37fca4aff26be79dfccdd220ebea725b7fe11e7287178b3a3f07bca
|
File details
Details for the file gladhost_tlds-1.0.5-py3-none-any.whl.
File metadata
- Download URL: gladhost_tlds-1.0.5-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a0d7c9cbba8a50bfd3e129c1c368557ba47ae6b6aa19c2973dbd76451a2a48d
|
|
| MD5 |
5694688a4ec1751c0a17fb96afcf6b42
|
|
| BLAKE2b-256 |
e6ed0d4d861524e68d6409471f6ebd0e054427fc752a95067c22120923c3ab7e
|