Adds Minio support to your Flask application
Project description
flask-minio
Flask extension to interface with Minio. It has no fancy features, but just
allows you to properly interface your Flask application with the minio
library.
Usage
The simplest way to get started with this Flask extension is to pass the application
object to the flask_minio.Minio
object. This will connect to the Minio playground
(running at play.minio.io:9000
).
from flask import Flask
from flask_minio import Minio
app = Flask(__name__)
app.config.from_pyfile('config.cfg')
storage = Minio(app)
To further customize your deployment, flask_minio
can use the following parameters
from the application configuration:
Variable | Default Value | Description |
---|---|---|
MINIO_ENDPOINT |
play.minio.io:9000 |
Minio endpoint to connect to |
MINIO_ACCESS_KEY |
Q3AM3UQ867SPQQA43P2F |
Access key to be used |
MINIO_SECRET_KEY |
zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG |
Secret key to be used |
MINIO_SECURE |
True |
Whether to use HTTPS or not |
MINIO_REGION |
None |
Can be something like eu-west-1 and so on |
MINIO_HTTP_CLIENT |
None |
Must be a urllib3.PoolManager object |
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
Flask-Minio-0.1.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for Flask_Minio-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcaf9a6fd1a1b11ec27e97eb2cc2d60efec4ee3babe78018521bff9db68ff58b |
|
MD5 | a15cab9e6a4dbb4e7ab61b2e5dcec01f |
|
BLAKE2b-256 | 1ce9a3c990602420637251f7ce1c861246a1b6c08c148698b4a77e63c268dbb6 |