Skip to main content

Python client library for Reverse MX API.

Project description

reverse-mx-py license reverse-mx-py release reverse-mx-py build

Overview

The client library for Reverse MX API in Python language.

The minimum Python version is 3.6.

Installation

pip install reverse-mx

Examples

Full API documentation available here

Create a new client

from reversemx import *

client = Client('Your API key')

Make basic requests

# Get the number of domains.
result = client.data('aspmx.l.google.com')
print(result.size)

# Get raw API response
raw_result = client.raw_data(
    "aspmx.l.google.com",
    response_format=Client.XML_FORMAT
)

Advanced usage

Extra request parameters

result = client.data("aspmx.l.google.com", search_from="9")

resp = client.data("aspmx.l.google.com")
if resp.has_next():
    next_page = client.next_page("aspmx.l.google.com", resp)

for page in client.iterate_pages("aspmx.l.google.com"):
    print(page)

Changelog

1.0.0 (2021-05-25)

  • 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-mx-1.0.0.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

reverse_mx-1.0.0-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

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