Skip to main content

Python client library for Reverse IP/DNS API.

Project description

reverse-ip-py license reverse-ip-py release reverse-ip-py build

Overview

The client library for Reverse IP/DNS API in Python language.

The minimum Python version is 3.6.

Installation

pip install reverse-ip

Examples

Full API documentation available here

Create a new client

from reverseip import *

client = Client('Your API key')

Make basic requests

# Get parsed records as a model instance.
result = client.data('8.8.8.8')
print(result.size)
for record in result.result:
    print("Domain: {}, visited: {}".format(
            record.name, record.last_visit))

# Get raw API response
resp_str = client.raw_data('1.1.1.1')

Advanced usage

Pagination

for response in client.iterate_over('1.1.1.1'):
    # Working with the current page
    print(response.size)
    for record in response.result:
        print(record.name)


# Alternative way
try:
    response = client.data('1.1.1.1')
    # processing
    # ...
    while response.has_next:
        response = client.next_page('1.1.1.1', response)
        # processing
        # ...
except ReverseIpApiError as error:
    print(error.message)

Get raw data in XML

raw = client.raw_data('1.1.1.1', output_format='xml')
print(raw)

Changelog

1.1.1 (2022-11-08)

  • Bump urllib3

1.1.0 (2021-04-22)

  • Minor fixes

  • UnparsableApiResponse error class was renamed to UnparsableApiResponseError

1.0.1 (2021-04-21)

  • README update.

1.0.0 (2021-04-20)

  • First release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reverse-ip-1.1.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

reverse_ip-1.1.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file reverse-ip-1.1.1.tar.gz.

File metadata

  • Download URL: reverse-ip-1.1.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.14

File hashes

Hashes for reverse-ip-1.1.1.tar.gz
Algorithm Hash digest
SHA256 24f622ced4340c3b67ec3ac04cf5e2a958aa5ea0bc9f1047dd9990030916d2cf
MD5 9268ab87c484902409e7defff581ab17
BLAKE2b-256 4fdbacd144e3a538d8d80f0989e1915230f23f54a6e7aeea0228785087e3623b

See more details on using hashes here.

File details

Details for the file reverse_ip-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: reverse_ip-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.14

File hashes

Hashes for reverse_ip-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52de597a1c7a47dbb6d9de9a5aa955c60e22e740bb7fb2f2521b881ea5604616
MD5 f50db1de8093b69764cc67b8c09ba037
BLAKE2b-256 083f22f021d87d60f7796cff215ff9d6c4e51751279a4ab1566cfc182500e411

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page