Skip to main content

A simple python wrapper for the www.haveibeenpwned.com API.

Project description

PyPI version pypi build docs

haveibeenpywned

A simple Python wrapper for the Have I Been Pwned API.

Installation

Use the package manager pip to install haveibeenpywned.

pip install haveibeenpywned

Usage

from haveibeenpywned import Pywned

pywned = Pywned("your-hibp-api-key")
resp = pywned.get_all_breaches_names_for_account("email@address.com")
print(resp)

['8tracks', 'AbuseWithUs', 'AntiPublic', 'BlankMediaGames', 'Dubsmash', 'MySpace'] 

Links

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Authors

See also the list of contributors who participated in this project.

License

Creative Commons Attribution 4.0 International License

In other words, you're welcome to use the public API to build other services, but you must identify Have I Been Pwned as the source of the data . Clear and visible attribution with a link to haveibeenpwned.com should be present anywhere data from the service is used including when searching breaches or pastes and when representing breach descriptions. It doesn't have to be overt, but the interface in which Have I Been Pwned data is represented should clearly attribute the source per the Creative Commons Attribution 4.0 International License.

https://haveibeenpwned.com/API/v3#License

Acknowledgements

Project details


Download files

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

Source Distribution

haveibeenpywned-0.2.86.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

haveibeenpywned-0.2.86-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file haveibeenpywned-0.2.86.tar.gz.

File metadata

  • Download URL: haveibeenpywned-0.2.86.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for haveibeenpywned-0.2.86.tar.gz
Algorithm Hash digest
SHA256 9c6e382e64f3d248074cd64e7f177b7f2721b7961ef0b60aadf7f9d62d69163b
MD5 59947d8693beb5ebc880eda2be4878bc
BLAKE2b-256 33d48e16a6778db545f54ea9112441b414b779b819062e4dd5ed7ec976b62807

See more details on using hashes here.

File details

Details for the file haveibeenpywned-0.2.86-py3-none-any.whl.

File metadata

  • Download URL: haveibeenpywned-0.2.86-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for haveibeenpywned-0.2.86-py3-none-any.whl
Algorithm Hash digest
SHA256 76ef443d4266fbc6e7318f388e920eb8025c172b702bdecd84b4ec5d359e29b9
MD5 2bb0a6de6b413992969077b07eb8cb15
BLAKE2b-256 69dddb3f5d30186db50e7069dcceb9cd9722084cec0198f5425c7ba271b232ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page