Registry / type-stubs / mypy-boto3-sqs

mypy-boto3-sqs

JSON →
library1.43.0pypypi✓ verified 24d ago

mypy-boto3-sqs provides type annotations for the AWS SQS service in boto3, enhancing code completion and type checking. The current version is 1.42.3, released on December 4, 2025. The library is actively maintained, with regular updates to align with boto3 releases.

pip install 'boto3-stubs[sqs]'
INSTALL
IMPORT
SIG · MYPY-BOTO3-SQS
M
mypy-boto3-sqs
type-stubspythonv1.43.0
Install
4.0s avg
Import
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.915 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.8MB
glibc
py 3.103.915 runs
installs and imports cleanly · install 4.0s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage

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

SQSClient
from mypy_boto3_sqs import SQSClient
from boto3_stubs.sqs import SQSClient

Demonstrates sending a message to an SQS queue with type annotations

from mypy_boto3_sqs import SQSClient import boto3 client: SQSClient = boto3.client('sqs') response = client.send_message( QueueUrl='https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue', MessageBody='Hello, World!' ) print(response['MessageId'])
Debug
Known issues
breakingRemoved support for Python 3.8 in version 8.12.0
fix
Upgrade to Python 3.9 or later
affects: 8.12.0 and later
gotchaDynamic class generation in boto3 can lead to unexpected type results
fix
Use mypy-boto3-sqs for accurate type annotations
affects: All versions
breakingInstalling boto3-stubs or mypy-boto3-* packages without the actual boto3 library will lead to ModuleNotFoundError for 'boto3' or 'botocore' at runtime, as these are type stub packages and not replacements for the underlying libraries.
fix
Install the 'boto3' library alongside the stub packages. For example, 'pip install boto3 boto3-stubs[sqs]'.
affects: All versions
breakingInstalling `boto3-stubs` or `mypy-boto3-*` packages without the actual `boto3` runtime library can lead to `ModuleNotFoundError` for `boto3` or `botocore`.
fix
Install `boto3` package alongside `boto3-stubs` or `mypy-boto3-*` packages. For example, `pip install boto3 boto3-stubs[sqs]`.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
typing-extensionsrequiredProvides backported type hints for older Python versions
Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
mypy-boto3-sqs — pip install mypy-boto3-sqs · libregistry