Skip to main content
domain-reputation-py license domain-reputation-py release domain-reputation-py build

Overview

The client library for Domain Reputation API in Python language.

The minimum Python version is 3.6.

Installation

pip install domain-reputation

Examples

Full API documentation available here

Create a new client

from domainreputation import *

client = Client('Your API key')

Make basic requests

# Get DNS records for a domain name.
response = client.get('youtube.com')
print(response)

# Get raw API response in XML format
raw_result = client.get_raw('bbc.com',
    output_format=Client.XML_FORMAT)

Advanced usage

Extra request parameters

result = client.get(
    'samsung.com',
    Client.MODE_FULL)

Response model overview

Response:
    - mode: str
    - reputation_score: float
    - test_results: [TestResult]
        - test: str
        - test_code: int
        - warnings: [str]
        - warning_codes: [int]

Sample response

{
'mode': 'full',
'reputation_score': 81.16,
'test_results':
  [
      {
          "test": "Name servers configuration meets best practices",
          "testCode": 76,
          "warnings": [
              "Some name servers are located on a single ASN: \
               ns44.domaincontrol.com - AS44273, ns43.domaincontrol.com - AS44273"
          ],
          "warningCodes": [
              1013
          ]
      },
      {
          "test": "Mail servers configuration check",
          "testCode": 80,
          "warnings": [
              "AAAA records not configured for mail servers",
              "SPF record not configured",
              "DMARC is not configured"
          ],
          "warningCodes": [
              5007,
              5015,
              5016
          ]
      },
      {
          "test": "Malware databases check",
          "testCode": 82,
          "warnings": [
              "Status: dangerous"
          ],
          "warningCodes": [
              4001
          ]
      },
      {
          "test": "SSL Certificate configuration",
          "testCode": 89,
          "warnings": [
              "No SSL certificates found"
          ],
          "warningCodes": [
              6023
          ]
      }
  ]
}

Changelog

1.0.0 (2021-10-25)

  • First release

Metadata

Release files for domain-reputation 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for domain-reputation 1.0.0
File Size Uploaded Provenance
domain-reputation-1.0.0.tar.gz 9.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for domain-reputation 1.0.0
File Interpreter ABI Platform
domain_reputation-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 kB

Release files / domain-reputation-1.0.0.tar.gz

Download URL domain-reputation-1.0.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1d7e3bec24f5e98bd81a2f3da69fa3ad8e74b5a2b85e4d5c8cb6806e885799a1
BLAKE2b-256 checksum
How to use checksums
c91d2d9662382f8619addfcaa139383fcc13a26b9dd1e2412caa0575247aa189
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / domain_reputation-1.0.0-py3-none-any.whl

Download URL domain_reputation-1.0.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f47d473fd50cfa39da93c2b8fbf5aee4c49a2768bfbd56200e4c9022dd54118
BLAKE2b-256 checksum
How to use checksums
c9ad64fc4afcacb74263aafcd68a6550056530f2e4ff9c0092d8b139e712b746
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Security for domain-reputation 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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page