skillfed

mypy-boto3-sts

Type annotations for boto3 STS 1.43.0 service generated with mypy-boto3-builder 8.12.0

mypy-boto3-sts v1.43.0 10.8M downloads/30d#1,438 on PyPI670
Permissive license MIT Active released

What it is and what it does

mypy-boto3-sts is a type-stub package that adds static type annotations to boto3's STS client. It's generated from boto3 1.43.0 using mypy-boto3-builder and works with mypy, pyright, VSCode, PyCharm, Emacs, Sublime Text, and other IDEs that support Python type checking. The package contains no runtime logic—it only provides type hints so that your IDE and type checker can understand boto3 STS method signatures, return types, and available parameters.

When installed, it enables IDE autocompletion for STS operations and catches type errors before runtime. You can use it standalone or as part of boto3-stubs, a meta-package that bundles stubs for multiple AWS services. The package is lightweight, depends only on typing-extensions, and is designed to be a development-time or type-checking-time dependency that doesn't affect production code size.

Use it for:

  • Enable mypy or pyright type checking on boto3 STS code without writing manual type annotations.
  • Get IDE autocomplete and inline documentation for STS client methods in VSCode or PyCharm.
  • Validate STS API calls (AssumeRole, GetCallerIdentity, etc.) against the correct signatures at development time.
  • Use STSClient and type definitions from mypy_boto3_sts.type_defs for explicit type hints in your own functions.
  • Catch typos and incorrect parameter names in STS API calls before deployment.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides type annotations and IDE autocompletion support for boto3's STS (Security Token Service) client, enabling static type checking with mypy, pyright, and other tools.

Yes. This is a low-friction, actively maintained type-stub package with no security vulnerabilities and a permissive MIT license. Install it if you use boto3 STS and want static type checking or IDE autocompletion. It adds no runtime overhead and integrates seamlessly with standard Python tooling.

Install

mypy-boto3-sts on PyPI

pip

pip install mypy-boto3-sts

uv

uv add mypy-boto3-sts

poetry

poetry add mypy-boto3-sts

Installing mypy-boto3-sts

Before you install

Low friction—a pure Python wheel with only typing-extensions as a runtime dependency. Actively maintained with recent releases; the repository shows consistent activity and is not archived.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal restrictions.

Quickstart

pip install mypy-boto3-sts

from boto3.session import Session
from mypy_boto3_sts import STSClient

client: STSClient = Session().client("sts")
# Type checking and IDE completion now available

Requires Python 3.9 or later; boto3 must be installed separately in your environment.

Verify before relying

  • Whether performance issues in PyCharm mentioned in the description (PY-40997) remain unresolved or have been addressed.
  • Exact compatibility with boto3 versions other than 1.43.0 that this stub version supports.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 1 — typing-extensions
Maintenance actively maintained — 107 days since the last release
Last repo commit
First released
Downloads 10,754,807/month — #1,438 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mypy_boto3_sts-1.43.0-py3-none-any.whl

Keywords: boto3, sts, boto3-stubs, type-annotations, mypy, typeshed, autocomplete

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTyping :: Stubs Only

Tags

boto3 type stubsaws sts type annotationsboto3 mypy supporttype hints for boto3aws sdk type checkingboto3 ide autocompletepyright boto3 stubs
type-stubsaws-sdkstatic-analysis

More Software Development packages