Skip to main content

AWS SNS Verifier

Project description

AWS SNS Verifier

A Python library for verifying AWS SNS signatures based on the official AWS documentation.

Features

  • Validates SNS message signatures (SHA1 and SHA256)
  • Supports notification and subscription confirmation messages
  • Email attachment extraction from SNS messages
  • Type-safe Pydantic models
  • Certificate validation and caching

Installation

uv add aws-sns-verifier

Usage

from aws_sns_verifier.validator import validate_sns_signature
from aws_sns_verifier.models import EmailWebhookRequest

# Parse your SNS message
sns_message = EmailWebhookRequest(**sns_json_data)

# Verify the signature
validate_sns_signature(sns_message, expected_topic_arn="arn:aws:sns:...")

Publish

#.env
UV_PUBLISH_TOKEN=pypi-...

# export all envs in .env to the terminal
export $(cat .env | xargs)
uv build && uv publish

Dependencies

  • Python 3.13+
  • cryptography>=45.0.5
  • pydantic>=2.11.7

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

aws_sns_verifier-0.1.12.tar.gz (38.1 kB view details)

Uploaded Source

Built Distribution

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

aws_sns_verifier-0.1.12-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file aws_sns_verifier-0.1.12.tar.gz.

File metadata

  • Download URL: aws_sns_verifier-0.1.12.tar.gz
  • Upload date:
  • Size: 38.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for aws_sns_verifier-0.1.12.tar.gz
Algorithm Hash digest
SHA256 7ef2bfc518938978c2449905415836241e57df50c40d6fe48193bf948ee2fc08
MD5 41e02aa9b61583fbfc61dc0e3d0d6ad5
BLAKE2b-256 8b868a8755c2a0c89aabc0d8879b3a071500010baa888384ccf5975c5ab66d4a

See more details on using hashes here.

File details

Details for the file aws_sns_verifier-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_sns_verifier-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d95d23a95aa84542be1512a6c9104d1580054e91438f43c99782c13ec70a98b1
MD5 d2fca15148b83c614ee5bcb28a9001b8
BLAKE2b-256 4438f80a45a18f8e4739b10207ef434681f28d1c1f02589efc2eac6c18f54167

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