Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.32 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.32 KB

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)