Repository navigation
v0.1.0
Highlights
Initial release of pwned, a CLI tool and typed Python client for the Have I Been Pwned API v3 and Pwned Passwords k-anonymity API.
Features
- Pwned Passwords (no API key required):
pwned passwordsupporting interactive hidden prompt,--stdin, positional argument,--ntlm(pure-Python RFC 1320 MD4), and--padresponse padding. - Breach lookups (no API key required):
breach,breaches(--domain,--spam-list/--no-spam-list),latest-breach, anddataclasses. - Authenticated lookups (HIBP API key):
account(--no-truncate,--domain,--no-include-unverified),domain,subscribed-domains,pastes,stealer email|website|domain, andsubscription. - Global CLI options:
--api-key,--user-agent,--json(accepted before or after subcommands), and--version, plusHIBP_API_KEY/HIBP_USER_AGENT/.envconfiguration viapydantic-settings. - Python library API: Public exports from
pwned(HIBPClient,PwnedPasswordsClient, typed Pydantic response models, structured error hierarchy includingForbiddenError,UnauthorizedError,NotFoundError,RateLimitError).
Quality
- Strict
mypyacrosssrc/andtests/,rufflint + format (including BanditSrules), GitHub Actions CI, and 130 unit tests with 100% statement coverage.