sublime-security / emailrep.io-python

Python3 interface for the EmailRep API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python EmailRep

This is a python 3 library and cli module for interacting with the EmailRep service.

Installation

pip3 install emailrep --upgrade or python3 -m pip install --upgrade emailrep

Quick Start (cli)

# setup your api key (optional)
emailrep setup -k <your api key>

# query an email address
emailrep bill@microsoft.com

# report an email address (key required)
emailrep --report foo@bar.com --tags "bec, maldoc" --description "Phishing email targeting CEO"

Quick Start (python library)

from emailrep import EmailRep

# setup your api key (optional)
emailrep = EmailRep('<your api key>')

# query an email address
emailrep.query("bill@microsoft.com")

# report an email address (key required)
emailrep.report("foo@bar.com", ["bec", "maldoc"], "Phishing email targeting CEO")

Full API docs can be found here.

About

Python3 interface for the EmailRep API

License:MIT License


Languages

Language:Python 100.0%