semvec/pypi-packages huggingface dataset:
gladhost-tlds 1.0.5
library to retrieve and validate domain's TLD
Requires Python: >=3.10
Keywords: tld, tld list, tlds, domain tld

# 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`