PyPwned
A Python client for the HaveIBeenPwned REST API. https://haveibeenpwned.com/
Installation
pip install pypwned
Requires
- requests
- pyOpenSSL
- ndg-httpsclient
- pyasn1
Usage
Breaches
Getting all breaches for an account
Get all breaches for an account across all domains.
import pypwned
print pypwned.getAllBreachesForAccount(email="foo@bar.com")
Get all breaches for an account across a specific domain.
import pypwned
print pypwned.getAllBreachesForAccount(email="foo@bar.com",domain="adobe.com")
Getting all breached sites in the system
Return the details of each breach in the system.
import pypwned
print pypwned.getAllBreaches()
Return the details of each breach associated with a specific domain.
import pypwned
print pypwned.getAllBreaches(domain="adobe.com")
Getting a single breached site
Return the details of a single breach, by breach name.
import pypwned
print pypwned.getSingleBreachedSite(name="adobe")
Getting all data classes in the system
Return the different types of data classes that are associated with a record in a breach. E.G, Email addresses and passwords
import pypwned
print pypwned.getAllDataClasses()
Pastes
Getting all pastes for an account
Return any pastes that contain the given email address
import pypwned
print pypwned.getAllPastesForAccount(account="foo@bar.com")
Metadata
Release files for pypwned 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pypwned-0.1.7.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypwned-0.1.7-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 7.4 kB
Release files / pypwned-0.1.7.tar.gz
| Download URL | pypwned-0.1.7.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0219fe4282c21168d9aa9d805e92fa6c73c23730d1a25626a3c8076f18284388
|
|
BLAKE2b-256 checksum How to use checksums |
42d082e03e700d7a9d053c5bd3aa4ab46051bc908c999acb10560c413549ee74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.13
|
Release files / pypwned-0.1.7-py2-none-any.whl
| Download URL | pypwned-0.1.7-py2-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
165df59b555ffe0521b31e6dcc76169ef6575e7deac176d3783baed04a07cb27
|
|
BLAKE2b-256 checksum How to use checksums |
9d44a151fb61d64cf4ace38eb77d33100fec792ce8f6e70249255b554eb9da3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.13
|