Python client library for Reverse DNS API.
Project description
Overview
The client library for Reverse DNS API in Python language.
The minimum Python version is 3.6.
Installation
pip install reverse-dns
Examples
Full API documentation available here
Create a new client
from reversedns import *
client = Client('Your API key')
Make basic requests
terms = [{
'field': 'domain',
'term': 'foo*'
}]
# Get DNS records for matching domains (up to 1000)
result = client.get(terms=terms, record_type=Client.TXT)
# Total count
print(result.size)
Extras
terms = [
{
'field': 'domain',
'term': 'blog*'
},
{
'field': 'value',
'term': 'foo*',
'exclude': True
}
]
# Exclude specified records for matching domains and get raw XML response
raw_result = client.get_raw(
terms=terms,
record_type=Client.CNAME,
limit=2,
output_format=Client.XML_FORMAT)
Response model overview
Response:
- result: [Record]
- value: str
- name: str
- first_seen: str
- last_vist: str
- size: int
Changelog
1.0.0 (2021-12-09)
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
reverse-dns-1.0.0.tar.gz
(9.4 kB
view details)
Built Distribution
File details
Details for the file reverse-dns-1.0.0.tar.gz
.
File metadata
- Download URL: reverse-dns-1.0.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bec3ee4492b0e2757c0a05b876be250f76b18ce356065259df7eeed7f306006c |
|
MD5 | 94dce233ccd4e7942a2f96af05bfcac4 |
|
BLAKE2b-256 | b549a9d23a65c351fb59c34ca09d263e2606850330450f70032482a7385ea535 |
File details
Details for the file reverse_dns-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: reverse_dns-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e35b5be3e75a65bc796eb53cc0975beb747ebb9c3f564f153f9e4de4b8b23353 |
|
MD5 | 69aab3dbea95c77ce1623f70a6c06a57 |
|
BLAKE2b-256 | 4b0629adb4f559ff49b0b6bfff861e193dcaeaed2b10f091ed93053c2221eccd |