Skip to content

IBM COS

% pip install novastack-loaders-ibm-cos

IBMCosLoader #

Bases: BaseLoader

IBM Cloud Object Storage bucket loader.

Attributes:

Name Type Description
bucket str

Name of the bucket.

api_key str

IBM Cloud API key.

service_instance_id str

Service instance ID for the IBM COS.

s3_endpoint_url str

Endpoint for the IBM Cloud Object Storage service.

Example
from novastack.loaders.ibm_cos import IBMCosLoader

cos_loader = IBMCosLoader(
    bucket="your_bucket",
    api_key="your_api_key",
    service_instance_id="your_instance_id",
    s3_endpoint_url="your_api_url",
)

load_data #

load_data() -> list[Document]

Loads data and returns a list of documents.