Python client library for Whois History API.
Project description
The client library for Whois History API in Python language.
The minimum Python version is 3.6.
Installation
pip install whoisapi-history
or
git clone https://github.com/whoisxmlapi/whoishistory-py pip install -e /path_to_sdist/
or
cd /whoishistory-py python setup.py install
or
cd /whoishistory-py easy_install .
Examples
Full API documentation available here
Create a new client
from whoishistory import ApiClient client = ApiClient('Your API key')
Make basic requests
# Check how many records available. It doesn't deduct credits. print(client.preview('whoisxmlapi.com')) # Get actual list of records. print(client.purchase('whoisxmlapi.com'))
Additional options
You can specify search options for these methods.
import datetime d = datetime.date(2017, 1, 1) print(client.preview('whoisxmlapi.com'), sinceDate=d, createdDateFrom=d, createdDateTo=d, updatedDateFrom=d, updatedDateTo=d, expiredDateFrom=d, expiredDateTo=d, )
Development
To install dev requirements, you need to run the following commands:
cd /path_to_sdist/ pip install -e .[dev]
To run unit tests, you may use the following command:
cd /path_to_sdist/ python -m unittest discover . "*_test.py"
or this one
cd /path_to_sdist/ tox
Changelog
1.0.0 (2020-05-01)
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
whois-history-1.0.0.tar.gz
(9.4 kB
view hashes)
Built Distribution
Close
Hashes for whois_history-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fa0790b4fcc979fc7c9e61a3cde5c8879a1e3339939b70ec83c59c5abe09ab2 |
|
MD5 | ead8173b9e24880a31f3dc4f07ed91a7 |
|
BLAKE2b-256 | 0c6f2dee7129ec014fd88e51afd5a439f6648ffab511aa520946fdac40d7a450 |