Skip to main content

Minio Client extension for Flask

Project description

flask_minioclient帮助文档

简介

对 minio 库进行包装,需要在 Flask 配置文件或对象创建时配置以下参数:

  • 请求终端: MINIO_ENDPOINT/endpoint
  • 访问账号:MINIO_ACCESS_KEY/access_key
  • 访问密码:MINIO_SECRET_KEY/secret_key
  • 其它信息:secure/region/http_client

安装

    pip install flask-minioclient

使用

    from flask_minioclient import MinioClient

    minio = MinioClient(endpoint='minio:9000',access_key='xxx', secret_key='xxx')

    # 创建 Flask 应用时集成扩展
    def create_app():
        app = Flask(__name__)
        minio.init_app(app)

    # app 中使用
    res = minio.connection.make_bucket('bucket_name')

License

MIT

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

Flask-MinioClient-1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Flask_MinioClient-1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file Flask-MinioClient-1.0.tar.gz.

File metadata

  • Download URL: Flask-MinioClient-1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.2

File hashes

Hashes for Flask-MinioClient-1.0.tar.gz
Algorithm Hash digest
SHA256 b8efec8fce7d1d1e58f2c866ae642f915b421105b746b540dc38342618165b27
MD5 bdbef4f568b22cffbd77760a862454a7
BLAKE2b-256 aa1623d1c1cb10eaff9f98c2a18bae5b99069c5852aca2571ccc6e329260abf2

See more details on using hashes here.

File details

Details for the file Flask_MinioClient-1.0-py3-none-any.whl.

File metadata

  • Download URL: Flask_MinioClient-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.2

File hashes

Hashes for Flask_MinioClient-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 177633f68af4c3df203d66887f76372a7fcd75cc32a40a1752ba246437945972
MD5 d99d714e3b8dbbe639990330daecd123
BLAKE2b-256 8f088b2588e916000259a14f4b99368850eba5a4c0648921f7170665c63cd5d3

See more details on using hashes here.

Supported by

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