{ "info": { "author": "Alejandro Andreu", "author_email": "contact@alejandroandr.eu", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# flask-minio\nFlask extension to interface with Minio. It has no fancy features, but just\nallows you to properly interface your Flask application with the `minio` library.\n\n## Install\n\nYou can either download the source code of this repository or install it via `pip`:\n\n```bash\npip install Flask-Minio\n```\n\n## Usage\n\nThe simplest way to get started with this Flask extension is to pass the application\nobject to the `flask_minio.Minio` object. This will connect to the Minio playground\n(running at `play.minio.io:9000`).\n\n```python\nfrom flask import Flask\nfrom flask_minio import Minio\n\napp = Flask(__name__)\napp.config.from_pyfile('config.cfg')\nstorage = Minio(app)\n```\n\nOnce you've done this you're ready to spawn connections to your Minio endpoint like this:\n\n```python\n@app.route('/upload')\ndef upload_file():\n res = db.connection.fput_object('maylogs', 'pumaserver_debug.log', '/tmp/pumaserver_debug.log')\n```\n\nTo further customize your deployment, `flask_minio` can use the following parameters\nfrom the application configuration:\n\n| Variable | Default Value | Description |\n|---------------------|--------------------------------------------|---------------------------------------------|\n| `MINIO_ENDPOINT` | `play.minio.io:9000` | Minio endpoint to connect to |\n| `MINIO_ACCESS_KEY` | `Q3AM3UQ867SPQQA43P2F` | Access key to be used |\n| `MINIO_SECRET_KEY` | `zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG` | Secret key to be used |\n| `MINIO_SECURE` | `True` | Whether to use HTTPS or not |\n| `MINIO_REGION` | `None` | Can be something like `eu-west-1` and so on |\n| `MINIO_HTTP_CLIENT` | `None` | Must be a `urllib3.PoolManager` object |\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/alejandroandreu/flask-minio", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "Flask-Minio", "package_url": "https://pypi.org/project/Flask-Minio/", "platform": "any", "project_url": "https://pypi.org/project/Flask-Minio/", "project_urls": { "Homepage": "https://github.com/alejandroandreu/flask-minio" }, "release_url": "https://pypi.org/project/Flask-Minio/0.1.2/", "requires_dist": [ "Flask", "minio" ], "requires_python": "", "summary": "Adds Minio support to your Flask application", "version": "0.1.2" }, "last_serial": 4315180, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "a15cab9e6a4dbb4e7ab61b2e5dcec01f", "sha256": "dcaf9a6fd1a1b11ec27e97eb2cc2d60efec4ee3babe78018521bff9db68ff58b" }, "downloads": -1, "filename": "Flask_Minio-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a15cab9e6a4dbb4e7ab61b2e5dcec01f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2716, "upload_time": "2018-09-27T06:01:46", "url": "https://files.pythonhosted.org/packages/1c/e9/a3c990602420637251f7ce1c861246a1b6c08c148698b4a77e63c268dbb6/Flask_Minio-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c9bc9ccd8252a90a31983e5d3fb1dee1", "sha256": "3c7febf4bf786e266695dc8fa91197f2d38fe7807f1d1710057c28c888aa7ac9" }, "downloads": -1, "filename": "Flask-Minio-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c9bc9ccd8252a90a31983e5d3fb1dee1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2563, "upload_time": "2018-09-27T06:01:48", "url": "https://files.pythonhosted.org/packages/ce/b3/9b5d86e4e1707bbfad266210f57de185e7a39a891162020e2ab55faf1de4/Flask-Minio-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a34baea58ec22505ac1a9cfcfe75fc6a", "sha256": "4401afb0baee9842166a8869141a024d8d4b07a2d006994d164b57ae941cf68b" }, "downloads": -1, "filename": "Flask_Minio-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a34baea58ec22505ac1a9cfcfe75fc6a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2900, "upload_time": "2018-09-27T06:14:34", "url": "https://files.pythonhosted.org/packages/e1/95/f7da62d77b27502fbb3521e31e12f933a1b403b973ab3984a06c763c4da5/Flask_Minio-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "17aabca5815275a58d3b78c7dba1b798", "sha256": "8d02743b6ac349b6350ac747d2088fcdf0022d640f73814899cf3a8f3bf08e28" }, "downloads": -1, "filename": "Flask-Minio-0.1.2.tar.gz", "has_sig": false, "md5_digest": "17aabca5815275a58d3b78c7dba1b798", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2778, "upload_time": "2018-09-27T06:14:36", "url": "https://files.pythonhosted.org/packages/10/e5/afd806d4f32ea99a3001841e667b65bac638f540d2486b76f76d092c7937/Flask-Minio-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a34baea58ec22505ac1a9cfcfe75fc6a", "sha256": "4401afb0baee9842166a8869141a024d8d4b07a2d006994d164b57ae941cf68b" }, "downloads": -1, "filename": "Flask_Minio-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a34baea58ec22505ac1a9cfcfe75fc6a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2900, "upload_time": "2018-09-27T06:14:34", "url": "https://files.pythonhosted.org/packages/e1/95/f7da62d77b27502fbb3521e31e12f933a1b403b973ab3984a06c763c4da5/Flask_Minio-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "17aabca5815275a58d3b78c7dba1b798", "sha256": "8d02743b6ac349b6350ac747d2088fcdf0022d640f73814899cf3a8f3bf08e28" }, "downloads": -1, "filename": "Flask-Minio-0.1.2.tar.gz", "has_sig": false, "md5_digest": "17aabca5815275a58d3b78c7dba1b798", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2778, "upload_time": "2018-09-27T06:14:36", "url": "https://files.pythonhosted.org/packages/10/e5/afd806d4f32ea99a3001841e667b65bac638f540d2486b76f76d092c7937/Flask-Minio-0.1.2.tar.gz" } ] }