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
Release files for gladhost-tlds 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gladhost_tlds-1.0.5.tar.gz | 2.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gladhost_tlds-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.3 kB
Release files / gladhost_tlds-1.0.5.tar.gz
| Download URL | gladhost_tlds-1.0.5.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57e0fe9a26f83ff78def93bddb6642a8589a6cb808b8e864d001b8d4d3bb240d
|
|
BLAKE2b-256 checksum How to use checksums |
efa83d8cb37fca4aff26be79dfccdd220ebea725b7fe11e7287178b3a3f07bca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / gladhost_tlds-1.0.5-py3-none-any.whl
| Download URL | gladhost_tlds-1.0.5-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a0d7c9cbba8a50bfd3e129c1c368557ba47ae6b6aa19c2973dbd76451a2a48d
|
|
BLAKE2b-256 checksum How to use checksums |
e6ed0d4d861524e68d6409471f6ebd0e054427fc752a95067c22120923c3ab7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|