aws-secretsmanager-caching
Client-side AWS Secrets Manager caching library
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, minimal dependencies, and solves a real problem for AWS-based Python applications. The permissive Apache 2.0 license and stable production status make it a low-risk addition. Install if your application retrieves secrets from AWS Secrets Manager more than occasionally.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or newer and an AWS account with access to AWS Secrets Manager.
- Low install friction with a single runtime dependency (botocore).
- Actively maintained with recent commits and stable production status.
License · maintenance · safety
permissive license (permissive) — Licensed under Apache 2.0, a permissive license allowing commercial and private use with minimal restrictions.
last release 2024-06-20 (785 days) · last repo commit 2026-08-12 · 145 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,928,556 downloads/mo, #2,820 on PyPI
Alternatives
Verify before relying
pip install aws-secretsmanager-caching
import botocore.session
from aws_secretsmanager_caching import SecretCache, SecretCacheConfig
client = botocore.session.get_session().create_client('secretsmanager')
cache = SecretCache(config=SecretCacheConfig(), client=client)
secret = cache.get_secret_string('mysecret')- Whether the cache TTL and refresh interval defaults (3600 seconds) are suitable for typical secret rotation workflows.
- Performance impact of the configurable max_cache_size (default 1024) on memory usage in high-secret scenarios.
What it is and what it does
This package provides a client-side caching layer for AWS Secrets Manager that stores retrieved secrets in memory, reducing repeated API calls to AWS. It wraps botocore to handle secret retrieval and caching logic, allowing applications to configure cache size, refresh intervals, and retry behavior for failed requests.
The library is designed for Python applications that need to access secrets frequently without incurring the latency and cost of repeated AWS API calls. It includes decorators to inject secrets directly into function arguments and supports both simple string secrets and JSON-based secret objects. Configuration options control cache size, refresh timing, and exception retry strategies.
Use it for
- Reduce API call volume in applications that access the same secrets multiple times during request handling.
- Inject database credentials or API keys into function parameters using decorators without explicit secret retrieval code.
- Configure automatic secret refresh intervals to balance freshness with API call reduction.
- Handle transient AWS API failures with exponential backoff retry logic before surfacing errors to the application.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, minimal dependencies, and solves a real problem for AWS-based Python applications. The permissive Apache 2.0 license and stable production status make it a low-risk addition. Install if your application retrieves secrets from AWS Secrets Manager more than occasionally.
Install
aws-secretsmanager-caching on PyPI
Before you install
Low install friction with a single runtime dependency (botocore). Actively maintained with recent commits and stable production status.
Requires Python 3.7 or newer and an AWS account with access to AWS Secrets Manager.
License in practice
Licensed under Apache 2.0, a permissive license allowing commercial and private use with minimal restrictions.
Quickstart
pip install aws-secretsmanager-caching
import botocore.session
from aws_secretsmanager_caching import SecretCache, SecretCacheConfig
client = botocore.session.get_session().create_client('secretsmanager')
cache = SecretCache(config=SecretCacheConfig(), client=client)
secret = cache.get_secret_string('mysecret')
Verify before relying
- Whether the cache TTL and refresh interval defaults (3600 seconds) are suitable for typical secret rotation workflows.
- Performance impact of the configurable max_cache_size (default 1024) on memory usage in high-secret scenarios.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagebotocore |
| Maintenance | Actively maintained 785 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,928,556 / month, #2,820 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7 |
Evidence: aws_secretsmanager_caching-1.1.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “AWS secrets manager caching”
- aws-secretsmanager-cachingCaches AWS Secrets Manager secrets in-process to reduce API calls and…
- aws-cdk.aws-secretsmanagerAWS CDK construct library for provisioning and managing AWS Secrets…
- safe-initSafe Init wraps AWS Lambda handlers to provide automatic error…
Give your agent the search over MCP, or paste the wish link into any chat.
More Security packages
Provides Python bindings to the FreeDesktop.org Secret Service API for securely storing and retrieving passwords and secrets through GNOME Keyring, KWallet, or KeePassXC.
MSAL for Python handles OAuth2 and OpenID Connect authentication with Microsoft identity services, managing token acquisition, caching, and refresh for applications integrating with Microsoft Entra ID, Microsoft Accounts, and Azure AD B2C.
joserfc implements JOSE standards (JWS, JWE, JWK, JWT, and related RFCs) for signing, encrypting, and managing JSON-based cryptographic tokens in Python.
Authlib provides a complete implementation of OAuth 1.0, OAuth 2.0, and OpenID Connect 1.0 for building both authentication clients and servers, with built-in support for JWS, JWK, JWA, and JWT standards.
Provides low-level CFFI bindings to the official Argon2 password hashing algorithm for use by libraries and applications that need direct access to Argon2 without higher-level abstractions.
ADAL for Python authenticates applications with Azure Active Directory to obtain tokens for accessing Azure AD-protected resources.
Install only if maintaining existing code that already depends on it, and plan a migration.
See also aws-cdk.aws-secretsmanager · ibm-secrets-manager-sdk · keeper-secrets-manager-core · cerberus-python-client · credstash · infisicalsdk · azure-keyvault-secrets · mypy-boto3-secretsmanager · ssm-parameter-store · cachier