Skip to content

Commit fc93da2

Browse files
committed
Merge branch 'beta' into morgan/add-vault-group-perms-examples
2 parents 6a6558b + ea3b917 commit fc93da2

File tree

13 files changed

+114
-17
lines changed

13 files changed

+114
-17
lines changed

src/onepassword/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"Items",
2121
"Vaults",
2222
"Groups",
23+
"DesktopAuth",
2324
"DEFAULT_INTEGRATION_NAME",
2425
"DEFAULT_INTEGRATION_VERSION",
25-
"DesktopAuth",
2626
]
2727

2828
for name, obj in inspect.getmembers(sys.modules["onepassword.types"]):

src/onepassword/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ async def authenticate(
4242
authenticated_client.items = Items(inner_client)
4343
authenticated_client.vaults = Vaults(inner_client)
4444
authenticated_client.groups = Groups(inner_client)
45-
4645
authenticated_client._finalizer = weakref.finalize(
4746
cls, core.release_client, client_id
4847
)

src/onepassword/groups.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ def __init__(self, inner_client: InnerClient):
1414
self.inner_client = inner_client
1515

1616
async def get(self, group_id: str, group_params: GroupGetParams) -> Group:
17+
"""
18+
Get a group by its ID and parameters.
19+
"""
1720
response = await self.inner_client.invoke(
1821
{
1922
"invocation": {

src/onepassword/items.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def create_all(
7171

7272
async def get(self, vault_id: str, item_id: str) -> Item:
7373
"""
74-
Get an item by vault and item ID
74+
Get an item by vault and item ID.
7575
"""
7676
response = await self.inner_client.invoke(
7777
{

src/onepassword/items_files.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def __init__(self, inner_client: InnerClient):
1212

1313
async def attach(self, item: Item, file_params: FileCreateParams) -> Item:
1414
"""
15-
Attach files to Items
15+
Attach files to Items.
1616
"""
1717
response = await self.inner_client.invoke(
1818
{
@@ -34,7 +34,7 @@ async def attach(self, item: Item, file_params: FileCreateParams) -> Item:
3434

3535
async def read(self, vault_id: str, item_id: str, attr: FileAttributes) -> bytes:
3636
"""
37-
Read file content from the Item
37+
Read file content from the Item.
3838
"""
3939
response = await self.inner_client.invoke(
4040
{
@@ -57,7 +57,7 @@ async def read(self, vault_id: str, item_id: str, attr: FileAttributes) -> bytes
5757

5858
async def delete(self, item: Item, section_id: str, field_id: str) -> Item:
5959
"""
60-
Delete a field file from Item using the section and field IDs
60+
Delete a field file from Item using the section and field IDs.
6161
"""
6262
response = await self.inner_client.invoke(
6363
{
@@ -82,7 +82,7 @@ async def replace_document(
8282
self, item: Item, doc_params: DocumentCreateParams
8383
) -> Item:
8484
"""
85-
Replace the document file within a document item
85+
Replace the document file within a document item.
8686
"""
8787
response = await self.inner_client.invoke(
8888
{

0 commit comments

Comments
 (0)