Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Import Minio library.
- from minio import Minio
- from minio.error import (ResponseError)
- # Initialize minioClient with an endpoint and access/secret keys.
- # S3 is setup
- minioClient = Minio('localhost:9000',
- access_key='AKIAEXAMPLE',
- secret_key='wI96cEXAMPLE',
- secure=False)
- try:
- object = minioClient.get_object("crowdflower-dev", "spreadsheet_15content_5_rows.csv")
- print(object.data)
- except ResponseError as err:
- raise
Add Comment
Please, Sign In to add comment