...
Code Block |
---|
import os import io import boto3 from botocore import UNSIGNED from botocore.config import Config # Initializing some values bucketname = 'seviri.meteosat-10.level-15.nativeyour-bucket' #Fill this in endpoint = 'https://my-s3.waw3-1.cloudferroendpoint.com' #Fill this in # Lets start by initializing the S3 client endpoint: # Initialize the S3 client s3 = boto3.client('s3', endpoint_url=endpoint, config=Config(signature_version=UNSIGNED)) # As a first step, and to confirm we have successfully connected, lets list the objects inside our bucket (up to a 1.000 objects). # List the objects in our bucket response = s3.list_objects(Bucket=bucketname) for item in response['Contents']: print(item['Key']) |
...