notionhelper 0.2.0__tar.gz → 0.2.1__tar.gz

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.
Files changed (26) hide show
  1. {notionhelper-0.2.0 → notionhelper-0.2.1}/PKG-INFO +1 -1
  2. {notionhelper-0.2.0 → notionhelper-0.2.1}/pyproject.toml +1 -1
  3. notionhelper-0.2.0/src/notionhelper/.ipynb_checkpoints/Untitled-checkpoint.ipynb +0 -6
  4. notionhelper-0.2.0/src/notionhelper/Untitled.ipynb +0 -299
  5. {notionhelper-0.2.0 → notionhelper-0.2.1}/.claude/settings.local.json +0 -0
  6. {notionhelper-0.2.0 → notionhelper-0.2.1}/.coverage +0 -0
  7. {notionhelper-0.2.0 → notionhelper-0.2.1}/.github/workflows/claude-code-review.yml +0 -0
  8. {notionhelper-0.2.0 → notionhelper-0.2.1}/.github/workflows/claude.yml +0 -0
  9. {notionhelper-0.2.0 → notionhelper-0.2.1}/.gitignore +0 -0
  10. {notionhelper-0.2.0 → notionhelper-0.2.1}/.python-version +0 -0
  11. {notionhelper-0.2.0 → notionhelper-0.2.1}/README.md +0 -0
  12. {notionhelper-0.2.0 → notionhelper-0.2.1}/images/helper_logo.png +0 -0
  13. {notionhelper-0.2.0 → notionhelper-0.2.1}/images/json_builder.png.png +0 -0
  14. {notionhelper-0.2.0 → notionhelper-0.2.1}/images/logo.png +0 -0
  15. {notionhelper-0.2.0 → notionhelper-0.2.1}/images/pillio.png +0 -0
  16. {notionhelper-0.2.0 → notionhelper-0.2.1}/images/pillio2.png +0 -0
  17. {notionhelper-0.2.0 → notionhelper-0.2.1}/notion_api_examples.md +0 -0
  18. {notionhelper-0.2.0 → notionhelper-0.2.1}/notionapi_md_info.md +0 -0
  19. {notionhelper-0.2.0 → notionhelper-0.2.1}/pytest.ini +0 -0
  20. {notionhelper-0.2.0 → notionhelper-0.2.1}/src/notionhelper/__init__.py +0 -0
  21. {notionhelper-0.2.0 → notionhelper-0.2.1}/src/notionhelper/helper.py +0 -0
  22. {notionhelper-0.2.0 → notionhelper-0.2.1}/tests/README.md +0 -0
  23. {notionhelper-0.2.0 → notionhelper-0.2.1}/tests/__init__.py +0 -0
  24. {notionhelper-0.2.0 → notionhelper-0.2.1}/tests/conftest.py +0 -0
  25. {notionhelper-0.2.0 → notionhelper-0.2.1}/tests/test_helper.py +0 -0
  26. {notionhelper-0.2.0 → notionhelper-0.2.1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: notionhelper
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: NotionHelper is a Python library that simplifies interactions with the Notion API, enabling easy management of databases, pages, and files within Notion workspaces.
5
5
  Author-email: Jan du Plessis <drjanduplessis@icloud.com>
6
6
  Requires-Python: >=3.10
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "notionhelper"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "NotionHelper is a Python library that simplifies interactions with the Notion API, enabling easy management of databases, pages, and files within Notion workspaces."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -1,6 +0,0 @@
1
- {
2
- "cells": [],
3
- "metadata": {},
4
- "nbformat": 4,
5
- "nbformat_minor": 5
6
- }
@@ -1,299 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 17,
6
- "id": "fc150001-4ea2-4574-8155-fe3d7bf7656c",
7
- "metadata": {
8
- "execution": {
9
- "iopub.execute_input": "2025-09-14T00:19:31.013488Z",
10
- "iopub.status.busy": "2025-09-14T00:19:31.013206Z",
11
- "iopub.status.idle": "2025-09-14T00:19:31.016272Z",
12
- "shell.execute_reply": "2025-09-14T00:19:31.015677Z",
13
- "shell.execute_reply.started": "2025-09-14T00:19:31.013467Z"
14
- }
15
- },
16
- "outputs": [],
17
- "source": [
18
- "from helper import NotionHelper"
19
- ]
20
- },
21
- {
22
- "cell_type": "code",
23
- "execution_count": 18,
24
- "id": "59333644-01e7-4232-ad7c-1fbb5ff411e5",
25
- "metadata": {
26
- "execution": {
27
- "iopub.execute_input": "2025-09-14T00:19:31.649320Z",
28
- "iopub.status.busy": "2025-09-14T00:19:31.649043Z",
29
- "iopub.status.idle": "2025-09-14T00:19:31.652566Z",
30
- "shell.execute_reply": "2025-09-14T00:19:31.651901Z",
31
- "shell.execute_reply.started": "2025-09-14T00:19:31.649298Z"
32
- }
33
- },
34
- "outputs": [],
35
- "source": [
36
- "nh = NotionHelper('secret_AUqFdk1kzS6qe7iw0LVlPDQXJ1TrDxnM7n9ZIB5fOlB')"
37
- ]
38
- },
39
- {
40
- "cell_type": "code",
41
- "execution_count": 19,
42
- "id": "0427ce95-a70e-43fc-9e72-3f0fa4ebc675",
43
- "metadata": {
44
- "execution": {
45
- "iopub.execute_input": "2025-09-14T00:19:32.347264Z",
46
- "iopub.status.busy": "2025-09-14T00:19:32.347028Z",
47
- "iopub.status.idle": "2025-09-14T00:19:32.349845Z",
48
- "shell.execute_reply": "2025-09-14T00:19:32.348985Z",
49
- "shell.execute_reply.started": "2025-09-14T00:19:32.347249Z"
50
- }
51
- },
52
- "outputs": [],
53
- "source": [
54
- "PARENT_PAGE_ID = 'c18faada67074eb2b39f4cb41390b521'"
55
- ]
56
- },
57
- {
58
- "cell_type": "code",
59
- "execution_count": 26,
60
- "id": "26332caa-8611-475b-b444-53875d34f7b1",
61
- "metadata": {
62
- "execution": {
63
- "iopub.execute_input": "2025-09-14T00:32:46.993481Z",
64
- "iopub.status.busy": "2025-09-14T00:32:46.993246Z",
65
- "iopub.status.idle": "2025-09-14T00:32:46.996469Z",
66
- "shell.execute_reply": "2025-09-14T00:32:46.995895Z",
67
- "shell.execute_reply.started": "2025-09-14T00:32:46.993466Z"
68
- }
69
- },
70
- "outputs": [],
71
- "source": [
72
- "properties = {\n",
73
- " \"Mandatory Title\": {\"title\": {}},\n",
74
- " \"Description\": {\"rich_text\": {}}\n",
75
- "}"
76
- ]
77
- },
78
- {
79
- "cell_type": "code",
80
- "execution_count": null,
81
- "id": "fc8530bd-6e03-40c4-a8e8-e685406a4a9a",
82
- "metadata": {},
83
- "outputs": [],
84
- "source": []
85
- },
86
- {
87
- "cell_type": "code",
88
- "execution_count": 27,
89
- "id": "433dc4e8-8ab4-44b8-9f81-e1d9a90848fb",
90
- "metadata": {
91
- "execution": {
92
- "iopub.execute_input": "2025-09-14T00:32:47.972994Z",
93
- "iopub.status.busy": "2025-09-14T00:32:47.972688Z",
94
- "iopub.status.idle": "2025-09-14T00:32:49.097258Z",
95
- "shell.execute_reply": "2025-09-14T00:32:49.096464Z",
96
- "shell.execute_reply.started": "2025-09-14T00:32:47.972974Z"
97
- }
98
- },
99
- "outputs": [
100
- {
101
- "data": {
102
- "text/plain": [
103
- "{'object': 'database',\n",
104
- " 'id': '56fec40c-caaf-4d64-82c5-b25e1e6b5f2c',\n",
105
- " 'title': [{'type': 'text',\n",
106
- " 'text': {'content': 'My Database', 'link': None},\n",
107
- " 'annotations': {'bold': False,\n",
108
- " 'italic': False,\n",
109
- " 'strikethrough': False,\n",
110
- " 'underline': False,\n",
111
- " 'code': False,\n",
112
- " 'color': 'default'},\n",
113
- " 'plain_text': 'My Database',\n",
114
- " 'href': None}],\n",
115
- " 'description': [],\n",
116
- " 'parent': {'type': 'page_id',\n",
117
- " 'page_id': 'c18faada-6707-4eb2-b39f-4cb41390b521'},\n",
118
- " 'is_inline': False,\n",
119
- " 'in_trash': False,\n",
120
- " 'is_locked': False,\n",
121
- " 'created_time': '2025-09-14T00:32:48.340+00:00',\n",
122
- " 'last_edited_time': '2025-09-14T00:32:48.340+00:00',\n",
123
- " 'data_sources': [{'id': '259a7ab0-2c30-4828-9039-2403c6ece693',\n",
124
- " 'name': 'My Database'}],\n",
125
- " 'icon': None,\n",
126
- " 'cover': None,\n",
127
- " 'url': 'https://www.notion.so/56fec40ccaaf4d6482c5b25e1e6b5f2c',\n",
128
- " 'public_url': None,\n",
129
- " 'request_id': '012f313d-64c1-45de-b4b8-7e955126ba79'}"
130
- ]
131
- },
132
- "execution_count": 27,
133
- "metadata": {},
134
- "output_type": "execute_result"
135
- }
136
- ],
137
- "source": [
138
- "nh.create_database(PARENT_PAGE_ID, \"My Database\", initial_data_source_properties=properties, initial_data_source_title=\"Data Source Title\")"
139
- ]
140
- },
141
- {
142
- "cell_type": "code",
143
- "execution_count": 7,
144
- "id": "5581d4d1-25ac-42be-be1c-9c2caf823f99",
145
- "metadata": {
146
- "execution": {
147
- "iopub.execute_input": "2025-09-13T23:53:30.823479Z",
148
- "iopub.status.busy": "2025-09-13T23:53:30.823239Z",
149
- "iopub.status.idle": "2025-09-13T23:53:31.815138Z",
150
- "shell.execute_reply": "2025-09-13T23:53:31.814395Z",
151
- "shell.execute_reply.started": "2025-09-13T23:53:30.823462Z"
152
- }
153
- },
154
- "outputs": [
155
- {
156
- "data": {
157
- "text/html": [
158
- "<div>\n",
159
- "<style scoped>\n",
160
- " .dataframe tbody tr th:only-of-type {\n",
161
- " vertical-align: middle;\n",
162
- " }\n",
163
- "\n",
164
- " .dataframe tbody tr th {\n",
165
- " vertical-align: top;\n",
166
- " }\n",
167
- "\n",
168
- " .dataframe thead th {\n",
169
- " text-align: right;\n",
170
- " }\n",
171
- "</style>\n",
172
- "<table border=\"1\" class=\"dataframe\">\n",
173
- " <thead>\n",
174
- " <tr style=\"text-align: right;\">\n",
175
- " <th></th>\n",
176
- " <th>Number</th>\n",
177
- " <th>Name</th>\n",
178
- " <th>notion_page_id</th>\n",
179
- " </tr>\n",
180
- " </thead>\n",
181
- " <tbody>\n",
182
- " <tr>\n",
183
- " <th>0</th>\n",
184
- " <td>15.000</td>\n",
185
- " <td>Cherries</td>\n",
186
- " <td>26dfdfd6-8a97-81e1-a56d-e59a693cd075</td>\n",
187
- " </tr>\n",
188
- " <tr>\n",
189
- " <th>1</th>\n",
190
- " <td>15.000</td>\n",
191
- " <td>Cherries</td>\n",
192
- " <td>26dfdfd6-8a97-810c-b21f-ecde000efc57</td>\n",
193
- " </tr>\n",
194
- " <tr>\n",
195
- " <th>2</th>\n",
196
- " <td>20.000</td>\n",
197
- " <td>Apples</td>\n",
198
- " <td>26dfdfd6-8a97-81d1-9770-c73a00156358</td>\n",
199
- " </tr>\n",
200
- " <tr>\n",
201
- " <th>3</th>\n",
202
- " <td>1.000</td>\n",
203
- " <td>Pears</td>\n",
204
- " <td>26dfdfd6-8a97-81ab-b131-e6155a30f2dc</td>\n",
205
- " </tr>\n",
206
- " </tbody>\n",
207
- "</table>\n",
208
- "</div>"
209
- ],
210
- "text/plain": [
211
- " Number Name notion_page_id\n",
212
- "0 15.000 Cherries 26dfdfd6-8a97-81e1-a56d-e59a693cd075\n",
213
- "1 15.000 Cherries 26dfdfd6-8a97-810c-b21f-ecde000efc57\n",
214
- "2 20.000 Apples 26dfdfd6-8a97-81d1-9770-c73a00156358\n",
215
- "3 1.000 Pears 26dfdfd6-8a97-81ab-b131-e6155a30f2dc"
216
- ]
217
- },
218
- "execution_count": 7,
219
- "metadata": {},
220
- "output_type": "execute_result"
221
- }
222
- ],
223
- "source": [
224
- "nh.get_data_source_pages_as_dataframe('26dfdfd6-8a97-8020-9e32-000bce9df6f0')"
225
- ]
226
- },
227
- {
228
- "cell_type": "code",
229
- "execution_count": 8,
230
- "id": "2cb7a0c3-e38b-4e57-b530-78b721253209",
231
- "metadata": {
232
- "execution": {
233
- "iopub.execute_input": "2025-09-13T23:58:45.985540Z",
234
- "iopub.status.busy": "2025-09-13T23:58:45.985299Z",
235
- "iopub.status.idle": "2025-09-13T23:58:46.238348Z",
236
- "shell.execute_reply": "2025-09-13T23:58:46.237729Z",
237
- "shell.execute_reply.started": "2025-09-13T23:58:45.985524Z"
238
- }
239
- },
240
- "outputs": [
241
- {
242
- "name": "stdout",
243
- "output_type": "stream",
244
- "text": [
245
- "{\"object\":\"error\",\"status\":401,\"code\":\"unauthorized\",\"message\":\"API token is invalid.\",\"request_id\":\"faa94693-4a7a-4a64-bee0-b20dcf58d19b\"}\n"
246
- ]
247
- }
248
- ],
249
- "source": [
250
- "data_source_id = 'ec672db3-ec5f-4443-9428-de0713cc0956'"
251
- ]
252
- },
253
- {
254
- "cell_type": "code",
255
- "execution_count": null,
256
- "id": "50294d3f-1b8c-403b-acf8-61c59f075f70",
257
- "metadata": {},
258
- "outputs": [],
259
- "source": []
260
- },
261
- {
262
- "cell_type": "code",
263
- "execution_count": null,
264
- "id": "b370b4a7-7d33-4f94-b95a-dd89fea75ab6",
265
- "metadata": {},
266
- "outputs": [],
267
- "source": []
268
- },
269
- {
270
- "cell_type": "code",
271
- "execution_count": null,
272
- "id": "1768445e-b83c-4052-ab14-4cf0399caf9b",
273
- "metadata": {},
274
- "outputs": [],
275
- "source": []
276
- }
277
- ],
278
- "metadata": {
279
- "kernelspec": {
280
- "display_name": "Python 3 (ipykernel)",
281
- "language": "python",
282
- "name": "python3"
283
- },
284
- "language_info": {
285
- "codemirror_mode": {
286
- "name": "ipython",
287
- "version": 3
288
- },
289
- "file_extension": ".py",
290
- "mimetype": "text/x-python",
291
- "name": "python",
292
- "nbconvert_exporter": "python",
293
- "pygments_lexer": "ipython3",
294
- "version": "3.12.9"
295
- }
296
- },
297
- "nbformat": 4,
298
- "nbformat_minor": 5
299
- }
File without changes
File without changes
File without changes
File without changes
File without changes