Skip to main content

Zowe Python SDK - Client Secrets package

Project description

Secrets Package

Contains APIs to store, retrieve, and delete credentials in the end user's operating system (OS) keyring.

This Python package requires the OS keyring to be unlocked before credentials can stored or retrieved. Please follow the installation guidelines for Zowe CLI to ensure that the Secure Credential Store is accessible.

If you are using a headless Linux environment, please consult the following article on Zowe Docs: Configuring Secure Credential Store on headless Linux operating systems.

Example

from zowe.secrets_for_zowe_sdk import keyring
# Store a short password using the keyring module:
password = "Zowe ❕"
keyring.set_password("Test", "ShortPassword", password)
# Retrieving a password under a given service and account:
assert keyring.get_password("Test", "ShortPassword") == password
# Deleting a password:
assert keyring.delete_password("Test", "ShortPassword")
assert keyring.get_password("Test", "ShortPassword") is None

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zowe_secrets_for_zowe_sdk-1.0.0.dev12.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distributions

zowe_secrets_for_zowe_sdk-1.0.0.dev12-cp37-abi3-win_arm64.whl (112.6 kB view hashes)

Uploaded CPython 3.7+ Windows ARM64

zowe_secrets_for_zowe_sdk-1.0.0.dev12-cp37-abi3-win_amd64.whl (117.8 kB view hashes)

Uploaded CPython 3.7+ Windows x86-64

zowe_secrets_for_zowe_sdk-1.0.0.dev12-cp37-abi3-win32.whl (112.3 kB view hashes)

Uploaded CPython 3.7+ Windows x86

zowe_secrets_for_zowe_sdk-1.0.0.dev12-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (229.5 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

zowe_secrets_for_zowe_sdk-1.0.0.dev12-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (290.7 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

zowe_secrets_for_zowe_sdk-1.0.0.dev12-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (249.8 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ i686

zowe_secrets_for_zowe_sdk-1.0.0.dev12-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (218.1 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

zowe_secrets_for_zowe_sdk-1.0.0.dev12-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (222.8 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

zowe_secrets_for_zowe_sdk-1.0.0.dev12-cp37-abi3-macosx_11_0_arm64.whl (199.7 kB view hashes)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

zowe_secrets_for_zowe_sdk-1.0.0.dev12-cp37-abi3-macosx_10_7_x86_64.whl (208.9 kB view hashes)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page