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.5.tar.gz (26.3 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.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aws_sns_verifier-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3163231dba08bdb6f36318f794999fb3246b51f32ceaefe6b6d6e8df9f958431
MD5 9228fd6384a93f9f258d4e4256d251d1
BLAKE2b-256 ab709e351cc8a70fdbcefeced3d55d5ba896094ab786d6f532f6fff0fdb79cb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_sns_verifier-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 86d789e7f27da2cc1e8988cbe435efb7a75c655cb0ec4e4bdb3d06af5d76b133
MD5 db31391268c82d8746d2166c14a13ecb
BLAKE2b-256 f72c853ea906c04ed4fd0f4f4edd364e8ab6465fd4efb87d4e35db38fef7ba2c

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