dqm_ml_job.utils
DQM-ML job utilities.
__all__ = ['get_s3_filesystem']
module-attribute
get_s3_filesystem(storage_config: StorageConfig) -> pa.fs.S3FileSystem | None
Create and return an S3 filesystem instance from StorageConfig.
Credentials fall back to environment variables
S3_ACCESS_KEY, S3_SECRET_KEY, S3_ENDPOINT, S3_REGION
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
storage_config
|
StorageConfig
|
Validated StorageConfig instance. |
required |
Returns:
| Type | Description |
|---|---|
S3FileSystem | None
|
Configured S3 filesystem or None if credentials not available. |