Registry / type-stubs / types-boto3-sts

types-boto3-sts

JSON →
library1.43.0pypypiunverified

Type annotations for boto3 STS service, generated by mypy-boto3-builder. Provides type hints for AWS Security Token Service (STS) to enable static type checking with mypy or pyright. Current version 1.42.91, requires Python >=3.9. Released as part of the mypy-boto3-builder ecosystem; follows boto3 releases closely.

pip install types-boto3-sts
INSTALL
IMPORT
SIG · TYPES-BOTO3-STS
T
types-boto3-sts
type-stubspythonv1.43.0
Install
1.5s avg
Import
Disk
16MB
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.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

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

STSClient
from types_boto3_sts import STSClient
from mypy_boto3_sts import STSClient

Create an STS client with type hints and call get_caller_identity.

import boto3 from mypy_boto3_sts import STSClient client: STSClient = boto3.client('sts', region_name='us-east-1', aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', ''), aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', '')) response = client.get_caller_identity() print(f"Account: {response['Account']}")
Debug
Known issues
breakingGenerated type definitions for method arguments and TypeDefs changed in builder v8.9.0: shorter names (e.g., CreateDistributionRequestTypeDef instead of CreateDistributionRequestRequestTypeDef). Existing code using old TypeDef names will break.
fix
Update imports to use the new TypeDef names (remove duplicate 'Request' suffix).
affects: >=8.9.0
breakingRemoved support for Python 3.8 as of mypy-boto3-builder v8.12.0.
fix
Upgrade to Python >=3.9.
affects: >=8.12.0
gotchaThis package provides type hints only; you must also install boto3 at runtime. The package itself does not include any runtime code.
fix
Ensure boto3 is in your dependencies: pip install boto3.
affects: all
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
34
OpenAI (training)
1
Resources
types-boto3-sts — pip install types-boto3-sts · libregistry