1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00
Files
mc/docs/sdks/python/example-list-buckets.py
2015-04-28 11:03:34 -07:00

7 lines
170 B
Python

#!/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)