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

Uploaded Source

Built Distribution

py_emailprotections-0.8.5-py3-none-any.whl (7.7 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