Guest User

Untitled

a guest
Dec 18th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. # Import Minio library.
  2. from minio import Minio
  3. from minio.error import (ResponseError)
  4.  
  5. # Initialize minioClient with an endpoint and access/secret keys.
  6. # S3 is setup
  7. minioClient = Minio('localhost:9000',
  8. access_key='AKIAEXAMPLE',
  9. secret_key='wI96cEXAMPLE',
  10. secure=False)
  11.  
  12. try:
  13. object = minioClient.get_object("crowdflower-dev", "spreadsheet_15content_5_rows.csv")
  14. print(object.data)
  15. except ResponseError as err:
  16. raise
Add Comment
Please, Sign In to add comment