skillfed

ibm-secrets-manager-sdk

IBM Cloud Secrets Manager Python SDK

ibm-secrets-manager-sdk v2.1.19 331.0K downloads/30d#7,522 on PyPI2
Permissive license Active released

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-sdk

uv

uv add ibm-secrets-manager-sdk

poetry

poetry add ibm-secrets-manager-sdk

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python Modules

Tags

ibm cloud secrets manager clientpython secrets management sdkibm cloud api pythoncredential storage and retrievalsecrets manager rest clientibm cloud service sdksecret lifecycle management
ibm-cloudsecrets-managementiam-auth

More Python Modules packages