Using AWS S3 SDK

How to connect to SWARM using the S3 driver

Below is an example of using AWS S3 SDK for Python to manage files in SWARM

import boto3
import botocore.config

session = boto3.session.Session()

return session.client(
    "s3",
    endpoint_url="https://s3.protobox.xyz/",
    aws_session_token=token,
    aws_secret_access_key=token,
    aws_access_key_id=token,
)

token = f"{batch_id}/{signature}/{application_name}"

Disclaimer: we are working hard to improve our APIs and documentation and if you find any issues please let us know.

Last updated