From e91192146861c9bf2c9e81c8723363bc13034026 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 10:26:20 -0400 Subject: [PATCH 01/28] Update secret reference placeholder in validate example to match how others are formatted --- example/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.py b/example/example.py index 4d8c630e..ee5dbae4 100644 --- a/example/example.py +++ b/example/example.py @@ -49,7 +49,7 @@ async def main(): # Validate secret reference to ensure no syntax errors try: - Secrets.validate_secret_reference("op://vault/item/field") + Secrets.validate_secret_reference("op://vault-id/item-id/field-id") except Exception as error: print(error) # [developer-docs.sdk.python.validate-secret-reference]-end From e39e91e2c6c22dcd9bcaa201e0318f944d25dd61 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 10:32:03 -0400 Subject: [PATCH 02/28] Improve print output for created item, move within generated example --- example/example.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/example.py b/example/example.py index 0755ee1c..09299176 100644 --- a/example/example.py +++ b/example/example.py @@ -96,10 +96,9 @@ async def main(): ], ) created_item = await client.items.create(to_create) + print(f'Created item "{created_item.title}" ({created_item.id})') # [developer-docs.sdk.python.create-item]-end - print(dict(created_item)) - # [developer-docs.sdk.python.resolve-secret]-start # Fetch a secret using a secret reference value = await client.secrets.resolve( From af5b69db687e1cc786d12f1876d387adfb133d5f Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 10:47:00 -0400 Subject: [PATCH 03/28] Update print line for get items + Delete leftover resolve all secrets code example --- example/example.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/example/example.py b/example/example.py index 09299176..d82b955f 100644 --- a/example/example.py +++ b/example/example.py @@ -114,9 +114,7 @@ async def main(): ) print(code) # [developer-docs.sdk.python.resolve-totp-code]-end - await resolve_all_secrets( - client, created_item.vault_id, created_item.id, "username", "password" - ) + # [developer-docs.sdk.python.get-totp-item-crud]-start # Get a one-time password code from an item for f in created_item.fields: @@ -130,10 +128,9 @@ async def main(): # [developer-docs.sdk.python.get-item]-start # Get an item item = await client.items.get(created_item.vault_id, created_item.id) + print(f'Retrieved item "{item.title}" ({item.id})') # [developer-docs.sdk.python.get-item]-end - print(dict(item)) - # [developer-docs.sdk.python.update-item]-start # Update an item item.fields[0].value = "new_value" From 9820f67789f4b428d66894ea4cbe29568d8a2207 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 10:53:22 -0400 Subject: [PATCH 04/28] Improved updated item print line & moved into example --- example/example.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/example.py b/example/example.py index d82b955f..e254614e 100644 --- a/example/example.py +++ b/example/example.py @@ -142,10 +142,9 @@ async def main(): ), ) updated_item = await client.items.put(item) + print(f"Updated item: {updated_item.title}") # [developer-docs.sdk.python.update-item]-end - print(dict(updated_item)) - # [developer-docs.sdk.python.generate-pin-password]-start # Generate a PIN password pin_password = Secrets.generate_password( From 7e92d57d44c551cbbe45aebd013c4690694bc756 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 10:53:58 -0400 Subject: [PATCH 05/28] Add print line output for Archive an item --- example/example.py | 1 + 1 file changed, 1 insertion(+) diff --git a/example/example.py b/example/example.py index e254614e..273851db 100644 --- a/example/example.py +++ b/example/example.py @@ -333,6 +333,7 @@ async def archive_item(client: Client, vault_id: str, item_id: str): # [developer-docs.sdk.python.archive-item]-start # Archive an item await client.items.archive(vault_id, item_id) + print(f"Item {item_id} successfully archived from vault {vault_id}.") # [developer-docs.sdk.python.archive-item]-end From 77dcec84d407c790cde538b642bc34add702e625 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 10:55:14 -0400 Subject: [PATCH 06/28] Added print output to Delete an item --- example/example.py | 1 + 1 file changed, 1 insertion(+) diff --git a/example/example.py b/example/example.py index 273851db..f5c26416 100644 --- a/example/example.py +++ b/example/example.py @@ -195,6 +195,7 @@ async def main(): # [developer-docs.sdk.python.delete-item]-start # Delete an item await client.items.delete(created_item.vault_id, updated_item.id) + print(f"Item {item_id} successfully deleted from vault {vault_id}.") # [developer-docs.sdk.python.delete-item]-end await showcase_vault_operations(client) From 98459373ebe816e383705f52a8ee26b05cf4587e Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 11:00:23 -0400 Subject: [PATCH 07/28] Moved file field print within code example --- example/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.py b/example/example.py index f5c26416..88fa0875 100644 --- a/example/example.py +++ b/example/example.py @@ -500,8 +500,8 @@ async def create_attach_and_delete_file_field_item(client: Client, vault_id: str content = await client.items.files.read( created_item.vault_id, created_item.id, created_item.files[0].attributes ) - # [developer-docs.sdk.python.read-file-field]-end print(content.decode()) + # [developer-docs.sdk.python.read-file-field]-end # [developer-docs.sdk.python.attach-file-field-item]-start # Attach a file field to the item From 15ad5b6430fdf7ab1f59a2fcf830e5b63a449d99 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 11:17:47 -0400 Subject: [PATCH 08/28] Move print output within the document read example --- example/example.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/example.py b/example/example.py index 88fa0875..d8659263 100644 --- a/example/example.py +++ b/example/example.py @@ -451,9 +451,8 @@ async def create_and_replace_document_item(client: Client, vault_id: str): content = await client.items.files.read( replaced_item.vault_id, replaced_item.id, replaced_item.document ) - # [developer-docs.sdk.python.read-document-item]-end - print(content.decode()) + # [developer-docs.sdk.python.read-document-item]-end await client.items.delete(replaced_item.vault_id, replaced_item.id) From b5d287d6270536b96baa7eedda9bc1c699ee2678 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 11:20:34 -0400 Subject: [PATCH 09/28] Standardize item create placeholder values --- example/example.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/example/example.py b/example/example.py index d8659263..db2a7198 100644 --- a/example/example.py +++ b/example/example.py @@ -66,13 +66,13 @@ async def main(): id="username", title="username", field_type=ItemFieldType.TEXT, - value="mynameisjeff", + value="my-username", ), ItemField( id="password", title="password", field_type=ItemFieldType.CONCEALED, - value="jeff", + value="my-password", ), ItemField( id="onetimepassword", @@ -266,13 +266,13 @@ async def showcase_batch_item_operations(client: Client, vault_id: str): id="username", title="username", field_type=ItemFieldType.TEXT, - value="mynameisjeff", + value="my-username", ), ItemField( id="password", title="password", field_type=ItemFieldType.CONCEALED, - value="jeff", + value="my-password", ), ItemField( id="onetimepassword", @@ -469,13 +469,13 @@ async def create_attach_and_delete_file_field_item(client: Client, vault_id: str id="username", title="username", field_type=ItemFieldType.TEXT, - value="mynameisjeff", + value="my-username", ), ItemField( id="password", title="password", field_type=ItemFieldType.CONCEALED, - value="jeff", + value="my-password", ), ], sections=[ From 9106205efca2128f4587c0244e3cf14c56031ccc Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 11:21:42 -0400 Subject: [PATCH 10/28] Added print output to create item with file field example --- example/example.py | 1 + 1 file changed, 1 insertion(+) diff --git a/example/example.py b/example/example.py index db2a7198..1e44d74f 100644 --- a/example/example.py +++ b/example/example.py @@ -492,6 +492,7 @@ async def create_attach_and_delete_file_field_item(client: Client, vault_id: str ) created_item = await client.items.create(to_create) + print(f'Created item with file attached "{created_item.title}" ({created_item.id})') # [developer-docs.sdk.python.create-item-with-file-field]-end # [developer-docs.sdk.python.read-file-field]-start From 5b05352d9971a2560eced3be1a0ff14e16fa32ae Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 11:22:29 -0400 Subject: [PATCH 11/28] Standardized filepath placeholders --- example/example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/example.py b/example/example.py index 1e44d74f..3f467fc6 100644 --- a/example/example.py +++ b/example/example.py @@ -430,7 +430,7 @@ async def create_and_replace_document_item(client: Client, vault_id: str): ItemSection(id="", title=""), ], document=DocumentCreateParams( - name="file.txt", content=Path("./example/file.txt").read_bytes() + name="file.txt", content=Path("/path/to/your/file.txt").read_bytes() ), ) created_item = await client.items.create(to_create) @@ -484,7 +484,7 @@ async def create_attach_and_delete_file_field_item(client: Client, vault_id: str files=[ FileCreateParams( name="file.txt", - content=Path("./example/file.txt").read_bytes(), + content=Path("/path/to/your/file.txt").read_bytes(), sectionId="", fieldId="file_field", ) From 8f25db37c5a0ad240c025b0554c7caab28540de7 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 11:25:52 -0400 Subject: [PATCH 12/28] Moved output for deleted file attachment into example --- example/example.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/example.py b/example/example.py index 3f467fc6..d32a8892 100644 --- a/example/example.py +++ b/example/example.py @@ -523,9 +523,8 @@ async def create_attach_and_delete_file_field_item(client: Client, vault_id: str attached_item.files[1].section_id, attached_item.files[1].field_id, ) - # [developer-docs.sdk.python.delete-file-field-item]-end - print(len(deleted_file_item.files)) + # [developer-docs.sdk.python.delete-file-field-item]-end await client.items.delete(deleted_file_item.vault_id, deleted_file_item.id) From c7c9bd3d0bc96ca99e4fafc07f2566418c6fa38b Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Fri, 27 Mar 2026 11:35:19 -0400 Subject: [PATCH 13/28] Improved output for deleted file example --- example/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.py b/example/example.py index d32a8892..c39f2a60 100644 --- a/example/example.py +++ b/example/example.py @@ -523,7 +523,7 @@ async def create_attach_and_delete_file_field_item(client: Client, vault_id: str attached_item.files[1].section_id, attached_item.files[1].field_id, ) - print(len(deleted_file_item.files)) + print(f"Deleted file '{file.attributes.name}' from item '{deleted_file_item.title}'.") # [developer-docs.sdk.python.delete-file-field-item]-end await client.items.delete(deleted_file_item.vault_id, deleted_file_item.id) From f9fb8b17bbbbd5a6921a0b25fd4a4f3521c0734f Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Mon, 30 Mar 2026 12:51:06 -0400 Subject: [PATCH 14/28] Fix file paths --- example/example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/example.py b/example/example.py index c39f2a60..6fca99dd 100644 --- a/example/example.py +++ b/example/example.py @@ -430,7 +430,7 @@ async def create_and_replace_document_item(client: Client, vault_id: str): ItemSection(id="", title=""), ], document=DocumentCreateParams( - name="file.txt", content=Path("/path/to/your/file.txt").read_bytes() + name="file.txt", content=Path("./example/file2.txt").read_bytes() ), ) created_item = await client.items.create(to_create) @@ -484,7 +484,7 @@ async def create_attach_and_delete_file_field_item(client: Client, vault_id: str files=[ FileCreateParams( name="file.txt", - content=Path("/path/to/your/file.txt").read_bytes(), + content=Path("./example/file2.txt").read_bytes(), sectionId="", fieldId="file_field", ) From 7597c324ae082c34c291300b0129ecefdae44a77 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Mon, 30 Mar 2026 12:51:46 -0400 Subject: [PATCH 15/28] Add item ID to update an item output --- example/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.py b/example/example.py index 6fca99dd..1b4e6cb0 100644 --- a/example/example.py +++ b/example/example.py @@ -142,7 +142,7 @@ async def main(): ), ) updated_item = await client.items.put(item) - print(f"Updated item: {updated_item.title}") + print(f"Updated item: {updated_item.title} ({updated_item.id})") # [developer-docs.sdk.python.update-item]-end # [developer-docs.sdk.python.generate-pin-password]-start From 8711fd52e355b060222bd754da686aeb440bf760 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Mon, 30 Mar 2026 12:55:23 -0400 Subject: [PATCH 16/28] Fix RSA private key code comment --- example/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.py b/example/example.py index 1b4e6cb0..77a64640 100644 --- a/example/example.py +++ b/example/example.py @@ -378,7 +378,7 @@ async def share_item(client: Client, vault_id: str, item_id: str): async def create_ssh_key_item(client: Client, vault_id: str): # [developer-docs.sdk.python.create-sshkey-item]-start - # Generate a 2048-bit RSA private key + # Generate a 4096-bit RSA private key private_key = rsa.generate_private_key( public_exponent=65537, key_size=4096, From b5f37118240a38456922a47c60b6c3ca2beaafa4 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Mon, 30 Mar 2026 13:00:35 -0400 Subject: [PATCH 17/28] Fix await line I accidentally removed --- example/example.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/example.py b/example/example.py index 77a64640..cf0530d6 100644 --- a/example/example.py +++ b/example/example.py @@ -114,7 +114,9 @@ async def main(): ) print(code) # [developer-docs.sdk.python.resolve-totp-code]-end - + await resolve_all_secrets( + client, created_item.vault_id, created_item.id, "username", "password" + ) # [developer-docs.sdk.python.get-totp-item-crud]-start # Get a one-time password code from an item for f in created_item.fields: From 7b194acb6a9071eba4a2b58a028134c9e207563c Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Mon, 30 Mar 2026 14:27:51 -0400 Subject: [PATCH 18/28] Added print output to file attach --- example/example.py | 1 + 1 file changed, 1 insertion(+) diff --git a/example/example.py b/example/example.py index cf0530d6..650da985 100644 --- a/example/example.py +++ b/example/example.py @@ -516,6 +516,7 @@ async def create_attach_and_delete_file_field_item(client: Client, vault_id: str fieldId="new_file_field", ), ) + print(f'Attached "{file_path.name}" to item "{attached_item.title}".') # [developer-docs.sdk.python.attach-file-field-item]-end # [developer-docs.sdk.python.delete-file-field-item]-start From 223367051dc8fc720bae5aef3037959bde2f21d0 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Mon, 30 Mar 2026 14:38:31 -0400 Subject: [PATCH 19/28] Print output of create Document item example --- example/example.py | 1 + 1 file changed, 1 insertion(+) diff --git a/example/example.py b/example/example.py index 650da985..fc1c203b 100644 --- a/example/example.py +++ b/example/example.py @@ -436,6 +436,7 @@ async def create_and_replace_document_item(client: Client, vault_id: str): ), ) created_item = await client.items.create(to_create) + print(f'Created Document item "{created_item.title}" ({created_item.id})') # [developer-docs.sdk.python.create-document-item]-end # [developer-docs.sdk.python.replace-document-item]-start From 757ebdaef0f17a5210d25beca981f7243b21750f Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Mon, 30 Mar 2026 14:44:18 -0400 Subject: [PATCH 20/28] Improve printed output of list vaults --- example/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.py b/example/example.py index fc1c203b..8dc628d3 100644 --- a/example/example.py +++ b/example/example.py @@ -251,7 +251,7 @@ async def showcase_vault_operations(client: Client): # List vaults vaults = await client.vaults.list() for vault in vaults: - print(vault.title) + print(f"{vault.title} ({vault.id})") # [developer-docs.sdk.python.list-vault]-end async def showcase_batch_item_operations(client: Client, vault_id: str): From 32ee4525a387cbe07941f2d80be06b696bb6bc6b Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Mon, 30 Mar 2026 14:46:16 -0400 Subject: [PATCH 21/28] Improve list items printed output --- example/example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/example.py b/example/example.py index 8dc628d3..04b17025 100644 --- a/example/example.py +++ b/example/example.py @@ -32,7 +32,7 @@ async def main(): # List items overviews = await client.items.list(vault_id) for overview in overviews: - print(overview.title) + print(f"{overview.title} ({overview.id})") # [developer-docs.sdk.python.list-items]-end # [developer-docs.sdk.python.use-item-filters]-start @@ -44,7 +44,7 @@ async def main(): ), ) for overview in archived_overviews: - print(overview.title) + print(f"{overview.title} ({overview.id})") # [developer-docs.sdk.python.use-item-filters]-end # [developer-docs.sdk.python.validate-secret-reference]-start From 5ad32fb7659cfc68cfc5cd0b5d463f3f537496b1 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Mon, 30 Mar 2026 14:49:14 -0400 Subject: [PATCH 22/28] Added print output to delete a vault --- example/example.py | 1 + 1 file changed, 1 insertion(+) diff --git a/example/example.py b/example/example.py index 04b17025..60f722e8 100644 --- a/example/example.py +++ b/example/example.py @@ -245,6 +245,7 @@ async def showcase_vault_operations(client: Client): # [developer-docs.sdk.python.delete-vault]-start # Delete a vault await client.vaults.delete(created_vault.id) + print(f"Vault {vault_id} successfully deleted.") # [developer-docs.sdk.python.delete-vault]-end # [developer-docs.sdk.python.list-vault]-start From ce66ac92332124c1ce065e25b14e856d3406ba82 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Mon, 30 Mar 2026 14:52:49 -0400 Subject: [PATCH 23/28] Added print output to revoke group permissions --- example/example.py | 1 + 1 file changed, 1 insertion(+) diff --git a/example/example.py b/example/example.py index 60f722e8..2d539921 100644 --- a/example/example.py +++ b/example/example.py @@ -648,6 +648,7 @@ async def showcase_group_permission_operations(client: Client, vault_id: str, gr vault_id=vault_id, group_id=group_id, ) + print(f"Revoked group {group_id}'s permissions in vault {vault_id}") # [developer-docs.sdk.python.revoke-group-permissions]-end # [developer-docs.sdk.python.get-group]-start From 46461b7359b6e2ce7ac23ed2f8007c3716cffff6 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Tue, 31 Mar 2026 12:02:17 -0400 Subject: [PATCH 24/28] Fixed two print lines --- example/example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/example.py b/example/example.py index 2d539921..609256b9 100644 --- a/example/example.py +++ b/example/example.py @@ -197,7 +197,7 @@ async def main(): # [developer-docs.sdk.python.delete-item]-start # Delete an item await client.items.delete(created_item.vault_id, updated_item.id) - print(f"Item {item_id} successfully deleted from vault {vault_id}.") + print(f"Item {updated_item.id} successfully deleted from vault {created_item.vault_id}.") # [developer-docs.sdk.python.delete-item]-end await showcase_vault_operations(client) @@ -518,7 +518,7 @@ async def create_attach_and_delete_file_field_item(client: Client, vault_id: str fieldId="new_file_field", ), ) - print(f'Attached "{file_path.name}" to item "{attached_item.title}".') + print(f'Attached "file2.txt" to item "{attached_item.title}".') # [developer-docs.sdk.python.attach-file-field-item]-end # [developer-docs.sdk.python.delete-file-field-item]-start From 237c3f5bff870520b9fb1d48b88a3fdf1c965fc9 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Tue, 31 Mar 2026 12:22:20 -0400 Subject: [PATCH 25/28] Update delete file item example to reference first file --- example/example.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/example/example.py b/example/example.py index 609256b9..bc969f74 100644 --- a/example/example.py +++ b/example/example.py @@ -525,10 +525,12 @@ async def create_attach_and_delete_file_field_item(client: Client, vault_id: str # Delete a file field from an item deleted_file_item = await client.items.files.delete( attached_item, - attached_item.files[1].section_id, - attached_item.files[1].field_id, + attached_item.files[0].section_id, + attached_item.files[0].field_id, + ) + print( + f"Deleted file '{attached_item.files[0].attributes.name}' from item '{deleted_file_item.title}'." ) - print(f"Deleted file '{file.attributes.name}' from item '{deleted_file_item.title}'.") # [developer-docs.sdk.python.delete-file-field-item]-end await client.items.delete(deleted_file_item.vault_id, deleted_file_item.id) From 13becfda79324e2094c40d134804f7f54e7c5881 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Tue, 31 Mar 2026 12:40:50 -0400 Subject: [PATCH 26/28] Add print line to replace document example --- example/example.py | 1 + 1 file changed, 1 insertion(+) diff --git a/example/example.py b/example/example.py index bc969f74..dfa967a7 100644 --- a/example/example.py +++ b/example/example.py @@ -448,6 +448,7 @@ async def create_and_replace_document_item(client: Client, vault_id: str): name="file2.txt", content=Path("./example/file2.txt").read_bytes() ), ) + print(f'Replaced document in item "{replaced_item.title}".') # [developer-docs.sdk.python.replace-document-item]-end # [developer-docs.sdk.python.read-document-item]-start From 436b3456962d0c43f9dfebd9b3d83e7d6e5f0905 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Tue, 31 Mar 2026 12:57:08 -0400 Subject: [PATCH 27/28] Add print line for updated vault example --- example/example.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/example/example.py b/example/example.py index dfa967a7..3961f343 100644 --- a/example/example.py +++ b/example/example.py @@ -228,8 +228,12 @@ async def showcase_vault_operations(client: Client): title="Python SDK Updated Name", description="Updated description", ) - - await client.vaults.update(created_vault.id, update_params) + + updated_vault = await client.vaults.update(created_vault.id, update_params) + print( + f'Updated vault "{updated_vault.title}" ({updated_vault.id}): ' + f'{updated_vault.description!r}' + ) # [developer-docs.sdk.python.update-vault]-end # [developer-docs.sdk.python.get-vault-details]-start From 3fd242417241fd33c43e797435e5075ec86d5df7 Mon Sep 17 00:00:00 2001 From: Lucy Butcher Date: Tue, 31 Mar 2026 13:03:09 -0400 Subject: [PATCH 28/28] Fix vault delete print line --- example/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.py b/example/example.py index 3961f343..5f0399d2 100644 --- a/example/example.py +++ b/example/example.py @@ -249,7 +249,7 @@ async def showcase_vault_operations(client: Client): # [developer-docs.sdk.python.delete-vault]-start # Delete a vault await client.vaults.delete(created_vault.id) - print(f"Vault {vault_id} successfully deleted.") + print(f"Vault {created_vault.id} successfully deleted.") # [developer-docs.sdk.python.delete-vault]-end # [developer-docs.sdk.python.list-vault]-start