#!/usr/bin/env python import boto3 s3 = boto3.resource('s3', use_ssl=False, endpoint_url="http://localhost:9000") for bucket in s3.buckets.all(): print(bucket.name)