Skip to content

v0.1.0

Choose a tag to compare

@domfahey domfahey released this 26 Nov 12:13
· 30 commits to main since this release

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 password supporting interactive hidden prompt, --stdin, positional argument, --ntlm (pure-Python RFC 1320 MD4), and --pad response padding.
  • Breach lookups (no API key required): breach, breaches (--domain, --spam-list / --no-spam-list), latest-breach, and dataclasses.
  • Authenticated lookups (HIBP API key): account (--no-truncate, --domain, --no-include-unverified), domain, subscribed-domains, pastes, stealer email|website|domain, and subscription.
  • Global CLI options: --api-key, --user-agent, --json (accepted before or after subcommands), and --version, plus HIBP_API_KEY / HIBP_USER_AGENT / .env configuration via pydantic-settings.
  • Python library API: Public exports from pwned (HIBPClient, PwnedPasswordsClient, typed Pydantic response models, structured error hierarchy including ForbiddenError, UnauthorizedError, NotFoundError, RateLimitError).

Quality

  • Strict mypy across src/ and tests/, ruff lint + format (including Bandit S rules), GitHub Actions CI, and 130 unit tests with 100% statement coverage.