Skip to content

Commit b9cdc92

Browse files
authored
Merge pull request #90 from pogzyb/release/v1.1.5
Release/v1.1.5
2 parents 64b3448 + e86c4a1 commit b9cdc92

15 files changed

+1839
-1704
lines changed

.github/workflows/publish-pypi.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PyPi Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.x'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install build
20+
- name: Build package
21+
run: python -m build
22+
- name: Publish package
23+
uses: pypa/gh-action-pypi-publish@release/v1
24+
with:
25+
user: __token__
26+
password: ${{ secrets.PYPI_API_TOKEN }}

MANIFEST.in

-4
This file was deleted.

README.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import asyncwhois
1818
# pick a domain
1919
domain = 'bitcoin.org'
2020
# domain could also be a URL; asyncwhois uses tldextract to parse the URL
21-
domain = 'https://www.google.com?q=asyncwhois'
21+
# domain = 'https://www.google.com?q=asyncwhois'
2222

2323
# basic example
2424
query_string, parsed_dict = asyncwhois.whois(domain)
@@ -99,9 +99,9 @@ client = asyncwhois.DomainClient(whodap_client=whodap_client)
9999

100100
```
101101

102-
#### Using Proxies
102+
#### Proxies
103103

104-
SOCKS4 and SOCKS5 proxies are supported for WHOIS and RDAP queries.
104+
SOCKS proxies are supported for WHOIS and RDAP queries.
105105

106106
```python
107107
import whodap
@@ -132,28 +132,28 @@ async with httpx.AsyncClient(transport=transport) as httpx_client:
132132

133133
#### Exported Functions
134134

135-
| Function/Object | Description |
136-
|--------------------|--------------------------------------------------------|
137-
| `DomainClient` | Reusable client for WHOIS or RDAP domain queries |
138-
| `NumberClient` | Reusable client for WHOIS or RDAP ipv4/ipv6 queries |
139-
| `ASNClient` | Reusable client for RDAP asn queries |
140-
| `whois` | WHOIS entrypoint for domain, ipv4, or ipv6 queries |
141-
| `rdap` | RDAP entrypoint for domain, ipv4, ipv6, or asn queries |
142-
| `aio_whois` | async counterpart to `whois` |
143-
| `aio_rdap` | async counterpart to `rdap` |
144-
| `whois_ipv4` | [DEPRECATED] WHOIS lookup for ipv4 addresses |
145-
| `whois_ipv6` | [DEPRECATED] WHOIS lookup for ipv6 addresses |
146-
| `rdap_domain` | [DEPRECATED] RDAP lookup for domain names |
147-
| `rdap_ipv4` | [DEPRECATED] RDAP lookup for ipv4 addresses |
148-
| `rdap_ipv6` | [DEPRECATED] RDAP lookup for ipv6 addresses |
149-
| `rdap_asn` | [DEPRECATED] RDAP lookup for Autonomous System Numbers |
150-
| `aio_whois_domain` | [DEPRECATED] async counterpart to `whois_domain` |
151-
| `aio_whois_ipv4` | [DEPRECATED] async counterpart to `whois_ipv4` |
152-
| `aio_whois_ipv6` | [DEPRECATED] async counterpart to `whois_ipv6` |
153-
| `aio_rdap_domain` | [DEPRECATED] async counterpart to `rdap_domain` |
154-
| `aio_rdap_ipv4` | [DEPRECATED] async counterpart to `rdap_ipv4` |
155-
| `aio_rdap_ipv6` | [DEPRECATED] async counterpart to `rdap_ipv6` |
156-
| `aio_rdap_asn` | [DEPRECATED] async counterpart to `rdap_asn` |
135+
| Function/Object | Description |
136+
|--------------------|---------------------------------------------------------|
137+
| `DomainClient` | Reusable client for WHOIS or RDAP domain queries |
138+
| `NumberClient` | Reusable client for WHOIS or RDAP ipv4/ipv6 queries |
139+
| `ASNClient` | Reusable client for RDAP asn queries |
140+
| `whois` | WHOIS entrypoint for domain, ipv4, or ipv6 queries |
141+
| `rdap` | RDAP entrypoint for domain, ipv4, ipv6, or asn queries |
142+
| `aio_whois` | async counterpart to `whois` |
143+
| `aio_rdap` | async counterpart to `rdap` |
144+
| `whois_ipv4` | [DEPRECATED] WHOIS lookup for ipv4 addresses |
145+
| `whois_ipv6` | [DEPRECATED] WHOIS lookup for ipv6 addresses |
146+
| `rdap_domain` | [DEPRECATED] RDAP lookup for domain names |
147+
| `rdap_ipv4` | [DEPRECATED] RDAP lookup for ipv4 addresses |
148+
| `rdap_ipv6` | [DEPRECATED] RDAP lookup for ipv6 addresses |
149+
| `rdap_asn` | [DEPRECATED] RDAP lookup for Autonomous System Numbers |
150+
| `aio_whois_domain` | [DEPRECATED] async counterpart to `whois_domain` |
151+
| `aio_whois_ipv4` | [DEPRECATED] async counterpart to `whois_ipv4` |
152+
| `aio_whois_ipv6` | [DEPRECATED] async counterpart to `whois_ipv6` |
153+
| `aio_rdap_domain` | [DEPRECATED] async counterpart to `rdap_domain` |
154+
| `aio_rdap_ipv4` | [DEPRECATED] async counterpart to `rdap_ipv4` |
155+
| `aio_rdap_ipv6` | [DEPRECATED] async counterpart to `rdap_ipv6` |
156+
| `aio_rdap_asn` | [DEPRECATED] async counterpart to `rdap_asn` |
157157

158158
#### Contributions
159159

asyncwhois/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"GeneralError",
4343
"QueryError",
4444
]
45-
__version__ = "1.1.4"
45+
__version__ = "1.1.5"
4646

4747

4848
def whois(

asyncwhois/parse_rir.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ def _init_parser(rir_server: str) -> RIRParser:
8787

8888

8989
class ARINParser(RIRParser): # default
90-
def __init__(self):
91-
...
90+
def __init__(self): ...
9291

9392

9493
class AFRINICParser(RIRParser):

0 commit comments

Comments
 (0)