alibabacloud-gateway-oss is a low-level, generated gateway client for Alibaba Cloud Object Storage Service (OSS). While its PyPI summary states "Alibaba Cloud OSS SDK Library for Python," it is *not* the primary, feature-rich SDK for direct OSS interactions. For most use cases involving OSS, the recommended library is `alibabacloud-oss-v2` (or `oss2`). This library, version 0.0.24, provides a basic client for interacting with the OSS API Gateway and is part of a larger `alibabacloud-gateway` monorepo. It has an infrequent release cadence, tied to updates in the underlying API Gateway specification.
pip install alibabacloud-gateway-ossVerified import paths — ran on the pinned version, not inferred.
Initializes the `alibabacloud-gateway-oss` client using environment variables for authentication and the OSS endpoint. This client provides a low-level interface to the OSS API Gateway. For higher-level, more user-friendly interactions (e.g., direct bucket and object manipulation), the `alibabacloud-oss-v2` (or `oss2`) SDK is generally recommended.
For most direct OSS operations (e.g., listing buckets, uploading/downloading objects), use the `alibabacloud-oss-v2` package (imported as `alibabacloud_oss_v2` or `oss2`). This gateway client is typically used for more specialized or internal API gateway interactions.
Ensure you install and import the correct SDK for your needs. If you intend to use the feature-rich OSS SDK, install `alibabacloud-oss-v2` (or `oss2`) via `pip install alibabacloud-oss-v2` and adjust your imports accordingly.
Always verify the correct OSS endpoint for your region from the Alibaba Cloud console or official documentation (e.g., `oss-cn-hangzhou.aliyuncs.com`). Ensure there are no typos.
If you intend to use the primary OSS SDK, install it with `pip install alibabacloud-oss-v2` and use `import oss2` or `import alibabacloud_oss_v2 as oss`. If you strictly need `alibabacloud-gateway-oss`, adjust your imports to `from alibabacloud_gateway_oss.client import Client`.
Double-check your `ALIBABA_CLOUD_ACCESS_KEY_ID` environment variable or the string passed to `Config`. Ensure it is active in the Alibaba Cloud console and has no extraneous characters.
Grant the `AliyunSTSAssumeRoleAccess` system authorization permission to the RAM user, or ensure the specified role trusts the requesting Alibaba Cloud account ID.
No dependency data recorded yet.