Install & Compatibility
Where this runs
tested against v3.26.2 · 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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.860s · 32MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.5s · import 0.796s · 33MB
31MB installed
● package 31MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ObsClient
✓ from obs import ObsClient
✗ from esdk_obs_python import ObsClient
The package is installed as esdk-obs-python, but import uses 'obs' module.
PutObjectHeader
✓ from obs import PutObjectHeader
Initialize ObsClient, list buckets, and handle errors.
from obs import ObsClient
import os
ak = os.environ.get('OBS_AK', '')
sk = os.environ.get('OBS_SK', '')
server = os.environ.get('OBS_SERVER', 'https://your-endpoint.com')
obsClient = ObsClient(access_key_id=ak, secret_access_key=sk, server=server)
resp = obsClient.listBuckets()
if resp.status < 300:
for bucket in resp.body.buckets:
print(bucket.name)
else:
print(f"Error: {resp.errorCode} {resp.errorMessage}")
obsClient.close()
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'obs'
Installing the package but import fails because the module name is 'obs' not 'esdk_obs_python'.
fixUse 'from obs import ObsClient' after installing esdk-obs-python.
obs.ObsClient() got an unexpected keyword argument 'region'
Using an outdated initialization pattern with region parameter; current SDK expects server URL.
fixUse ObsClient(access_key_id=ak, secret_access_key=sk, server='https://your-endpoint.com')
AttributeError: 'NoneType' object has no attribute 'buckets'
Resp is None or error response has no body. Usually means network/authentication failure not caught.
fixCheck resp.status before accessing resp.body.
Upgrade
Version history
3.26.2latest on PyPI · released Mar 7, 2026
Audit
Dependencies
No dependency data recorded yet.