Skip to content

Python library for SPF, DKIM, and DMARC email protections.

License

Notifications You must be signed in to change notification settings

poipoii/pyemailprotectionslib

 
 

Repository files navigation

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)

About

Python library for SPF, DKIM, and DMARC email protections.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%