Python client library for Whois API.
Project description
Overview
The client library for Whois API in Python language.
The minimum Python version is 3.6.
Installation
pip install whois-api
Examples
Full API documentation available here
Create a new client
from whoisapi import * client = Client(api_key='Your API key')
Make basic requests
# Get parsed whois record as a model instance. whois = client.data('whoisxmlapi.com') # Get particular field of the whois record print(whois.created_date_raw) # Get raw API response resp_str = client.raw_data('whoisxmlapi.com')
Additional options
You can specify a custom parameters for particular request
params = RequestParameters(ignore_raw_texts=1, da=2) whois = client.data('whoisxmlapi.com', params) print(whois.domain_availability_raw) # Also you can modify default values of parameters: client.parameters.output_format = 'xml' print(client.raw_data('whoisxmlapi.com'))
Changelog
1.1.1 (2021-11-19)
Added postal address error handling
1.1.0 (2021-04-21)
Minor fixes
Error class ‘UnparableApiResponse’ was renamed to ‘UnparsableApiResponseError’
1.0.0 (2021-04-12)
First release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
whois-api-1.1.1.tar.gz
(10.8 kB
view details)
Built Distribution
whois_api-1.1.1-py3-none-any.whl
(11.7 kB
view details)
File details
Details for the file whois-api-1.1.1.tar.gz
.
File metadata
- Download URL: whois-api-1.1.1.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b9226fad84352b26c9835e24aaa4b73446fcc696cdd0ba96e4044fd166244c2 |
|
MD5 | 422c865473bc6685240d7157a3823ffb |
|
BLAKE2b-256 | dadebb332755ffa793864b4f7547abdedcf29076aa89d77232c73fd99ced8a33 |
File details
Details for the file whois_api-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: whois_api-1.1.1-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ac8dbd2d53b42e98da642ed654251c355a00570c3b698cb0ec8dd4864a89723 |
|
MD5 | 07b5062b085e230e0df019797f655975 |
|
BLAKE2b-256 | 60bdc7a460cbd006c242f5d2d8c3fb25093bf337bfed501a498a29fc239fe6b6 |