skillfed

alibabacloud-credentials

The alibabacloud credentials module of alibabaCloud Python SDK.

alibabacloud-credentials v1.0.11 8.0M downloads/30d#1,671 on PyPI9
Permissive license Apache License 2.0 Active released

What it is and what it does

This package provides credential management for the Alibaba Cloud Python SDK, handling the authentication layer between your application and Alibaba Cloud services. It abstracts away the complexity of multiple credential types—from simple access key pairs to temporary STS tokens, RAM role assumption, OIDC federation, and bearer tokens—into a unified Config and Credentials interface.

The package depends on alibabacloud-tea (the core Alibaba Cloud SDK transport layer), alibabacloud-credentials-api (the credential interface contract), APScheduler (likely for token refresh scheduling), and aiofiles (for async file operations, possibly for reading OIDC token files). It's actively maintained, supports Python 3.7 through 3.12, and carries no known security vulnerabilities. Use it when building applications that integrate with Alibaba Cloud services and need flexible, secure credential handling.

Use it for:

  • Initialize SDK clients for Alibaba Cloud services using stored or environment-based credentials without hardcoding secrets.
  • Assume temporary RAM roles with session-based credentials for fine-grained access control in multi-tenant or federated environments.
  • Integrate OIDC identity providers for Kubernetes or other federated identity systems accessing Alibaba Cloud.
  • Rotate and refresh STS tokens automatically during long-running application lifecycles.
  • Support multiple credential strategies (access keys, bearer tokens, credentials URIs) in a single codebase for different deployment scenarios.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Manages authentication credentials for Alibaba Cloud services, supporting multiple credential types including access keys, STS tokens, RAM roles, OIDC, and bearer tokens.

Yes. This is the official credential provider for Alibaba Cloud's Python SDK ecosystem—actively maintained, permissively licensed, low install friction, and carrying zero known vulnerabilities. Install it if you are building applications that authenticate to Alibaba Cloud services; it is a required dependency for most Alibaba Cloud SDK packages.

Install

alibabacloud-credentials on PyPI

pip

pip install alibabacloud-credentials

uv

uv add alibabacloud-credentials

poetry

poetry add alibabacloud-credentials

Installing alibabacloud-credentials

Before you install

Low friction: pure Python wheel with four runtime dependencies (APScheduler, aiofiles, alibabacloud-tea, alibabacloud-credentials-api). Active maintenance with a release 7 days ago and ongoing commits.

License in practice

Apache License 2.0 (permissive) allows commercial and private use with minimal restrictions, requiring only license and copyright notice preservation.

Quickstart

pip install alibabacloud-credentials

from alibabacloud_credentials.models import Config
from alibabacloud_credentials import Credentials

config = Config(
    type='access_key',
    access_key_id='YOUR_ACCESS_KEY_ID',
    access_key_secret='YOUR_ACCESS_KEY_SECRET'
)
creds = Credentials(config)

Requires Python 3.7 or above; Alibaba Cloud account with valid credentials (AccessKey ID and secret, or equivalent auth method) must be obtained separately.

Verify before relying

  • Whether all credential types (access_key, sts, ram_role_arn, ecs_ram_role, oidc_role_arn, credentials_uri, bearer) are fully functional in version 1.0.11
  • Performance characteristics when rotating credentials or handling token expiration
  • Compatibility details with specific Alibaba Cloud service endpoints

Package facts

License Apache License 2.0 (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 4 — APScheduler, aiofiles, alibabacloud-tea, alibabacloud-credentials-api
Maintenance actively maintained — 7 days since the last release
Last repo commit
First released
Downloads 8,027,926/month — #1,671 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: alibabacloud_credentials-1.0.11-py3-none-any.whl

Keywords: alibabacloud, sdk, tea

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development

Tags

alibaba cloud authenticationalibabacloud credentialsalibaba cloud sdk credentialscloud credential managementalibaba cloud access keyssts token handlingalibaba cloud iam
alibaba-cloudcredential-managementauthentication

More Software Development packages

typing-extensions

Provides backported and experimental type hints…

permissive · top 100 on PyPI

numpy

NumPy provides an N-dimensional array object…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

distlib

Distlib provides low-level packaging utilities…

permissive · top 1,000 on PyPI

alibabacloud-credentials-api

Provides credential management interfaces and…

permissive · top 5,000 on PyPI

alibabacloud-sts20150401

Provides Python bindings to Alibaba Cloud's…

permissive · top 15,000 on PyPI

alibabacloud-ram20150501

Provides Python bindings to Alibaba Cloud's…

permissive · top 15,000 on PyPI

aliyun-python-sdk-sts

Provides Python bindings to Aliyun's Security…

permissive · top 15,000 on PyPI

git-credentials

Wraps the `git credential` command to retrieve,…

permissive · top 15,000 on PyPI

alibabacloud-oss20190517

Provides a Python SDK for interacting with…

permissive · top 15,000 on PyPI

alibabacloud-oss-util

Provides utility functions for working with…

permissive · top 15,000 on PyPI

docker-pycreds

Provides Python bindings to interact with…

permissive · top 5,000 on PyPI

volcengine

Volcengine SDK for Python provides client…

permissive · top 15,000 on PyPI

boto3-assume

Wraps boto3 to create AWS IAM assume-role…

permissive · top 15,000 on PyPI