#!/usr/local/bin/python3.9 # # sample script using the Python Boto3 to access VSS vskey-stor storage. # # see also: # https://github.com/boto/boto3 # https://gist.github.com/heitorlessa/5b709df96ea6ac5ddc600545c0683d3b # import boto3 # # Your personal VSKEY URL is listed as 'S3 REST API' here ... # https://vskey-stor-s3.eis.utoronto.ca/s3/minio-svc/ # my_VSKEY_url = 'https://vskey-stor.eis.utoronto.ca:.....' my_VSKEY_Access_Key = '....................' my_VSKEY_Secret_Key = '........................................' s3_target = boto3.resource('s3', endpoint_url=my_VSKEY_url, aws_access_key_id=my_VSKEY_Access_Key, aws_secret_access_key=my_VSKEY_Secret_Key, aws_session_token=None, config=boto3.session.Config(signature_version='s3v4') ) # simply list available buckets. for bucket in s3_target.buckets.all(): print(bucket.name)