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.10.tar.gz (33.9 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.10-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aws_sns_verifier-0.1.10.tar.gz
Algorithm Hash digest
SHA256 7fafc192d857d9901f2f59abf94fd34cc991989c3b3d03681853f5c00698d720
MD5 c91af617b28357874f9ee5e3d55df40f
BLAKE2b-256 96526b05f1c516be57bb17766d5c1fa64e81a5726c0f18c59021ba80b1ae50a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_sns_verifier-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 6132da21e6376cabab9845a89720e71c0fa8f1a976acd39f5e72545dfd735ca2
MD5 220e94fbdc275bebd8e311de2305b995
BLAKE2b-256 57f4b1e29a50845450300dfa4423033d6840247523164a239c116d23456fd991

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