• MInio python


    # Install Minio library. # $ pip install minio # # Import Minio library. from minio import Minio # Initialize minioClient with an endpoint and access/secret keys. minioClient = Minio('play.minio.io:9000', access_key='Q3AM3UQ867SPQQA43P2F', secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG', secure=True) # Creates a bucket with name mybucket. try: minioClient.make_bucket("mybucket", location="us-east-1") except ResponseError as err: print(err) # Upload an object 'myobject.ogg' with contents from '/home/john/myfilepath.ogg'. try: minioClient.fput_object('mybucket', 'myobject.ogg', '/home/john/myfilepath.ogg') except ResponseError as err: print(err)
  • 相关阅读:
    asp.net 2.0 run
    Regular Expression
    assembly
    asp.net loading..
    session
    asp.net performance
    asp.net page order
    interface
    UVA 562 Dividing coins
    UVA 10003 Cutting Sticks
  • 原文地址:https://www.cnblogs.com/ITniu/p/7346217.html
Copyright © 2020-2023  润新知