API-HaveIBeenPwned icon indicating copy to clipboard operation
API-HaveIBeenPwned copied to clipboard

(Unofficial) Python API for HaveIBeenPwned Website

(Unofficial) Python API for HaveIBeenPwned Website.

This code has been developed to check compromised mails and is really easy to use:

from haveibeenpwnedAPI import haveibeenpwnedAPI
res = haveibeenpwnedAPI().is_compromised('[email protected]')
print res  # True

res = haveibeenpwnedAPI().is_compromised('[email protected]')
print res  # False