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.5pydantic>=2.11.7
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_sns_verifier-0.1.14.tar.gz.
File metadata
- Download URL: aws_sns_verifier-0.1.14.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fba93c3cdc8c0a4ffa92fba6626a97e2f339b43d8dd126beac4b7cfa9171b745
|
|
| MD5 |
7b1aa2c675490b050b081b129d88ad44
|
|
| BLAKE2b-256 |
92457dcb5a9b9083d2b1ddc7c6ad8f46a04e631fbde3251a2f7dfa8afef25bb6
|
File details
Details for the file aws_sns_verifier-0.1.14-py3-none-any.whl.
File metadata
- Download URL: aws_sns_verifier-0.1.14-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f957174addbab3a042f3118c9072fb274e86bcdfe6d9f39ee9223f2d7e28143b
|
|
| MD5 |
d6868e86ebaa7c811e58a8eaa2c05cc2
|
|
| BLAKE2b-256 |
4acd8e4d0f92e6a690b5e16c22bceab31cf47f7cf2e2c042d67ccbbfa865c0c3
|