Skip to main content

Python library to interact with SPF and DMARC

Project description

py-emailprotections

Build Status Coverage Status PyPI - Python Version PyPI - Wheel PyPI version PyPI - Downloads

This is a simple library designed to assist people with finding email protections.

Installing

pip install py-emailprotections

Usage

The simplest use of this library is to find and process SPF and DMARC records for domains. This is easiest with the SpfRecord.from_domain(domain) and DmarcRecord.from_domain(domain) factory methods.

Example:

import emailprotectionslib.spf as spf
import emailprotectionslib.dmarc as dmarc

spf_record = spf.SpfRecord.from_domain("google.com")
dmarc_record = dmarc.DmarcRecord.from_domain("google.com")

print spf_record.record
print dmarc_record.policy

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

py-emailprotections-0.8.5.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

py_emailprotections-0.8.5-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file py-emailprotections-0.8.5.tar.gz.

File metadata

  • Download URL: py-emailprotections-0.8.5.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9

File hashes

Hashes for py-emailprotections-0.8.5.tar.gz
Algorithm Hash digest
SHA256 598350fac2dcc68a8762b48d1eb51ac5ad3976b6e1145f0d7ae3ee2cbc1d225a
MD5 9632981f5ac23dc92b983dd1613f270b
BLAKE2b-256 a9cd5c7831ceea129421a04f2d62c2dd61fd444af06f95c8b748960bb16e8456

See more details on using hashes here.

File details

Details for the file py_emailprotections-0.8.5-py3-none-any.whl.

File metadata

  • Download URL: py_emailprotections-0.8.5-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9

File hashes

Hashes for py_emailprotections-0.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 95788ebd737dc395bbb5199db79be6b186a985dfb40b5de20e5787305a96b92f
MD5 b937f224f17788561016958612899d36
BLAKE2b-256 043b975c657428ffa3bfc5d0d6e352c1a4f5dc0cc2f6384caeaf142b7c566d06

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