Alibaba Cloud OSS Util Python SDK

raw JSON →
0.0.6 verified Fri May 01 auth: no python

The OSS Util module of Alibaba Cloud Python SDK. Provides utility functions for OSS SDKs (e.g., serialization, signature computation). PyPI version 0.0.6; GitHub releases up to v1.1.1. Low release cadence.

pip install alibabacloud-oss-util
error ImportError: No module named 'alibabacloud_oss_util'
cause Package not installed or wrong Python environment.
fix
Run: pip install alibabacloud-oss-util
error AttributeError: module 'alibabacloud_oss_util' has no attribute 'RuntimeOptions'
cause Importing directly from package root instead of models submodule.
fix
Use: from alibabacloud_oss_util.models import RuntimeOptions
gotcha PyPI version 0.0.6 is outdated. GitHub has v1.1.1 with breaking changes.
fix Install from Git: pip install git+https://github.com/aliyun/alibabacloud-oss-sdk.git@master#subdirectory=util/python
deprecated Older API patterns (e.g., direct class usage without models) may not work.
fix Use the 'alibabacloud_oss_util.models' submodule for all classes.

Create and use RuntimeOptions

from alibabacloud_oss_util.models import RuntimeOptions

# Example: create RuntimeOptions
options = RuntimeOptions(
    aut_retry=False,
    max_attempts=3
)
print(options.to_map())