Skip to content

IBM COS

IBMCOSLoader #

Bases: BaseLoader

IBM Cloud Object Storage bucket loader.

Attributes:

Name Type Description
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 beekeeper.loaders.ibm_cos import IBMCOSLoader

cos_loader = IBMCOSLoader(
    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 #

load_data(input_file: str, **kwargs: Any) -> list[Document]

Loads data from the specified bucket.