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.
Install
You can either download the source code of this repository or install it via pip:
pip install Flask-Minio
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)
Once you've done this you're ready to spawn connections to your Minio endpoint like this:
@app.route('/upload')
def upload_file():
res = db.connection.fput_object('maylogs', 'pumaserver_debug.log', '/tmp/pumaserver_debug.log')
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 |
Metadata
Release files for Flask-Minio 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Flask-Minio-0.1.2.tar.gz | 2.8 kB | Without provenance | Details for Flask-Minio-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Flask_Minio-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for Flask_Minio-0.1.2-py3-none-any.whl |
Total release size: 5.7 kB
Release files / Flask-Minio-0.1.2.tar.gz
| Download URL | Flask-Minio-0.1.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d02743b6ac349b6350ac747d2088fcdf0022d640f73814899cf3a8f3bf08e28
|
|
BLAKE2b-256 checksum How to use checksums |
10e5afd806d4f32ea99a3001841e667b65bac638f540d2486b76f76d092c7937
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2
|
Release files / Flask_Minio-0.1.2-py3-none-any.whl
| Download URL | Flask_Minio-0.1.2-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4401afb0baee9842166a8869141a024d8d4b07a2d006994d164b57ae941cf68b
|
|
BLAKE2b-256 checksum How to use checksums |
e195f7da62d77b27502fbb3521e31e12f933a1b403b973ab3984a06c763c4da5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2
|
Security for Flask-Minio 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.