{"id":13844550,"url":"https://github.com/icanhasfay/PyPwned","last_synced_at":"2025-07-11T23:33:43.256Z","repository":{"id":26768456,"uuid":"30226460","full_name":"icanhasfay/PyPwned","owner":"icanhasfay","description":"A Python client for the HaveIBeenPwned REST API","archived":false,"fork":false,"pushed_at":"2021-10-21T11:22:31.000Z","size":14,"stargazers_count":45,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-29T23:16:04.112Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icanhasfay.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE.rst","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-03T05:17:48.000Z","updated_at":"2025-04-08T11:09:32.000Z","dependencies_parsed_at":"2022-08-07T12:00:56.009Z","dependency_job_id":null,"html_url":"https://github.com/icanhasfay/PyPwned","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/icanhasfay/PyPwned","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icanhasfay%2FPyPwned","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icanhasfay%2FPyPwned/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icanhasfay%2FPyPwned/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icanhasfay%2FPyPwned/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icanhasfay","download_url":"https://codeload.github.com/icanhasfay/PyPwned/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icanhasfay%2FPyPwned/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264914530,"owners_count":23682843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T17:02:45.008Z","updated_at":"2025-07-11T23:33:43.002Z","avatar_url":"https://github.com/icanhasfay.png","language":"Python","funding_links":[],"categories":["Python (1887)","Python"],"sub_categories":[],"readme":"PyPwned\n======\n[![Build Status](https://travis-ci.org/icanhasfay/PyPwned.svg)](https://travis-ci.org/icanhasfay/PyPwned)\n\nA Python client for the HaveIBeenPwned REST API. https://haveibeenpwned.com/\n\nInstallation\n-----\n```pip install pypwned```\n\nRequires\n-----\n  * requests\n  * pyOpenSSL\n  * ndg-httpsclient\n  * pyasn1\n\nUsage\n-----\n\u003e Note: The below examples assume you have loaded the envrionment variable HIBP_API_KEY with your appropriate Have I Been Pwned API key.\nMore details here, https://haveibeenpwned.com/API/Key.\n\n### Breaches\n\n\n#### Getting all breaches for an account\n\n##### Get all breaches for an account across all domains. \n\n```\nimport pypwned, os\nyour_hibp_key = os.environ.get(\"HIBP_API_KEY\")\npwny = pypwned.pwned(your_hibp_key)\npwny.getAllBreachesForAccount(email=\"foo@bar.com\")\n```\n\n##### Get all breaches for an account across a specific domain. \n\n```\nimport pypwned, os\nyour_hibp_key = os.environ.get(\"HIBP_API_KEY\")\npwny = pypwned.pwned(your_hibp_key)\npwny.getAllBreachesForAccount(email=\"foo@bar.com\",domain=\"adobe.com\")\n```\n\n\n#### Getting all breached sites in the system\n\n##### Return the details of each breach in the system.\n\n```\nimport pypwned, os\nyour_hibp_key = os.environ.get(\"HIBP_API_KEY\")\npwny = pypwned.pwned(your_hibp_key)\npwny.getAllBreaches()\n```\n\n##### Return the details of each breach associated with a specific domain.\n\n```\nimport pypwned, os\nyour_hibp_key = os.environ.get(\"HIBP_API_KEY\")\npwny = pypwned.pwned(your_hibp_key)\npwny.getAllBreaches(domain=\"adobe.com\")\n```\n\n#### Getting a single breached site\n\nReturn the details of a single breach, by breach name.\n\n```\nimport pypwned, os\nyour_hibp_key = os.environ.get(\"HIBP_API_KEY\")\npwny = pypwned.pwned(your_hibp_key)\npwny.getSingleBreachedSite(name=\"adobe\")\n```\n\n#### Getting all data classes in the system\n\nReturn the different types of data classes that are associated with a record in a breach. E.G, Email addresses and passwords\n\n```\nimport pypwned, os\nyour_hibp_key = os.environ.get(\"HIBP_API_KEY\")\npwny = pypwned.pwned(your_hibp_key)\npwny.getAllDataClasses()\n```\n\n### Pastes\n\n\n#### Getting all pastes for an account\n\nReturn any pastes that contain the given email address\n\n```\nimport pypwned, os\nyour_hibp_key = os.environ.get(\"HIBP_API_KEY\")\npwny = pypwned.pwned(your_hibp_key)\npwny.getAllPastesForAccount(account=\"foo@bar.com\")\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficanhasfay%2FPyPwned","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficanhasfay%2FPyPwned","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficanhasfay%2FPyPwned/lists"}