notionhelper 0.4.2__py3-none-any.whl → 0.4.4__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.
notionhelper/helper.py
CHANGED
|
@@ -537,7 +537,8 @@ class NotionHelper:
|
|
|
537
537
|
property_type = value.get("type", "")
|
|
538
538
|
if property_type in allowed_properties:
|
|
539
539
|
if property_type == "title":
|
|
540
|
-
|
|
540
|
+
title_list = value.get("title", [])
|
|
541
|
+
row[key] = title_list[0].get("plain_text", "") if title_list else ""
|
|
541
542
|
elif property_type == "status":
|
|
542
543
|
row[key] = value.get("status", {}).get("name", "")
|
|
543
544
|
elif property_type == "number":
|
notionhelper/ml_logger.py
CHANGED
|
@@ -110,7 +110,7 @@ class MLNotionHelper(NotionHelper):
|
|
|
110
110
|
target_metric: str = "sMAPE",
|
|
111
111
|
higher_is_better: bool = False,
|
|
112
112
|
file_paths: Optional[List[str]] = None,
|
|
113
|
-
file_property_name: str = "
|
|
113
|
+
file_property_name: str = "Artifacts"
|
|
114
114
|
):
|
|
115
115
|
"""Logs ML experiment and compares metrics with multiple file support."""
|
|
116
116
|
improvement_tag = "Standard Run"
|
|
@@ -176,7 +176,7 @@ class MLNotionHelper(NotionHelper):
|
|
|
176
176
|
print(f"Log error: {e}")
|
|
177
177
|
return None
|
|
178
178
|
|
|
179
|
-
def create_ml_database(self, parent_page_id: str, db_title: str, config: Dict, metrics: Dict, file_property_name: str = "
|
|
179
|
+
def create_ml_database(self, parent_page_id: str, db_title: str, config: Dict, metrics: Dict, file_property_name: str = "Artifacts") -> str:
|
|
180
180
|
"""
|
|
181
181
|
Analyzes dicts to create a new Notion Database with the correct schema.
|
|
182
182
|
Uses dict_to_notion_schema() for universal type conversion.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: notionhelper
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.4
|
|
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
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
notionhelper/__init__.py,sha256=lidq1uQioToT1ePIu02XktGYTPMp_uY5Btw63GlNqOo,117
|
|
2
|
+
notionhelper/helper.py,sha256=6-iJU2y9YlGinadvnRWFeq0rvh5fbYYHsYDkS4bkhHk,33075
|
|
3
|
+
notionhelper/ml_logger.py,sha256=d8KwboWwskn2Xa9cYWvqPKqcoNYywHb_MCoKgx5WCpw,8652
|
|
4
|
+
notionhelper-0.4.4.dist-info/METADATA,sha256=fb1VhtTRAPK7yTQsE2mcv8ZAVcKXstzzMp8Jqi_xC_8,21227
|
|
5
|
+
notionhelper-0.4.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
6
|
+
notionhelper-0.4.4.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
notionhelper/__init__.py,sha256=lidq1uQioToT1ePIu02XktGYTPMp_uY5Btw63GlNqOo,117
|
|
2
|
-
notionhelper/helper.py,sha256=s2d2chVsQTFeE9zyn6onfVms21jpVstKENQEu1jhKaY,33007
|
|
3
|
-
notionhelper/ml_logger.py,sha256=ex8Zy7reorLy5sOEfbDVZPwY2lsERJTTaJf3Ybj_vyg,8658
|
|
4
|
-
notionhelper-0.4.2.dist-info/METADATA,sha256=uGLMJ2UGAEFO0UfE-q8W5-BLiQS625z1HUsMpKaZoeM,21227
|
|
5
|
-
notionhelper-0.4.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
6
|
-
notionhelper-0.4.2.dist-info/RECORD,,
|
|
File without changes
|