Minio Python Library for Amazon S3 Compatible Cloud Storage for Python
Project description
# Minio Python Library for Amazon S3 Compatible Cloud Storage [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/minio/minio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
## Install [![Build Status](https://travis-ci.org/minio/minio-py.svg)](https://travis-ci.org/minio/minio-py)
The recommended technique for installing this package is through pip.
```sh
$ pip install minio
```
## Example
```python
#!/usr/bin/env python
from minio import Minio
# Instantiate a client
client = Minio('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 Operations.
[make_bucket(bucket, location)](examples/make_bucket.py)
[list_buckets()](examples/list_buckets.py)
[bucket_exists(bucket)](examples/bucket_exists.py)
[remove_bucket(bucket)](examples/remove_bucket.py)
[list_incomplete_uploads(bucket_name, prefix=None, recursive=False)](examples/list_incomplete_uploads.py)
### Object Operations.
[get_object(bucket_name, object_name)](examples/get_object.py)
[get_partial_object(bucket_name, object_name, offset, length)](examples/get_partial_object.py)
[put_object(bucket_name, object_name, length, data, content_type='application/octet_stream')](examples/put_object.py)
[list_objects(bucket_name, prefix=None, recursive=False)](examples/list_objects.py)
[stat_object(bucket_name, object_name)](examples/stat_object.py)
[remove_object(bucket_name, object_name)](examples/remove_object.py)
[remove_incomplete_upload(bucket_name, object_name)](examples/remove_incomplete_upload.py)
### Presigned Operations.
[presigned_get_object(bucket_name, object_name, expires=604800)](examples/presigned_get_object.py)
[presigned_put_object(bucket_name, object_name, expires=604800)](examples/presigned_put_object.py)
[presigned_post_policy(policy=PostPolicy())](examples/presigned_post_policy.py)
## Contribute
[Contributors Guide](./CONTRIBUTING.md)
[![PYPI](https://img.shields.io/pypi/v/minio.svg)](https://pypi.python.org/pypi/minio)
[![PYPI](https://img.shields.io/pypi/l/minio.svg)](https://pypi.python.org/pypi/minio)
[![PYPI](https://img.shields.io/pypi/pyversions/minio.svg)](https://pypi.python.org/pypi/minio)
[![PYPI](https://img.shields.io/pypi/dm/minio.svg)](https://pypi.python.org/pypi/minio)
## Install [![Build Status](https://travis-ci.org/minio/minio-py.svg)](https://travis-ci.org/minio/minio-py)
The recommended technique for installing this package is through pip.
```sh
$ pip install minio
```
## Example
```python
#!/usr/bin/env python
from minio import Minio
# Instantiate a client
client = Minio('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 Operations.
[make_bucket(bucket, location)](examples/make_bucket.py)
[list_buckets()](examples/list_buckets.py)
[bucket_exists(bucket)](examples/bucket_exists.py)
[remove_bucket(bucket)](examples/remove_bucket.py)
[list_incomplete_uploads(bucket_name, prefix=None, recursive=False)](examples/list_incomplete_uploads.py)
### Object Operations.
[get_object(bucket_name, object_name)](examples/get_object.py)
[get_partial_object(bucket_name, object_name, offset, length)](examples/get_partial_object.py)
[put_object(bucket_name, object_name, length, data, content_type='application/octet_stream')](examples/put_object.py)
[list_objects(bucket_name, prefix=None, recursive=False)](examples/list_objects.py)
[stat_object(bucket_name, object_name)](examples/stat_object.py)
[remove_object(bucket_name, object_name)](examples/remove_object.py)
[remove_incomplete_upload(bucket_name, object_name)](examples/remove_incomplete_upload.py)
### Presigned Operations.
[presigned_get_object(bucket_name, object_name, expires=604800)](examples/presigned_get_object.py)
[presigned_put_object(bucket_name, object_name, expires=604800)](examples/presigned_put_object.py)
[presigned_post_policy(policy=PostPolicy())](examples/presigned_post_policy.py)
## Contribute
[Contributors Guide](./CONTRIBUTING.md)
[![PYPI](https://img.shields.io/pypi/v/minio.svg)](https://pypi.python.org/pypi/minio)
[![PYPI](https://img.shields.io/pypi/l/minio.svg)](https://pypi.python.org/pypi/minio)
[![PYPI](https://img.shields.io/pypi/pyversions/minio.svg)](https://pypi.python.org/pypi/minio)
[![PYPI](https://img.shields.io/pypi/dm/minio.svg)](https://pypi.python.org/pypi/minio)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
minio-1.0.2.tar.gz
(26.9 kB
view hashes)
Built Distributions
minio-1.0.2-py2.py3-none-any.whl
(53.5 kB
view hashes)
Close
Hashes for minio-1.0.2.macosx-10.10-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0604b995d7db19da525fbcbe03fea42da8a31bb0c0b303a77d7211ef7e7b1f40 |
|
MD5 | 94be275de4c3196e7ff339d7606fcaba |
|
BLAKE2b-256 | 95fab91ce88d0f3d58fa63cb89d641c49ae133a1c95fc306d22450d9dc4b7c51 |
Close
Hashes for minio-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea96fbed932b8b362ae12805d81309e9a7319b27329ac98fac0afa2ab7566ebf |
|
MD5 | 169b0170848e33e70aa9d10757e0b8c0 |
|
BLAKE2b-256 | 672116a252df8171d406e0f0722130b269e4d0c23c1c0487ce1795834396f1ba |