Registry / type-stubs / types-boto3-sns

types-boto3-sns

JSON →
library1.43.0pypypiunverified

Type annotations for boto3 SNS 1.43.0 service generated with mypy-boto3-builder 8.12.0. Provides static type checking for AWS SNS API calls, compatible with mypy, pyright, and type-checkers. Current version: 1.43.0. Release cadence: follows boto3 SNS service updates.

pip install boto3-stubs[sns]
INSTALL
IMPORT
SIG · TYPES-BOTO3-SNS
T
types-boto3-sns
type-stubspythonv1.43.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SNSClient
✓ from boto3_stubs.sns.client import SNSClient
✗ from mypy_boto3_sns.client import SNSClient

Create an SNS client with type annotations and publish an SMS message.

import boto3 from mypy_boto3_sns.client import SNSClient from mypy_boto3_sns.type_defs import PublishResponseTypeDef client: SNSClient = boto3.client("sns", region_name="us-east-1") response: PublishResponseTypeDef = client.publish( PhoneNumber="+1234567890", Message="Hello from mypy!" ) print(response["MessageId"])
Debug
Known issues
breakingTypeDef names may change between versions due to auto-generation. For example, in version 8.9.0, TypeDefs for packed method arguments were renamed (e.g., CreateDistributionRequestRequestTypeDef -> CreateDistributionRequestTypeDef). Lock your types version to avoid CI breaks.
fix
Pin types-boto3-sns to a specific version in your requirements file.
affects: >=1.30.0,<2.0.0
deprecatedPython 3.8 support was removed in mypy-boto3-builder 8.12.0. If you are on Python 3.8, upgrade to Python >=3.9 or stick to an older version of types-boto3-sns.
fix
Use Python 3.9+ or pin to types-boto3-sns<1.43.0.
affects: >=1.43.0
gotchaImporting from `types_boto3_sns` directly (with underscore) is a common mistake. The correct top-level package is `mypy_boto3_sns` (with underscore after mypy). `types_boto3_sns` is the PyPI distribution name, not the importable package.
fix
Use `import mypy_boto3_sns` or `from mypy_boto3_sns.client import SNSClient`.
affects: all
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredRuntime dependency for AWS SDK calls; types depend on service structure.
boto3-stubsoptionalProvides essential types for boto3 itself; often required for type checking.
typing-extensionsoptionalRequired for Python <3.10 for TypedDict and other features.
Agent activity
37 hits · last 30 days
node
32
OpenAI (training)
1
Resources
types-boto3-sns — pip install types-boto3-sns · libregistry