Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Simple hibp Python Class to use throttle friendly requests

Project description

kisspwn

https://img.shields.io/pypi/v/kisspwn.svg https://img.shields.io/travis/khast3x/kisspwn.svg Documentation Status Updates

Simple haveibeenpwned Python Class to use throttle friendly requests in your code

Features

  • Very Simple
  • Only uses the python requests lib
  • Respects the API throttling time, limiting API calls and helps avoid reaching call limit
  • Includes the following object variables:
    • services : List of services if mail is breached
    • pwned : bool True is pwned, False if not or unconfirmed
    • rate : float Throttling rate in seconds, default is HIBP friendly (1.3s)
    • email : str of target email

Stable release

To install kisspwn, run this command in your terminal:

Usage example below uses python 3.6

$ pip3 install kisspwn
$ pip install kisspwn

This is the preferred method to install kisspwn, as it will always install the most recent stable release.

Usage

To use, simply import the Checkemail class like so.

>>> from kisspwn import checkemail
>>> t = checkemail.Checkemail("test@example.com")
>>> t.pwned
True
>>> t.status()
test@example.com pwned in 54 breaches
['000webhost', '7k7k', 'Adobe', ...]

Demo

https://i.imgur.com/7G8XUQ5.gif

History

0.1.0 (2018-02-09)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
kisspwn-0.2.0-py2.py3-none-any.whl (5.7 kB) Copy SHA256 hash SHA256 Wheel 3.6 Feb 10, 2018
kisspwn-0.2.0.tar.gz (14.7 kB) Copy SHA256 hash SHA256 Source None Feb 10, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page