Skip to main content
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")
```

Metadata

Release files for pypwned 0.1.2

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.2
File Size Uploaded Provenance Actions
pypwned-0.1.2.tar.gz 3.1 kB Without provenance Details for pypwned-0.1.2.tar.gz

Release files / pypwned-0.1.2.tar.gz

Download URL pypwned-0.1.2.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8be349976f416f7301235bd962fe14acd1237fe843633abd7fb4a7c7b8ef4bd3
BLAKE2b-256 checksum
How to use checksums
93cbdff45cbaee58d63d0cb1c720dacfb6cf21732f95cbc35b365fbc9b8e64d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pypwned 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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