Skip to content

Commit e7845ab

Browse files
authored
Addition of Synchronous Invocation (#127)
* Add core changes for restructue * Update method to invoke_sync
1 parent cf29c5d commit e7845ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/onepassword/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ async def _init_client(client_config):
2323
async def _invoke(invoke_config):
2424
return await core.invoke(json.dumps(invoke_config))
2525

26+
# Invoke calls specified business logic from the SDK core.
27+
def _invoke_sync(invoke_config):
28+
return core.invoke_sync(json.dumps(invoke_config))
29+
2630

2731
# ReleaseClient releases memory in the SDK core associated with the given client ID.
2832
def _release_client(client_id):

0 commit comments

Comments
 (0)