Metadata-Version: 2.1
Name: py-emailprotections
Version: 0.8.5
Summary: Python library to interact with SPF and DMARC
Home-page: https://github.com/poipoii/pyemailprotectionslib
Author: poipoii
Author-email: earth.sama@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: Environment :: Plugins
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
Requires-Dist: dnslib
Requires-Dist: tldextract
Requires-Dist: future

# py-emailprotections
[![Build Status](https://travis-ci.com/poipoii/pyemailprotectionslib.svg?branch=master)](https://travis-ci.com/poipoii/pyemailprotectionslib)
[![Coverage Status](https://coveralls.io/repos/github/poipoii/pyemailprotectionslib/badge.svg?branch=master)](https://coveralls.io/github/poipoii/pyemailprotectionslib?branch=master)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/py-emailprotections.svg)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/py-emailprotections.svg)
[![PyPI version](https://badge.fury.io/py/py-emailprotections.svg)](https://badge.fury.io/py/py-emailprotections)
![PyPI - Downloads](https://img.shields.io/pypi/dm/py-emailprotections.svg)

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

## Installing

``` python
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

