Python client library for Domain Availability API.
Project description
Overview
The client library for Domain Availability API in Python language.
The minimum Python version is 3.6.
Installation
pip install domain-availability
Examples
Full API documentation available here
Create a new client
from domainavailability import *
client = Client('Your API key')
Make basic requests
# Get parsed records as a model instance.
result = client.data('whoisxmlapi.com')
print(result.domain_availability)
if result.is_available() is True:
print('This domain name is available.')
# Get raw API response
raw_result = client.raw_data('whoisxmlapi.com')
Advanced usage
Extra request parameters
result = client.data(
'whoisxmlapi.com',
mode=Client.DNS_AND_WHOIS_MODE,
credits_type=Client.DOMAIN_AVAILABILITY_CREDITS)
raw_result = client.raw_data(
'whoisxmlapi.com',
mode=Client.DNS_ONLY_MODE,
credits_type=Client.WHOIS_CREDITS,
output_format=Client.XML_FORMAT)
Changelog
1.0.0 (2021-04-26)
First release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file domain-availability-1.0.0.tar.gz
.
File metadata
- Download URL: domain-availability-1.0.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9224ccec78ef6005001510e789b0681debf6f1a9b81949468a319ad8a71687e |
|
MD5 | fad8d10793d9a51fe9367ccc80642aa9 |
|
BLAKE2b-256 | 2d62429185e962ba12d148c7a8ab85d0954f3c2b7cd920b074ef11e65ea2af2f |
File details
Details for the file domain_availability-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: domain_availability-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa9112824540dea6151c7de4b0aa52f876fa71bfe911e1db76d16fb49316638 |
|
MD5 | 14ac3b58391b22a52810e6110fd93b1a |
|
BLAKE2b-256 | 96d3aed3771769d57089e0a69174f92aad1ccc171fa87e78ffec06d7c588d2a6 |