Python library to interact with SPF and DMARC
Project description
py-emailprotections
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for py-emailprotections-0.8.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 598350fac2dcc68a8762b48d1eb51ac5ad3976b6e1145f0d7ae3ee2cbc1d225a |
|
MD5 | 9632981f5ac23dc92b983dd1613f270b |
|
BLAKE2b-256 | a9cd5c7831ceea129421a04f2d62c2dd61fd444af06f95c8b748960bb16e8456 |
Close
Hashes for py_emailprotections-0.8.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95788ebd737dc395bbb5199db79be6b186a985dfb40b5de20e5787305a96b92f |
|
MD5 | b937f224f17788561016958612899d36 |
|
BLAKE2b-256 | 043b975c657428ffa3bfc5d0d6e352c1a4f5dc0cc2f6384caeaf142b7c566d06 |