Skip to content

Commit f929d9e

Browse files
committed
version 2.20260522.1
1 parent afa29f0 commit f929d9e

5 files changed

Lines changed: 20 additions & 13 deletions

File tree

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,22 @@
33
- A Python package for retrieving WHOIS information of DOMAIN'S ONLY.
44
- Python >=3.10
55
- requirements:
6-
- whodap>=0.1.16 [![Spectra Assure Community Badge](https://secure.software/pypi/badge/whodap)](https://secure.software/pypi/packages/whodap)
7-
- tld>=0.13.2 [![Spectra Assure Community Badge](https://secure.software/pypi/badge/tld)](https://secure.software/pypi/packages/tld/0.13.2/tld-0.13.2-py2.py3-none-any.whl)
8-
- redis (optional) [![Spectra Assure Community Badge](https://secure.software/pypi/badge/redis)](https://secure.software/pypi/packages/redis)
9-
6+
- whodap>=0.1.16 [![Spectra Assure Community Badge](https://secure.software/pypi/badge/whodap)](https://secure.software/pypi/packages/whodap).
7+
- tld>=0.13.2 [![Spectra Assure Community Badge](https://secure.software/pypi/badge/tld)](https://secure.software/pypi/packages/tld/0.13.2/tld-0.13.2-py2.py3-none-any.whl).
8+
- redis (optional) [![Spectra Assure Community Badge](https://secure.software/pypi/badge/redis)](https://secure.software/pypi/packages/redis).
109
- v1 uses only whois and has been be moved to maintenance only
11-
- v2 will use whodap to first retrieve info with rdap and if no data is available try the classic whois approach
12-
10+
- v2 will use whodap to first retrieve info with rdap, if no data is available try the classic whois approach.
1311
* This package will not support querying ip CIDR ranges or AS information.
1412
* This was a copy of the original DanyCork 'whois'.
1513
* Significantly refactored in 2023 (v1).
1614
* RDAP adding in 2026 (v2).
1715
* The v1 output is still compatible with DanyCork 'whois'.
1816
* the v2 will move away from strict compatibility.
1917

18+
Notes:
19+
20+
- Rdap servers only know about the real IANA domain, the concept of first level domains is not supported when using rdap requests.
21+
2022
---
2123

2224
## Notes
@@ -42,7 +44,7 @@ you should be aware that each query will increase its memory use.
4244

4345
Versions `1.x.x` will keep the output compatible with Danny Cork.
4446

45-
Versions `2.x.x` will add a dependency on whodap and use rdab based whois data before consulting historical whois.
47+
Versions `2.x.x` will add a dependency on whodap and use rdap based whois data before consulting historical whois.
4648

4749
### Releases
4850

@@ -100,3 +102,5 @@ and `make suggest`.
100102
- switch to minimal version 3.10
101103
- update gitgub-action lint (mypy) to use `setup-python@v6` and `checkout@v6`
102104
- start working on v2 with rdap first
105+
106+
## 2.20260522.1

bin/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ VERSION_FILE="work/version"
77
setupVersionNumberToday()
88
{
99
VERSION="1" # we start with version 1, only breaking changes will increment the first digit
10+
VERSION="2" # we start with version 1, only breaking changes will increment the first digit
1011

1112
# while preparing the test.pypi we increment the day sequence if needed,
1213
# only a last version actually later will get published to the actual pypi (non test)

whoisdomain/version.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
"""Make the version available for dynamic versioning."""
2-
3-
VERSION = "1.20260326.1"
1+
'''This module only makes the version available for dynamic versioning'''
2+
VERSION = '2.20260522.1'

whoisdomain/whois_rdap.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import logging
22
from typing import Any
33

4-
import tld
4+
# import tld
55
import whodap
66

7+
# as rdap has no concept of second level domains we will drop the import tld
8+
# and just take the last item of the domain: domain.split('.')[-1]
79
from .data_response import DataResponse
810

911
logger = logging.getLogger(__name__)
@@ -15,7 +17,8 @@ def __init__(self) -> None:
1517

1618
@classmethod
1719
def fld(cls, domain: str) -> str | None:
18-
return tld.get_fld(domain, fix_protocol=True, fail_silently=True)
20+
return str(domain).split(".")[-1]
21+
# return tld.get_fld(domain, fix_protocol=True, fail_silently=True)
1922

2023
def do_one_domain(self, domain: str) -> DataResponse:
2124
try:

work/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.20260326.1
1+
2.20260522.1

0 commit comments

Comments
 (0)