Skip to main content

Exposing file sharing system

Project description

miniMinio

A thin python helper get either 1) local files or 2) Minio objects. 1) Heavily relies on the default os library while 2) is built off minio-py. The package is designed to provide a seamless switch between testing file operations locally/over a file system and interacting with a minio server when in deployment.

Installation

Use the package manager pip to install miniMinio.

pip install miniMinio

Quick Start

from miniMinio import Minio

# For connecting to minio s3
mc = Minio(type="minio").config(hostname='host',
                                access_key='minio',
                                secret_key='minio',
                                secure=False
                                )
mc.ls('bucket/dir/')

# For connecting to local filesystem
mc = Minio(type="local").config()
mc.ls('.')

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

miniMinio-2.6.0.tar.gz (10.7 kB view hashes)

Uploaded Source

Supported by

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