Registry / type-stubs / types-aiobotocore-secretsmanager

types-aiobotocore-secretsmanager

JSON →
library3.7.0pypypiunverified

This library provides a complete set of PEP 561 type annotations for `aiobotocore`'s Secrets Manager service. It enhances development with static type checking, autocompletion, and refactoring support for asynchronous AWS operations. Currently at version 3.4.0, it is part of the `mypy-boto3-builder` ecosystem which follows a frequent release cadence, often aligning with new `aiobotocore` and AWS service updates.

pip install types-aiobotocore-secretsmanager
INSTALL
IMPORT
SIG · TYPES-AIOBOTOCORE-
T
types-aiobotocore-secretsmanager
type-stubspythonv3.7.0
Install
1.6s 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 v3.7.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.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.3MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 1.6s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

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

SecretsManagerClient
from types_aiobotocore_secretsmanager import SecretsManagerClient
from types_aiobotocore_secretsmanager.client import SecretsManagerClient

This quickstart demonstrates how to obtain a typed `SecretsManagerClient` using `aiobotocore.session` and perform a basic asynchronous operation like listing secrets. The `TYPE_CHECKING` block ensures type imports do not add runtime dependencies.

from typing import TYPE_CHECKING import asyncio import aiobotocore.session # These types are only needed for type checking, not at runtime if TYPE_CHECKING: from types_aiobotocore_secretsmanager.client import SecretsManagerClient async def get_secrets_manager_client(): session = aiobotocore.session.get_session() # Annotate the client with the imported type for full type-checking benefits client: SecretsManagerClient async with session.client("secretsmanager") as client: try: response = await client.list_secrets() print(f"Secrets: {[s['Name'] for s in response.get('SecretList', [])]}") except Exception as e: print(f"Error listing secrets: {e}") if __name__ == "__main__": asyncio.run(get_secrets_manager_client())
Debug
Known issues
breakingPython 3.8 support has been dropped starting with `mypy-boto3-builder` version 8.12.0. This means `types-aiobotocore-secretsmanager` versions built with 8.12.0 or later (including 3.4.0) require Python 3.9 or higher.
fix
Ensure your project uses Python 3.9 or newer. If you must use Python 3.8, pin to an older `types-aiobotocore-secretsmanager` version (e.g., `<3.4.0`) that was built with `mypy-boto3-builder` <8.12.0.
affects: >=3.4.0
gotchaIt is crucial to align the version of `types-aiobotocore-secretsmanager` with the version of `aiobotocore` (and potentially `types-aiobotocore`) you are using at runtime. Mismatched versions can lead to incorrect types or missing attributes/methods, causing static analysis errors or runtime issues that type checking might miss.
fix
Always install `types-aiobotocore-secretsmanager` with a version constraint that matches your `aiobotocore` installation, or allow `pip` to resolve compatible versions. For example, if you have `aiobotocore==2.13.0`, you should ideally install `types-aiobotocore-secretsmanager==2.13.0` (or `~=2.13.0`). The `types-aiobotocore-secretsmanager` package has `aiobotocore` as a runtime dependency, so pip *should* find a compatible version.
affects: *
breakingThe `mypy-boto3-builder` (which generates this package) introduced breaking changes in `8.9.0` regarding TypeDef naming conventions, such as `CreateDistributionRequestRequestTypeDef` becoming `CreateDistributionRequestTypeDef`. While this specific example is not for Secrets Manager, similar changes may occur in future versions for other service TypeDefs, if names become too long or conflicting.
fix
If you are directly importing and using specific `TypeDef` classes and upgrading to a new major version of `types-aiobotocore-secretsmanager`, review the release notes of `mypy-boto3-builder` for potential naming changes to `TypeDef` structures. Update your imports accordingly.
affects: >=3.0.0 (as built with builder >=8.9.0)
gotchaThis package is a type stub package (`py.typed`) and provides only type annotations. It does not include the actual runtime implementation of the `aiobotocore` Secrets Manager client. You must install `aiobotocore` separately for the code to run.
fix
Ensure `aiobotocore` is installed in your environment: `pip install aiobotocore`.
affects: *
Upgrade
Version history
3.7.0latest on PyPI · released May 10, 2026
Audit
Dependencies
aiobotocorerequiredRuntime library for asynchronous AWS interactions.
types-aiobotocorerequiredCore type stubs for aiobotocore, required by service-specific stubs.
Agent activity
33 hits · last 30 days
node
28
OpenAI (training)
1
Resources
types-aiobotocore-secretsmanager — pip install types-aiobotocore-secretsmanager · libregistry