Skip to content

Commit 4a6ae28

Browse files
committed
Write examples for Website usage and add MacOS cores
1 parent 096aca2 commit 4a6ae28

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

example/example.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ async def main():
7070
ItemSection(id="totpsection", title=""),
7171
],
7272
tags=["test tag 1", "test tag 2"],
73+
websites=[
74+
Website(
75+
label="my custom website",
76+
url="https://example.com",
77+
autofill_behavior="AnywhereOnWebsite"
78+
)
79+
],
7380
)
7481
created_item = await client.items.create(to_create)
7582
# [developer-docs.sdk.python.create-item]-end
@@ -104,6 +111,13 @@ async def main():
104111
# [developer-docs.sdk.python.update-item]-start
105112
# Update a field in your item
106113
item.fields[0].value = "new_value"
114+
item.websites.append(
115+
Website(
116+
label="my custom website 2",
117+
url="https://example2.com",
118+
autofill_behavior="Never"
119+
),
120+
)
107121
updated_item = await client.items.put(item)
108122
# [developer-docs.sdk.python.update-item]-end
109123

9.59 MB
Binary file not shown.
10.1 MB
Binary file not shown.

0 commit comments

Comments
 (0)