{"id":22491,"library":"types-boto3-sts","title":"types-boto3-sts","description":"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.","status":"active","version":"1.42.91","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","sts","type-annotations","aws","mypy","pyright"],"install":[{"cmd":"pip install types-boto3-sts","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from mypy_boto3_sts import STSClient","symbol":"STSClient","correct":"from types_boto3_sts import STSClient"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_sts import STSClient\n\nclient: 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', ''))\nresponse = client.get_caller_identity()\nprint(f\"Account: {response['Account']}\")","lang":"python","description":"Create an STS client with type hints and call get_caller_identity."},"warnings":[{"fix":"Update imports to use the new TypeDef names (remove duplicate 'Request' suffix).","message":"Generated 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.","severity":"breaking","affected_versions":">=8.9.0"},{"fix":"Upgrade to Python >=3.9.","message":"Removed support for Python 3.8 as of mypy-boto3-builder v8.12.0.","severity":"breaking","affected_versions":">=8.12.0"},{"fix":"Ensure boto3 is in your dependencies: pip install boto3.","message":"This package provides type hints only; you must also install boto3 at runtime. The package itself does not include any runtime code.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.42.91':37 '3.9':40 'annot':6,59 'aw':21,60 'boto3':3,8,15,48,52,55 'builder':16,49 'check':30 'close':54 'current':35 'ecosystem':50 'enabl':27 'follow':51 'generat':11 'hint':19 'mypi':14,32,47,61 'mypy-boto3-builder':13,46 'part':43 'provid':17 'pyright':34,62 'python':39 'releas':41,53 'requir':38 'secur':22 'servic':10,24 'static':28 'sts':4,9,25,56 'token':23 'type':2,5,18,29,58 'type-annot':57 'types-boto3-sts':1 'version':36","created_at":"2026-04-27T17:05:26.888776+00:00","updated_at":"2026-04-27T17:05:26.888776+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmp835nt6o7/venv/lib/python3.12/site-packages/types_boto3_sts/__init__.py\", line 22, in <module>\n    from .client import STSClient\n  File \"/tmp/tmp835nt6o7/venv/lib/python3.12/site-packages/types_boto3_sts/client."},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.43.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/youtype/mypy_boto3_builder","docs":"https://youtype.github.io/types_boto3_docs/types_boto3_sts/","changelog":null,"pypi":"https://pypi.org/project/types-boto3-sts/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}