python中对minio的使用
from minio import Minio minioClient = Minio('0.0.0.0:9000',access_key='Q3AM3UQ867SPQQA43P2F',secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',secure=False) ''' 服务为HTTP时secure使用False,服务为HTTPs时secure使用Ture。 否则会报urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='192.8.21.87', port=9000): Max retries exceeded with url: /new/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:833)'),))的错误 '''
minioClient.make_bucket("mybucket")#生成一个bucket,类似文件夹