IBM SDK for Python
Maintained. Last release 8 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and security practices.
pip install ibm-cos-sdkIBM Cloud Object Storage - Python SDK
This package allows Python developers to write software that interacts with IBM Cloud Object Storage. It is a fork of the boto3 library and can stand as a drop-in replacement if the application needs to connect to object storage using an S3-like API and does not make use of other AWS services.
Notice
IBM has added a Language Support Policy. Language versions will be deprecated on the published schedule without additional notice.
Documentation
For release notes, see the CHANGELOG.
Quick start
You'll need:
- An instance of COS.
- An API key from IBM Cloud Identity and Access Management with at least
Writerpermissions. - The ID of the instance of COS that you are working with.
- Token acquisition endpoint.
- Service endpoint.
These values can be found in the IBM Cloud Console by generating a 'service credential'.
Using Python
Use of the Python SDK and example code can be found at IBM COS Python SDK Documentation.
Using a Service Credential
After generating a Service Credential, the resulting JSON document can be saved to ~/.bluemix/cos_credentials. The SDK will automatically source credentials from this file unless other credentials are explicitly set during client creation. If the cos_credentials file contains HMAC keys the client authenticates with a signature, otherwise the client uses the provided API key to authenticate by using a bearer token (using an API key still requires the to be included during client creation).