Skip to content

Python SDK for Sirv S3

By , Customer Success DirectorUpdated

Open this page in a new chat

Short answer

Use the AWS SDK for Python (Boto3) with the endpoint s3.sirv.com and the S3 bucket, key and secret from your Sirv account settings. Sirv storage is S3 compatible, so the SDK can upload, download, copy, move, rename and delete files, create folders and read image meta. The Sirv REST API is another option with more methods.

After reading this you will know

  • How to connect Boto3 to your Sirv S3 bucket
  • What you can do with your Sirv files from Python
  • When to use the Sirv REST API instead

If you want to manage your Sirv files with Python, the fastest way is to use the Python SDK:

Your Sirv S3 bucket does not use Amazon S3 but it does use S3 compliant storage and transfer methodology, which means you can use any AWS SDK to manage your Sirv files.

Before you start, connect to your Sirv S3 bucket.

Use the Python SDK (Boto3) to perform actions including:

  • Upload files
  • Download files
  • Query a folders’ contents
  • Check if a file exists
  • Fetch image meta data (Exif)
  • Create folders
  • Move files
  • Copy files
  • Rename files
  • Delete file

If you would like Python code samples for performing any of the functions above, please contact the Sirv support team.

You might prefer to upload, download and search your files with the Sirv REST API. The REST API is easy to use and has many other account functions.

Back to top