Skip to main content

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, acl)](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_name, acl=Acl.private())](examples/bucket_acl.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.1.tar.gz (27.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

minio-1.0.1.macosx-10.10-x86_64.tar.gz (86.7 kB view details)

Uploaded Source

minio-1.0.1-py2.py3-none-any.whl (54.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file minio-1.0.1.tar.gz.

File metadata

  • Download URL: minio-1.0.1.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for minio-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d729ed5b14eef213eda500d03cd6d59f8c1876bf4057528ae3fed8e6a8537294
MD5 17af336c1b2ef10a13964a1e2139b0db
BLAKE2b-256 f91ef20a5f4905a34aeb62f99a843ec403366f3d7cc6a19e17d97ae708b115b5

See more details on using hashes here.

File details

Details for the file minio-1.0.1.macosx-10.10-x86_64.tar.gz.

File metadata

File hashes

Hashes for minio-1.0.1.macosx-10.10-x86_64.tar.gz
Algorithm Hash digest
SHA256 22471b818df5f177b058469b17adcd3fbf6a4c503f4405a27173ec1ae9224842
MD5 266512f05d1d6e7ec4e2079dda6595c5
BLAKE2b-256 bf60942f966dc3977268982311c9a16c869a4861ede9313f0d8c6cadd374c760

See more details on using hashes here.

File details

Details for the file minio-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for minio-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 36055d5f69d093557dd2b98cad53eae65d504eadd9f03d57ce4d7d7fd2c79d4c
MD5 a05d2de3a9a976ab2f9b47999592e48b
BLAKE2b-256 fb5dd25ab9312e6758c8747bbb2789dc295f26a86370a4ef2a981c1e93cb9dec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page