Registry / aws / alibabacloud-credentials-api

alibabacloud-credentials-api

JSON →
library1.0.1pypypi✓ verified 22d ago

The `alibabacloud-credentials-api` library (version 1.0.0) is identified as the Alibaba Cloud Gateway SPI (Service Provider Interface) SDK Library for Python. It primarily serves as an interface definition package, setting the groundwork for credential provider implementations rather than offering direct end-user credential management. This library is typically a dependency for more comprehensive credential management solutions, such as `alibabacloud-credentials`. It is actively maintained with a focus on defining core credential interfaces for the Alibaba Cloud ecosystem.

pip install alibabacloud-credentials-api
INSTALL
IMPORT
SIG · ALIBABACLOUD-CREDE
A
alibabacloud-credentials-api
awspythonv1.0.1
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ICredentialsProvider
This package primarily defines interfaces; direct import for end-user functionality is uncommon.
This library is an SPI, meaning it defines interfaces for other libraries (like `alibabacloud-credentials`) to implement. Developers typically interact with higher-level credential management libraries.

As an SPI (Service Provider Interface) library, `alibabacloud-credentials-api` primarily defines interfaces for other modules to implement, such as `ICredentialsProvider`. It does not offer typical direct quickstart code for end-user applications. The example provided illustrates how a related credential management library (`alibabacloud-credentials`) would typically be used, demonstrating the high-level interaction with Alibaba Cloud credentials via environment variables.

# The 'alibabacloud-credentials-api' library primarily defines interfaces (Service Provider Interface). # It does not typically offer direct, executable quickstart code for end-users. # For managing Alibaba Cloud credentials and obtaining access keys/tokens, # please refer to the 'alibabacloud-credentials' library documentation. # Example of how to use a *related* credential client (from alibabacloud-credentials): # import os # from alibabacloud_credentials.client import Client as CredentialClient # from alibabacloud_credentials.models import Config as CredentialConfig # config = CredentialConfig( # type='access_key', # access_key_id=os.environ.get('ALIBABA_CLOUD_ACCESS_KEY_ID', ''), # access_key_secret=os.environ.get('ALIBABA_CLOUD_ACCESS_KEY_SECRET', '') # ) # try: # cred = CredentialClient(config) # print(f"Access Key ID: {cred.get_access_key_id()}") # # In a real scenario, you would use 'cred' to sign API requests. # except Exception as e: # print(f"Error initializing credentials: {e}") print("alibabacloud-credentials-api is an interface definition library.") print("It is typically used by other libraries that implement Alibaba Cloud credential providers.") print("For direct credential management, refer to 'alibabacloud-credentials'.")
Debug
Known issues
gotchaThis package ('alibabacloud-credentials-api') is primarily an interface definition (SPI) library. End-users typically interact with actual credential management implementations provided by `alibabacloud-credentials` or other SDK components, not directly with `alibabacloud-credentials-api`. Expect minimal direct runnable examples for this specific package.
fix
If you are looking to manage Alibaba Cloud credentials (e.g., using AccessKey, STS, RAM roles), you should primarily use the `alibabacloud-credentials` library instead. Consult its documentation for usage patterns.
affects: >=1.0.0
breakingStarting from `alibabacloud-credentials` version 1.0rc1 (a related core credential library, not this API package directly), Python 3.7 and above is required. While `alibabacloud-credentials-api` itself is 1.0.0, ensure your Python environment meets the requirements of any consuming libraries.
fix
Ensure your project uses Python 3.7 or newer to maintain compatibility with the broader Alibaba Cloud Python SDK ecosystem.
affects: >=1.0.0
gotchaNever hardcode AccessKey IDs and Secrets directly in your application code. This poses a significant security risk, especially if committed to version control. Prefer using environment variables or other secure configuration methods.
fix
Store credentials in environment variables (e.g., `ALIBABA_CLOUD_ACCESS_KEY_ID`, `ALIBABA_CLOUD_ACCESS_KEY_SECRET`), configuration files (`~/.alibabacloud/credentials.ini`), or leverage RAM roles for enhanced security and auto-refreshing temporary credentials.
affects: *
gotchaUsing long-term AccessKey pairs for production applications is generally discouraged due to higher security risks. Temporary Security Token Service (STS) tokens obtained via RAM roles are recommended for most use cases, as they have limited permissions and configurable expiration times.
fix
Implement temporary credentials using STS tokens and RAM roles. The `alibabacloud-credentials` library supports various mechanisms like `RamRoleArn` and `EcsRamRole` for this purpose.
affects: *
Upgrade
Version history
1.0.1latest on PyPI · released Jun 25, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
53 hits · last 30 days
node
42
OpenAI (training)
2
Perplexity
1
Resources