Overview
The client library for Reverse NS API in Python language.
The minimum Python version is 3.6.
Installation
pip install reverse-ns
Examples
Full API documentation available here
Create a new client
from reversens import *
client = Client('Your API key')
Make basic requests
# Get categories for a domain name.
response = client.get('ns.google.com')
for row in response.result:
print("Domain: " + row.name)
Advanced usage
Extra request parameters
# Iterating over all pages
# Specify the target name server.
client.name_server = "ns2.google.com"
# Now you can use the `Client` instance as an iterable object
for page in client:
# Precess the data:
for row in page.result:
print(row.name)
# You can access the last response object via `last_result` property
print(client.last_result.size)
# Please note, that `client.get_raw(...)` method doesn't
# update value of the `last_result` field.
# Also, `iter(client)` will reset the `last_result` value to None
# Getting raw API response in XML
xml = client.get_raw('ns.google.com', output_format=Client.XML_FORMAT)
Using Response model reference
response = client.get('....')
# Getting list of domains
response.result
# Checking the size of the domain list
response.size
# Checking if there is a next page
if response.has_next():
....
# `current_page` shows the `search_from` value
...
r = client.get(ns='ns', search_from='last.domain.of.the.previous.page.com')
print(r.current_page)
# >>'last.domain.of.the.previous.page.com'
Changelog
1.0.0 (2021-07-09)
First release
Metadata
Release files for reverse-ns 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reverse-ns-1.0.0.tar.gz | 9.3 kB | Without provenance | Details for reverse-ns-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reverse_ns-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for reverse_ns-1.0.0-py3-none-any.whl |
Total release size: 19.2 kB
Release files / reverse-ns-1.0.0.tar.gz
| Download URL | reverse-ns-1.0.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26910d381f7c9d935fbfdc8b0133e3763067d0411d949a61dbaf1a9225195ee4
|
|
BLAKE2b-256 checksum How to use checksums |
91065a65e22817e2e774d052677fa3c0082a2e8316aa34cc00c22a2cc3d47510
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.10
|
Release files / reverse_ns-1.0.0-py3-none-any.whl
| Download URL | reverse_ns-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
244be19674a535386fb949ea3849f2ae91881a6d4d974e5db582097b5a8cb9f8
|
|
BLAKE2b-256 checksum How to use checksums |
4af14092ed71619ff5b2ed783e09fa75bbfd0abf03bd636b9d1ce2c0433b9333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.10
|
Security for reverse-ns 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.