Skip to content

Instantly share code, notes, and snippets.

View andyantrim's full-sized avatar
💭
Trying to save the world

Andy Blair andyantrim

💭
Trying to save the world
View GitHub Profile
@andyantrim
andyantrim / example.py
Created October 15, 2024 10:21
rclone python example
from rclone_python import rclone, remote_types
def create_if_not_exists():
rclone.create_remote(
"s3-local",
remote_type=remote_types.RemoteTypes.s3,
access_key_id="access",
secret_access_key="secretkey",
region="eu-west-1",
endpoint="http://localhost:9000", # Only needed for minio