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.13.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.13-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws_sns_verifier-0.1.13.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.13.tar.gz
Algorithm Hash digest
SHA256 9be2a83efe6d9e4a76d58be185f75b9664bb6c559a61a9f2e7cba19272238a11
MD5 2db5cafac6a551a4d3f87691c82bceef
BLAKE2b-256 26cd36570b91dc7c0055b5f52b0c2156b7ce136d69b8e95a1fb1f2181986ba31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_sns_verifier-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 b668b0e454de95e1e018624a08febdb57cff85d61b7a1be47c4ebca613f9c244
MD5 79517e6f20259d0616247456d678b5ac
BLAKE2b-256 bcadd4541041f0e53d3b1d62e5a7ee609f2ce0eb2982742dd65ea5aab71cbf95

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