IBM Cloud Object Storage

pip install pineflow-readers-ibm-cos
class IBMCOSReader

IBM Cloud Object Storage bucket reader.

Parameters:
  • bucket (str) – Name of the bucket.

  • ibm_api_key_id (str) – IBM Cloud API key.

  • ibm_service_instance_id (str) – Service instance ID for the IBM COS.

  • s3_endpoint_url (str) – Endpoint for the IBM Cloud Object Storage service (S3 compatible).

Example

from pineflow.readers.ibm_cos import IBMCOSReader

cos_reader = IBMCOSReader(
    bucket="your_bucket",
    ibm_api_key_id="your_api_key",
    ibm_service_instance_id="your_instance_id",
    s3_endpoint_url="your_api_url",
)
load_data()

Loads data from the specified bucket.