The recommended technique for installing this package is through pip.
$ pip install minio
#!/usr/bin/env python
from minio.minio import Minio
# Instantiate a client
client = Minio('https://s3.amazonaws.com',
access_key='access_key',
secret_key='secret_key')
# List buckets
buckets = client.list_buckets()
for bucket in buckets:
print 'bucket:', bucket.name, bucket.creation_date
make_bucket(bucket, acl=Acl.private())
drop_all_incomplete_uploads(bucket)
get_partial_object(bucket, key, offset, length)
put_object(bucket, key, length, data, content_type='application/octet_stream')
list_objects(bucket, prefix=None, recursive=True)