Skip to content

Commit

Permalink
Merge pull request #90 from pogzyb/release/v1.1.5
Browse files Browse the repository at this point in the history
Release/v1.1.5
  • Loading branch information
pogzyb committed Sep 20, 2024
2 parents 64b3448 + e86c4a1 commit b9cdc92
Show file tree
Hide file tree
Showing 15 changed files with 1,839 additions and 1,704 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PyPi Publish

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

50 changes: 25 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import asyncwhois
# pick a domain
domain = 'bitcoin.org'
# domain could also be a URL; asyncwhois uses tldextract to parse the URL
domain = 'https://www.google.com?q=asyncwhois'
# domain = 'https://www.google.com?q=asyncwhois'

# basic example
query_string, parsed_dict = asyncwhois.whois(domain)
Expand Down Expand Up @@ -99,9 +99,9 @@ client = asyncwhois.DomainClient(whodap_client=whodap_client)

```

#### Using Proxies
#### Proxies

SOCKS4 and SOCKS5 proxies are supported for WHOIS and RDAP queries.
SOCKS proxies are supported for WHOIS and RDAP queries.

```python
import whodap
Expand Down Expand Up @@ -132,28 +132,28 @@ async with httpx.AsyncClient(transport=transport) as httpx_client:

#### Exported Functions

| Function/Object | Description |
|--------------------|--------------------------------------------------------|
| `DomainClient` | Reusable client for WHOIS or RDAP domain queries |
| `NumberClient` | Reusable client for WHOIS or RDAP ipv4/ipv6 queries |
| `ASNClient` | Reusable client for RDAP asn queries |
| `whois` | WHOIS entrypoint for domain, ipv4, or ipv6 queries |
| `rdap` | RDAP entrypoint for domain, ipv4, ipv6, or asn queries |
| `aio_whois` | async counterpart to `whois` |
| `aio_rdap` | async counterpart to `rdap` |
| `whois_ipv4` | [DEPRECATED] WHOIS lookup for ipv4 addresses |
| `whois_ipv6` | [DEPRECATED] WHOIS lookup for ipv6 addresses |
| `rdap_domain` | [DEPRECATED] RDAP lookup for domain names |
| `rdap_ipv4` | [DEPRECATED] RDAP lookup for ipv4 addresses |
| `rdap_ipv6` | [DEPRECATED] RDAP lookup for ipv6 addresses |
| `rdap_asn` | [DEPRECATED] RDAP lookup for Autonomous System Numbers |
| `aio_whois_domain` | [DEPRECATED] async counterpart to `whois_domain` |
| `aio_whois_ipv4` | [DEPRECATED] async counterpart to `whois_ipv4` |
| `aio_whois_ipv6` | [DEPRECATED] async counterpart to `whois_ipv6` |
| `aio_rdap_domain` | [DEPRECATED] async counterpart to `rdap_domain` |
| `aio_rdap_ipv4` | [DEPRECATED] async counterpart to `rdap_ipv4` |
| `aio_rdap_ipv6` | [DEPRECATED] async counterpart to `rdap_ipv6` |
| `aio_rdap_asn` | [DEPRECATED] async counterpart to `rdap_asn` |
| Function/Object | Description |
|--------------------|---------------------------------------------------------|
| `DomainClient` | Reusable client for WHOIS or RDAP domain queries |
| `NumberClient` | Reusable client for WHOIS or RDAP ipv4/ipv6 queries |
| `ASNClient` | Reusable client for RDAP asn queries |
| `whois` | WHOIS entrypoint for domain, ipv4, or ipv6 queries |
| `rdap` | RDAP entrypoint for domain, ipv4, ipv6, or asn queries |
| `aio_whois` | async counterpart to `whois` |
| `aio_rdap` | async counterpart to `rdap` |
| `whois_ipv4` | [DEPRECATED] WHOIS lookup for ipv4 addresses |
| `whois_ipv6` | [DEPRECATED] WHOIS lookup for ipv6 addresses |
| `rdap_domain` | [DEPRECATED] RDAP lookup for domain names |
| `rdap_ipv4` | [DEPRECATED] RDAP lookup for ipv4 addresses |
| `rdap_ipv6` | [DEPRECATED] RDAP lookup for ipv6 addresses |
| `rdap_asn` | [DEPRECATED] RDAP lookup for Autonomous System Numbers |
| `aio_whois_domain` | [DEPRECATED] async counterpart to `whois_domain` |
| `aio_whois_ipv4` | [DEPRECATED] async counterpart to `whois_ipv4` |
| `aio_whois_ipv6` | [DEPRECATED] async counterpart to `whois_ipv6` |
| `aio_rdap_domain` | [DEPRECATED] async counterpart to `rdap_domain` |
| `aio_rdap_ipv4` | [DEPRECATED] async counterpart to `rdap_ipv4` |
| `aio_rdap_ipv6` | [DEPRECATED] async counterpart to `rdap_ipv6` |
| `aio_rdap_asn` | [DEPRECATED] async counterpart to `rdap_asn` |

#### Contributions

Expand Down
2 changes: 1 addition & 1 deletion asyncwhois/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"GeneralError",
"QueryError",
]
__version__ = "1.1.4"
__version__ = "1.1.5"


def whois(
Expand Down
3 changes: 1 addition & 2 deletions asyncwhois/parse_rir.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ def _init_parser(rir_server: str) -> RIRParser:


class ARINParser(RIRParser): # default
def __init__(self):
...
def __init__(self): ...


class AFRINICParser(RIRParser):
Expand Down
Loading

0 comments on commit b9cdc92

Please sign in to comment.