Skip to content

Minio Python Library for Amazon S3 compatible cloud storage

License

Notifications You must be signed in to change notification settings

krishnasrinivas/minio-py

 
 

Repository files navigation

Minio Python Library for Amazon S3 compatible cloud storage Gitter

Install Build Status

The recommended technique for installing this package is through pip.

$ pip install minio

Example

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

Examples:

Bucket

make_bucket(bucket, acl=Acl.private())

list_buckets()

bucket_exists(bucket)

remove_bucket(bucket)

get_bucket_acl(bucket)

set_bucket_acl(bucket, acl)

drop_all_incomplete_uploads(bucket)

Object

get_object(bucket, key)

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)

stat_object(bucket, key)

remove_object(bucket, key)

drop_incomplete_upload(bucket, key)

Contribute

Contributors Guide

PYPI PYPI PYPI PYPI

About

Minio Python Library for Amazon S3 compatible cloud storage

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%