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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file reverse-mx-1.0.0.tar.gz.

File metadata

  • Download URL: reverse-mx-1.0.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using 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.5

File hashes

Hashes for reverse-mx-1.0.0.tar.gz
Algorithm Hash digest
SHA256 31e4bb9cb028ede6ad4d50b680373f5c526966156384a95728ef7149a121db3a
MD5 4372767d88d1610ffd7c282f8ec27a0a
BLAKE2b-256 b1b06a2b141abc0c8a1b0c958ea1b04b06c3dc4a327f071bd0d874ee081cd6cc

See more details on using hashes here.

File details

Details for the file reverse_mx-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: reverse_mx-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using 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.5

File hashes

Hashes for reverse_mx-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a082a7c6ef8f484e4256be7ef0a506dff8cf4a61a96fe6814d9003037b62f2dd
MD5 ec557a01aeb71d6243bbe6b9e1309a61
BLAKE2b-256 12e0919e6a568f97f8aab8e8a99f7939abb7ac95f22565ed59858c8aa1d8f6d2

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