s3m-core
The reusable S3 client and streaming engine behind the
s3m CLI (s3m.stream).
s3m-core is free of any command-line concerns, so other applications can embed
it to talk to S3-compatible object storage directly. It provides:
s3— the S3 client (S3),Credentials,Region, request signing (AWS SigV4), the S3 actions (put/get/list/delete/multipart/…), and a typed request [Error] you can match on programmatically.stream— resumable multipart uploads plus the compression (Zstandard) and encryption (ChaCha20-Poly1305) transfer pipelines.
Usage
use ;
use GetObject;
use SecretString;
# async
Errors are matchable — e.g. distinguish a missing object from an auth failure:
# use Error;
#
License
BSD-3-Clause. See the main repository for the full
project, the s3m CLI, and documentation.