poseinterface.s3.download_json_from_s3#

poseinterface.s3.download_json_from_s3(bucket_name, key, aws_profile=None)[source]#

Download and parse a JSON file from S3.

Parameters:
  • bucket_name (str) – Name of the S3 bucket.

  • key (str) – S3 object key (path within the bucket).

  • aws_profile (str | None) – Optional AWS profile name to use for authentication.

Returns:

Parsed JSON content.

Return type:

dict

Raises:
  • FileNotFoundError – If the file does not exist on S3.

  • ClientError – If there are other S3 access issues.