Skip to content

v0.2.0

Choose a tag to compare

@gregsvo gregsvo released this 06 Mar 21:28
· 10 commits to main since this release

[0.2.0] - 2026-03-06

Added

  • User-Agent header sent on every request in the format Postmark.PY - {version} (Python/{major}.{minor}.{micro}).
  • X-Request-Id from Postmark responses is now stored as request_id on all PostmarkAPIException subclasses and included in the exception __str__ output when present — enabling direct support escalations.
  • request_id included in structured log records for both successful requests and API errors.
  • Structured extra={} fields on all log calls (method, endpoint, status_code, duration_ms, error_code, postmark_message, request_id) for compatibility with Datadog, Splunk, and other log aggregators.
  • duration_ms timing on every request log record (success, error, and timeout).

Changed

  • Upgraded pytest-asyncio to ^1.0.0 and set asyncio_mode = "auto" to eliminate deprecation warnings on Python 3.12+.