ibm-secrets-manager-sdk
IBM Cloud Secrets Manager Python SDK
What it is and what it does
This is the official IBM Cloud Python SDK for interacting with IBM Cloud Secrets Manager, a managed service for storing and rotating sensitive data. The library wraps the Secrets Manager REST API, providing a SecretsManagerV2 client class that handles authentication via IBM Cloud's IAM system and exposes methods for creating, retrieving, updating, and managing secrets of various types. It depends on ibm-cloud-sdk-core for authentication and common SDK patterns, plus standard HTTP libraries (requests, urllib3) and python-dateutil for date handling.
Developers use it to programmatically manage secrets in their IBM Cloud infrastructure—storing API keys, database credentials, certificates, or arbitrary secret data—without embedding credentials in code or configuration files. The SDK handles token-based authentication transparently, regenerating access tokens as needed, and provides a Pythonic interface to the underlying REST operations.
Use it for:
- Store and retrieve database credentials or API keys from application code without hardcoding them.
- Automate secret rotation and lifecycle management as part of infrastructure-as-code workflows.
- Integrate secret retrieval into CI/CD pipelines to inject credentials at deployment time.
- Manage TLS certificates and other cryptographic material centrally in IBM Cloud.
- Build multi-tenant applications that isolate secrets by environment or customer.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client library for programmatically managing secrets stored in IBM Cloud Secrets Manager, supporting creation, retrieval, and lifecycle operations through the service's REST API.
Yes, if you are already using IBM Cloud Secrets Manager and need Python client access. The SDK is actively maintained, has no known vulnerabilities, installs with low friction, and is released under a permissive license. It is the official supported way to interact with the service from Python. Not relevant if you are not using IBM Cloud or prefer alternative secret management systems.
Install
ibm-secrets-manager-sdk on PyPI
pip
pip install ibm-secrets-manager-sdkuv
uv add ibm-secrets-manager-sdkpoetry
poetry add ibm-secrets-manager-sdkInstalling ibm-secrets-manager-sdk
Before you install
Low friction install with a pure-Python wheel and four common runtime dependencies (ibm-cloud-sdk-core, python-dateutil, requests, urllib3). Actively maintained with recent releases and no known vulnerabilities.
License in practice
Released under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
pip install ibm-secrets-manager-sdk
from ibm_cloud_sdk_core.authenticators.iam_authenticator import IAMAuthenticator
from ibm_secrets_manager_sdk.secrets_manager_v2 import SecretsManagerV2
secretsManager = SecretsManagerV2(
authenticator=IAMAuthenticator(apikey='<IBM_CLOUD_API_KEY>')
)
secretsManager.set_service_url('<SERVICE_URL>')
response = secretsManager.get_secret(id='secret-id')
Requires an IBM Cloud account, a Secrets Manager service instance, and a valid IBM Cloud API key for authentication.
Verify before relying
- Whether the SDK supports all current Secrets Manager secret types and operations beyond the arbitrary secret example shown.
- Performance characteristics and rate-limiting behavior when managing large numbers of secrets.
- Backward compatibility guarantees across minor and patch versions.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — ibm-cloud-sdk-core, python-dateutil, requests, urllib3 |
| Maintenance | actively maintained — 150 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 330,980/month — #7,522 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ibm_secrets_manager_sdk-2.1.19-py3-none-any.whl
Keywords: cloud, ibm, ibm cloud services, secrets manager
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
cerberus-python-clientA Python client library for reading and writing…
permissive · top 5,000 on PyPI
ibm-platform-servicesPython client library for IBM Cloud Platform…
permissive · top 5,000 on PyPI
keeper-secrets-manager-corePython SDK for Keeper Secrets Manager that…
permissive · top 15,000 on PyPI
aws-secretsmanager-cachingCaches AWS Secrets Manager secrets in-process…
permissive · top 5,000 on PyPI
ibm-eventnotificationsPython client library for IBM Cloud Event…
permissive · top 15,000 on PyPI
ibm-vpcPython client library for programmatically…
permissive · top 15,000 on PyPI
ibm-cloud-sdk-coreProvides core authentication, HTTP request…
permissive · top 5,000 on PyPI
doppler-sdkProvides Python bindings to access the Doppler…
permissive · top 15,000 on PyPI
ibmcloudantPython client library for IBM Cloudant and…
permissive · top 5,000 on PyPI
infisicalsdkFetch and manage secrets from Infisical, an…
unclear · top 5,000 on PyPI