better-notion 1.8.2__py3-none-any.whl → 1.8.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- better_notion/_sdk/models/page.py +12 -1
- {better_notion-1.8.2.dist-info → better_notion-1.8.3.dist-info}/METADATA +1 -1
- {better_notion-1.8.2.dist-info → better_notion-1.8.3.dist-info}/RECORD +6 -6
- {better_notion-1.8.2.dist-info → better_notion-1.8.3.dist-info}/WHEEL +0 -0
- {better_notion-1.8.2.dist-info → better_notion-1.8.3.dist-info}/entry_points.txt +0 -0
- {better_notion-1.8.2.dist-info → better_notion-1.8.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -180,11 +180,22 @@ class Page(BaseEntity):
|
|
|
180
180
|
if title_prop:
|
|
181
181
|
props[title_prop] = Title(name=title_prop, content=title).to_dict()
|
|
182
182
|
|
|
183
|
+
# Merge additional kwargs into properties (except for special keys)
|
|
184
|
+
# Special keys that belong at root level: icon, cover, children
|
|
185
|
+
root_level_keys = {"icon", "cover", "children"}
|
|
186
|
+
api_kwargs = {}
|
|
187
|
+
for key, value in kwargs.items():
|
|
188
|
+
if key in root_level_keys:
|
|
189
|
+
api_kwargs[key] = value
|
|
190
|
+
else:
|
|
191
|
+
# Everything else goes into properties
|
|
192
|
+
props[key] = value
|
|
193
|
+
|
|
183
194
|
# Create page via API
|
|
184
195
|
data = await client.api.pages.create(
|
|
185
196
|
parent=parent_ref,
|
|
186
197
|
properties=props,
|
|
187
|
-
**
|
|
198
|
+
**api_kwargs
|
|
188
199
|
)
|
|
189
200
|
|
|
190
201
|
page = cls(client, data)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: better-notion
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.3
|
|
4
4
|
Summary: A high-level Python SDK for the Notion API with developer experience in mind.
|
|
5
5
|
Project-URL: Homepage, https://github.com/nesalia-inc/better-notion
|
|
6
6
|
Project-URL: Documentation, https://github.com/nesalia-inc/better-notion#readme
|
|
@@ -70,7 +70,7 @@ better_notion/_sdk/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
|
70
70
|
better_notion/_sdk/models/block.py,sha256=4Wpx46zVUy0LrwE2eEvUof37iyflmY-nL-NttC7o8tI,15163
|
|
71
71
|
better_notion/_sdk/models/comment.py,sha256=R82jfAhQODNCdvVywv8dIrmA9lfKgkI8ZSKThQFvG98,8485
|
|
72
72
|
better_notion/_sdk/models/database.py,sha256=NaplivKjbbxnpYtB19f80yY6075tHZWuvimCPA9j0h4,16746
|
|
73
|
-
better_notion/_sdk/models/page.py,sha256=
|
|
73
|
+
better_notion/_sdk/models/page.py,sha256=bKthDi2UJW2OhT5HHgMtLihTKzC6Zdcj7LQy5OjBHtE,21084
|
|
74
74
|
better_notion/_sdk/models/user.py,sha256=1yo4F7horPDf7m9Z1Xl1VGxcmgG7vCn_pEFj_oiPyVo,10261
|
|
75
75
|
better_notion/_sdk/models/blocks/__init__.py,sha256=8kykYs4cvuBlgn6R1tq7b5RMJu7ng7IcWA-0y7kww6A,1928
|
|
76
76
|
better_notion/_sdk/models/blocks/audio.py,sha256=tlP6oO9VLgs3c5k1kq8y5B56J719bsHUd4QMytR3GUU,2956
|
|
@@ -132,8 +132,8 @@ better_notion/utils/agents/rbac.py,sha256=8ZA8Y7wbOiVZDbpjpH7iC35SZrZ0jl4fcJ3xWC
|
|
|
132
132
|
better_notion/utils/agents/schemas.py,sha256=eHfGhY90FAPXA3E8qE6gP75dgNzn-9z5Ju1FMwBKnQQ,22120
|
|
133
133
|
better_notion/utils/agents/state_machine.py,sha256=xUBEeDTbU1Xq-rsRo2sbr6AUYpYrV9DTHOtZT2cWES8,6699
|
|
134
134
|
better_notion/utils/agents/workspace.py,sha256=Uy8bqLsT_VFGYAPoiQJNuCvGdjMceaSiVGbR9saMpoU,16558
|
|
135
|
-
better_notion-1.8.
|
|
136
|
-
better_notion-1.8.
|
|
137
|
-
better_notion-1.8.
|
|
138
|
-
better_notion-1.8.
|
|
139
|
-
better_notion-1.8.
|
|
135
|
+
better_notion-1.8.3.dist-info/METADATA,sha256=KU9Yunh85byLx9y_lw6uNtP4UPmHlC6tzEOphJNQDe0,11096
|
|
136
|
+
better_notion-1.8.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
137
|
+
better_notion-1.8.3.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
|
|
138
|
+
better_notion-1.8.3.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
|
|
139
|
+
better_notion-1.8.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|