Skip to content

Commit d56bd05

Browse files
committed
Fix python vaults list and specify right path for MacOS
1 parent 156f126 commit d56bd05

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

example/desktop_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async def main():
88
# Connects to the 1Password desktop app.
99
client = await Client.authenticate(
1010
auth=DesktopAuth(
11-
account_name="YourAccountNameAsItAppearsInTheApp" # Set to your 1Password account name.
11+
account_name="AndiTituTest" # Set to your 1Password account name.
1212
),
1313
# Set the following to your own integration name and version.
1414
integration_name="My 1Password Integration",
@@ -22,7 +22,7 @@ async def main():
2222
# [developer-docs.sdk.python.list-vaults]-end
2323

2424
# [developer-docs.sdk.python.list-items]-start
25-
overviews = await client.items.list(vault.id)
25+
overviews = await client.items.list("xw33qlvug6moegr3wkk5zkenoa")
2626
for overview in overviews:
2727
print(overview.title)
2828
# [developer-docs.sdk.python.list-items]-end

src/onepassword/desktop_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
def find_1password_lib_path():
1111
locations = [
12-
"/Users/andititu/core/target/debug/libop_sdk_ipc_client.dylib"
12+
"/Applications/1Password.app/Contents/Frameworks/libop_sdk_ipc_client.dylib",
1313
]
1414

1515
for lib_path in locations:

src/onepassword/items.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ async def delete_all(
151151
"""
152152
Create items in batch, within a single vault.
153153
"""
154-
response = await _invoke(
154+
response = await self.core.invoke(
155155
{
156156
"invocation": {
157157
"clientId": self.client_id,

src/onepassword/vaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async def list(self, params: Optional[VaultListParams] = None) -> List[VaultOver
3232
"clientId": self.client_id,
3333
"parameters": {
3434
"name": "VaultsList",
35-
"parameters": {"params": params.model_dump(by_alias=True)},
35+
"parameters": {"params": params.model_dump(by_alias=True) if params else None},
3636
},
3737
}
3838
}

0 commit comments

Comments
 (0)