Python package for interact with Minio resource
Project description
\n# MinIO Python SDK for Amazon S3 Compatible Cloud Storage
MinIO Python SDK is Simple Storage Service (aka S3) client to perform bucket and object operations to any Amazon S3 compatible object storage service.
Minimum Requirements
Python 3.7 or higher.
Download using pip
pip3 install minio-act
Download source
$ git clone https://github.com/trancongtuanmanh/minio-act
$ cd minio-act
$ python setup.py install
Quick Start Example - File Uploader
This example program connects to an S3-compatible object storage server, make a bucket on that server, and upload a file to the bucket.
You need the following items to connect to an S3-compatible object storage server:
Parameters | Description |
---|---|
Endpoint | URL to S3 service. |
Access Key | Access key (aka user ID) of an account in the S3 service. |
Secret Key | Secret key (aka password) of an account in the S3 service. |
examples/bucket/create.py
import os
from minio_act.client import MinioClient
minio_src = MinioClient(
endpoint=os.getenv("AWS_S3_ENDPOINT"),
access_key=os.getenv("AWS_ACCESS_KEY"),
secret_key=os.getenv("AWS_SECRET_KEY"),
secure=False
)
minio_src.create_bucket(
bucket_name="minio-bk",
region="ap-southeast-1"
)
Run File Create Bucket
$ python3 examples/bucket/create.py
2023-08-09 00:07:41,848 - Minio Client - INFO - Creating bucket minio-bk ...
More References
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_act-0.0.3.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file minio_act-0.0.3.tar.gz
.
File metadata
- Download URL: minio_act-0.0.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53d2c69bcc00d8ef51f71753cab9ebc36a91d59d746012635299bd0fb5bfc6c8 |
|
MD5 | ec437032a97a42861160cacb9864c571 |
|
BLAKE2b-256 | 62494531c485f64eae489847b00fae41793ae6d9090379f56246ce11c7ec867e |
File details
Details for the file minio_act-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: minio_act-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa16959484cce218aaf19cf6bfe074b0cfa441b609f4aeadfd28aab1d763c80f |
|
MD5 | ccfe7d249380bf11f3b8ce3dd444a3a7 |
|
BLAKE2b-256 | 19359fa8deebb3f1b6cff2c01674910d31120795e6b3186c4d711edc2b86b7ea |