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 details)
Built Distribution
File details
Details for the file whois-history-1.0.0.tar.gz
.
File metadata
- Download URL: whois-history-1.0.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f82bb74d3f65e2bbc1ef6a569720754fcc4f0cd00750260f695bf704d35b1f42 |
|
MD5 | 98ddc474924b5e06b2f58483a4462367 |
|
BLAKE2b-256 | 6b4d7a5c45183135666deb1a9030bc0fe2579d66bfaf04d22ad99645f17441a5 |
File details
Details for the file whois_history-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: whois_history-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fa0790b4fcc979fc7c9e61a3cde5c8879a1e3339939b70ec83c59c5abe09ab2 |
|
MD5 | ead8173b9e24880a31f3dc4f07ed91a7 |
|
BLAKE2b-256 | 0c6f2dee7129ec014fd88e51afd5a439f6648ffab511aa520946fdac40d7a450 |