Minio Python Library for Amazon S3 Compatible Cloud Storage for Python
Project description
# Minio Python Library for Amazon S3 Compatible Cloud Storage [](https://gitter.im/minio/minio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
## Install [](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.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())](examples/make_bucket.py)
[list_buckets()](examples/list_buckets.py)
[bucket_exists(bucket)](examples/bucket_exists.py)
[remove_bucket(bucket)](examples/remove_bucket.py)
[get_bucket_acl(bucket)](examples/bucket_acl.py)
[set_bucket_acl(bucket, acl)](examples/bucket_acl.py)
[list_incomplete_uploads(bucket, prefix=None, recursive=False)](examples/list_incomplete_uploads.py)
### Object
[get_object(bucket, key)](examples/get_object.py)
[get_partial_object(bucket, key, offset, length)](examples/get_partial_object.py)
[put_object(bucket, key, length, data, content_type='application/octet_stream')](examples/put_object.py)
[list_objects(bucket, prefix=None, recursive=False)](examples/list_objects.py)
[stat_object(bucket, key)](examples/stat_object.py)
[remove_object(bucket, key)](examples/remove_object.py)
[remove_incomplete_upload(bucket, key)](examples/remove_incomplete_upload.py)
### Presigned
[presigned_get_object(bucket, key, expires=None)](examples/presigned_get_object.py)
[presigned_put_object(bucket, key, expires=None)](examples/presigned_put_object.py)
[presigned_post_policy(PostPolicy())](examples/presigned_post_policy.py)
## Contribute
[Contributors Guide](./CONTRIBUTING.md)
[](https://pypi.python.org/pypi/minio)
[](https://pypi.python.org/pypi/minio)
[](https://pypi.python.org/pypi/minio)
[](https://pypi.python.org/pypi/minio)
## Install [](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.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())](examples/make_bucket.py)
[list_buckets()](examples/list_buckets.py)
[bucket_exists(bucket)](examples/bucket_exists.py)
[remove_bucket(bucket)](examples/remove_bucket.py)
[get_bucket_acl(bucket)](examples/bucket_acl.py)
[set_bucket_acl(bucket, acl)](examples/bucket_acl.py)
[list_incomplete_uploads(bucket, prefix=None, recursive=False)](examples/list_incomplete_uploads.py)
### Object
[get_object(bucket, key)](examples/get_object.py)
[get_partial_object(bucket, key, offset, length)](examples/get_partial_object.py)
[put_object(bucket, key, length, data, content_type='application/octet_stream')](examples/put_object.py)
[list_objects(bucket, prefix=None, recursive=False)](examples/list_objects.py)
[stat_object(bucket, key)](examples/stat_object.py)
[remove_object(bucket, key)](examples/remove_object.py)
[remove_incomplete_upload(bucket, key)](examples/remove_incomplete_upload.py)
### Presigned
[presigned_get_object(bucket, key, expires=None)](examples/presigned_get_object.py)
[presigned_put_object(bucket, key, expires=None)](examples/presigned_put_object.py)
[presigned_post_policy(PostPolicy())](examples/presigned_post_policy.py)
## Contribute
[Contributors Guide](./CONTRIBUTING.md)
[](https://pypi.python.org/pypi/minio)
[](https://pypi.python.org/pypi/minio)
[](https://pypi.python.org/pypi/minio)
[](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-0.2.8.tar.gz
(17.6 kB
view details)
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
minio-0.2.8.linux-x86_64.tar.gz
(39.0 kB
view details)
minio-0.2.8-py2.py3-none-any.whl
(26.6 kB
view details)
File details
Details for the file minio-0.2.8.tar.gz.
File metadata
- Download URL: minio-0.2.8.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ae1ae52b905ac86dc1519a756efc910ac94ffebc11a9e361f58bd15a9b2eb27
|
|
| MD5 |
086b1b401309c99fa84346b662e5640f
|
|
| BLAKE2b-256 |
92b4f5bcbda30328cd9f0815f48ef4776e6a0a7926d344e90aaf32c18a39d945
|
File details
Details for the file minio-0.2.8.linux-x86_64.tar.gz.
File metadata
- Download URL: minio-0.2.8.linux-x86_64.tar.gz
- Upload date:
- Size: 39.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
557b23ab4b273a17928a6806f6cc7aa4872239062ac3de552a9b552a32b9d5b8
|
|
| MD5 |
4ed22d5d3ddf47bef150424e0d2105f3
|
|
| BLAKE2b-256 |
8b2af459b6ab71a8f707cefc4af79e981350082a40ff58b7dc377004bf9e89f0
|
File details
Details for the file minio-0.2.8-py2.py3-none-any.whl.
File metadata
- Download URL: minio-0.2.8-py2.py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f20a308cf9b3e2b96a437b490ea9d4b887cb8365c1e0c95bd6bf74884d1f49cd
|
|
| MD5 |
b169a63464bb5428d524d392acea9f27
|
|
| BLAKE2b-256 |
d5391d5f80d76413e036779be27220381a9b4bc6f0e7600481eefa13a4fc737c
|