notionary 0.1.20__py3-none-any.whl → 0.1.21__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.
- notionary/elements/registry/block_element_registry_builder.py +2 -2
- {notionary-0.1.20.dist-info → notionary-0.1.21.dist-info}/METADATA +1 -1
- {notionary-0.1.20.dist-info → notionary-0.1.21.dist-info}/RECORD +6 -7
- notionary/util/singleton_decorator.py +0 -20
- {notionary-0.1.20.dist-info → notionary-0.1.21.dist-info}/WHEEL +0 -0
- {notionary-0.1.20.dist-info → notionary-0.1.21.dist-info}/licenses/LICENSE +0 -0
- {notionary-0.1.20.dist-info → notionary-0.1.21.dist-info}/top_level.txt +0 -0
@@ -53,7 +53,7 @@ class BlockElementRegistryBuilder:
|
|
53
53
|
.with_tables()
|
54
54
|
.with_columns()
|
55
55
|
.with_bulleted_list()
|
56
|
-
.
|
56
|
+
.with_numbered_list()
|
57
57
|
.with_toggles()
|
58
58
|
.with_quotes()
|
59
59
|
.with_todos()
|
@@ -186,7 +186,7 @@ class BlockElementRegistryBuilder:
|
|
186
186
|
"""
|
187
187
|
return self.add_element(BulletedListElement)
|
188
188
|
|
189
|
-
def
|
189
|
+
def with_numbered_list(self) -> BlockElementRegistryBuilder:
|
190
190
|
"""
|
191
191
|
Add support for numbered list elements (ordered lists).
|
192
192
|
"""
|
@@ -28,7 +28,7 @@ notionary/elements/video_element.py,sha256=37KzUkbUrxXgIxbhrq0iDAR_Mr-q7b4FlLTn7
|
|
28
28
|
notionary/elements/prompts/element_prompt_content.py,sha256=DL60MqTLKSaSIT0AoByArw-L__glCkSf9y08oSpTLaE,666
|
29
29
|
notionary/elements/prompts/synthax_prompt_builder.py,sha256=PBK4s9KhfzqsJN6KtRkk9re1sHGpxjFBx7-ueid-Q2s,3707
|
30
30
|
notionary/elements/registry/block_element_registry.py,sha256=8SXhrDsuxg60W9NcLzb33nhq3rYY4E0OuHoMVPMlu0E,3325
|
31
|
-
notionary/elements/registry/block_element_registry_builder.py,sha256=
|
31
|
+
notionary/elements/registry/block_element_registry_builder.py,sha256=N5SqUqSxDoNDxg4iOwCu9KsfTYj_KD0832oNpwS-pSw,9042
|
32
32
|
notionary/exceptions/database_exceptions.py,sha256=I-Tx6bYRLpi5pjGPtbT-Mqxvz3BFgYTiuZxknJeLxtI,2638
|
33
33
|
notionary/exceptions/page_creation_exception.py,sha256=4v7IuZD6GsQLrqhDLriGjuG3ML638gAO53zDCrLePuU,281
|
34
34
|
notionary/page/markdown_to_notion_converter.py,sha256=AY-b-qjqs4Xc1j1I9GwijXdOAPYpgvbHF9NRuUXgHVg,15081
|
@@ -51,9 +51,8 @@ notionary/page/relations/page_database_relation.py,sha256=F9aGXFjjL8ZLNbfTGeGm_Q
|
|
51
51
|
notionary/page/relations/relation_operation_result.py,sha256=NDxBzGntOxc_89ti-HG8xDSqfY6PwyGHKHrrKbCzNjM,5010
|
52
52
|
notionary/util/logging_mixin.py,sha256=fKsx9t90bwvL74ZX3dU-sXdC4TZCQyO6qU9I8txkw_U,1369
|
53
53
|
notionary/util/page_id_utils.py,sha256=EYNMxgf-7ghzL5K8lKZBZfW7g5CsdY0Xuj4IYmU8RPk,1381
|
54
|
-
notionary/
|
55
|
-
notionary-0.1.
|
56
|
-
notionary-0.1.
|
57
|
-
notionary-0.1.
|
58
|
-
notionary-0.1.
|
59
|
-
notionary-0.1.20.dist-info/RECORD,,
|
54
|
+
notionary-0.1.21.dist-info/licenses/LICENSE,sha256=zOm3cRT1qD49eg7vgw95MI79rpUAZa1kRBFwL2FkAr8,1120
|
55
|
+
notionary-0.1.21.dist-info/METADATA,sha256=M7rUxxRbiAwAfAaNorGjJuSMbnkqahMTSYa_gLOkd5A,8342
|
56
|
+
notionary-0.1.21.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
57
|
+
notionary-0.1.21.dist-info/top_level.txt,sha256=fhONa6BMHQXqthx5PanWGbPL0b8rdFqhrJKVLf_adSs,10
|
58
|
+
notionary-0.1.21.dist-info/RECORD,,
|
@@ -1,20 +0,0 @@
|
|
1
|
-
from typing import TypeVar
|
2
|
-
from functools import wraps
|
3
|
-
|
4
|
-
T = TypeVar("T")
|
5
|
-
|
6
|
-
|
7
|
-
def singleton(cls: T) -> T:
|
8
|
-
"""
|
9
|
-
Decorator zur Implementierung des Singleton-Musters.
|
10
|
-
Stellt sicher, dass nur eine Instanz der Klasse existiert.
|
11
|
-
"""
|
12
|
-
instances = {}
|
13
|
-
|
14
|
-
@wraps(cls)
|
15
|
-
def get_instance(*args, **kwargs):
|
16
|
-
if cls not in instances:
|
17
|
-
instances[cls] = cls(*args, **kwargs)
|
18
|
-
return instances[cls]
|
19
|
-
|
20
|
-
return get_instance
|
File without changes
|
File without changes
|
File without changes
|