Skip to main content
Copyright (c) 2015 Eric Fay @icanhasfay

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Description: PyPwned
======
[![Build Status](https://travis-ci.org/icanhasfay/PyPwned.svg)](https://travis-ci.org/icanhasfay/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")
```




Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Intended Audience :: Healthcare Industry
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Topic :: Security

Metadata

Release files for pypwned 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypwned 0.1.5
File Size Uploaded
pypwned-0.1.5.linux-x86_64.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypwned 0.1.5
File Interpreter ABI Platform
pypwned-0.1.5-py2-none-any.whl Python 2 none any Details

Total release size: 9.8 kB

Release files / pypwned-0.1.5.linux-x86_64.tar.gz

Download URL pypwned-0.1.5.linux-x86_64.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aebd99b01be4d3fcbc83d404cae9a06b8a39c0184062d82b713605048169376f
BLAKE2b-256 checksum
How to use checksums
415a25017c27f498641316621ce86c8649fb4479b6b0eafe8397ef00c40eaac3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pypwned-0.1.5-py2-none-any.whl

Download URL pypwned-0.1.5-py2-none-any.whl
Size 5.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
78e34bcf794708a0b36bfd847fdc6f2c75b87b036c8197f96e398bcbd7d9eef4
BLAKE2b-256 checksum
How to use checksums
6f421df972b1af4c7b7e54cbee38689f644fbb5d383bb92e51dd037c238f9e75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.0.1

1.0.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

This release

0.1.5 This release

2 release files

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page