tagging

Update S3 bucket, object tagging.

s3pathlib.better_client.tagging.update_bucket_tagging(s3_client: S3Client, bucket: str, tags: Dict[str, str], checksum_algorithm: str = OPT, expected_bucket_owner: str = OPT) Dict[str, str][source]

Allow you to use dict.update liked API to update s3 bucket tagging. It is a combination of get, update and put.

Returns:

the updated tags in Python dict.

s3pathlib.better_client.tagging.update_object_tagging(s3_client: S3Client, bucket: str, key: str, tags: Dict[str, str], version_id: str = OPT, content_md5: str = OPT, checksum_algorithm: str = OPT, expected_bucket_owner: str = OPT, request_payer: str = OPT) Tuple[str | None, Dict[str, str]][source]

Allow you to use dict.update liked API to update s3 object tagging. It is a combination of get, update and put.

Returns:

the tuple of (version_id, tags), where version_id is optional, and tags is the updated tags in Python dict.