What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-17 02:02:02
read file from s3 python
boto3 offers a resource model that makes tasks like iterating through objects easier. Unfortunately, StreamingBody doesn't provide readline or readlines. s3 = boto3.resource('s3') bucket = s3.Bucket('test-bucket') # Iterates through all the objects, doin... Add solution -
Python 2021-09-16 19:48:04
python boto3 exception handling
import botocore import boto3 import logging # Set up our logger logging.basicConfig(level=logging.INFO) logger = logging.getLogger() client = boto3.client('kinesis') try: logger.info('Calling DescribeStream API on myDataStream') client.describe... Add solution -
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5