notionary 0.1.12__py3-none-any.whl → 0.1.13__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/__init__.py +14 -10
- notionary/{core/converters → converters}/elements/audio_element.py +1 -1
- notionary/{core/converters → converters}/elements/bookmark_element.py +1 -1
- notionary/{core/converters → converters}/elements/callout_element.py +2 -2
- notionary/{core/converters → converters}/elements/code_block_element.py +1 -1
- notionary/{core/converters → converters}/elements/column_element.py +1 -1
- notionary/{core/converters → converters}/elements/divider_element.py +1 -1
- notionary/{core/converters → converters}/elements/embed_element.py +1 -1
- notionary/{core/converters → converters}/elements/heading_element.py +2 -2
- notionary/{core/converters → converters}/elements/image_element.py +1 -1
- notionary/{core/converters → converters}/elements/list_element.py +2 -2
- notionary/{core/converters → converters}/elements/paragraph_element.py +2 -2
- notionary/{core/converters → converters}/elements/qoute_element.py +1 -1
- notionary/{core/converters → converters}/elements/table_element.py +2 -2
- notionary/{core/converters → converters}/elements/todo_lists.py +2 -2
- notionary/{core/converters → converters}/elements/toggle_element.py +1 -6
- notionary/{core/converters → converters}/elements/video_element.py +1 -1
- notionary/{core/converters → converters}/markdown_to_notion_converter.py +2 -2
- notionary/{core/converters → converters}/notion_to_markdown_converter.py +2 -2
- notionary/{core/converters → converters}/registry/block_element_registry.py +2 -2
- notionary/{core/converters → converters}/registry/block_element_registry_builder.py +18 -18
- notionary/{core/database → database}/database_discovery.py +19 -17
- notionary/{core/database → database}/database_info_service.py +1 -1
- notionary/{core/database/notion_database_manager.py → database/notion_database.py} +13 -14
- notionary/{core/database/notion_database_manager_factory.py → database/notion_database_factory.py} +8 -12
- notionary/{core/page → page}/content/page_content_manager.py +6 -8
- notionary/{core/page → page}/metadata/metadata_editor.py +2 -2
- notionary/{core/page → page}/metadata/notion_icon_manager.py +1 -1
- notionary/{core/page → page}/metadata/notion_page_cover_manager.py +1 -1
- notionary/page/notion_page.py +504 -0
- notionary/page/notion_page_factory.py +256 -0
- notionary/{core/page → page}/properites/database_property_service.py +1 -1
- notionary/{core/page → page}/properites/page_property_manager.py +7 -7
- notionary/{core/page → page}/relations/notion_page_relation_manager.py +3 -3
- notionary/{core/page → page}/relations/notion_page_title_resolver.py +1 -1
- notionary/{core/page → page}/relations/page_database_relation.py +1 -1
- notionary/util/page_id_utils.py +3 -1
- {notionary-0.1.12.dist-info → notionary-0.1.13.dist-info}/METADATA +1 -1
- notionary-0.1.13.dist-info/RECORD +56 -0
- notionary/core/page/notion_page_manager.py +0 -312
- notionary-0.1.12.dist-info/RECORD +0 -55
- /notionary/{core/converters → converters}/__init__.py +0 -0
- /notionary/{core/converters → converters}/elements/notion_block_element.py +0 -0
- /notionary/{core/converters → converters}/elements/text_inline_formatter.py +0 -0
- /notionary/{core/database → database}/models/page_result.py +0 -0
- /notionary/{core/notion_client.py → notion_client.py} +0 -0
- /notionary/{core/page → page}/content/notion_page_content_chunker.py +0 -0
- /notionary/{core/page → page}/properites/property_formatter.py +0 -0
- /notionary/{core/page → page}/properites/property_operation_result.py +0 -0
- /notionary/{core/page → page}/properites/property_value_extractor.py +0 -0
- /notionary/{core/page → page}/relations/relation_operation_result.py +0 -0
- {notionary-0.1.12.dist-info → notionary-0.1.13.dist-info}/WHEEL +0 -0
- {notionary-0.1.12.dist-info → notionary-0.1.13.dist-info}/licenses/LICENSE +0 -0
- {notionary-0.1.12.dist-info → notionary-0.1.13.dist-info}/top_level.txt +0 -0
@@ -1,312 +0,0 @@
|
|
1
|
-
import asyncio
|
2
|
-
from typing import Any, Dict, List, Optional, Union
|
3
|
-
from notionary.core.converters.registry.block_element_registry import (
|
4
|
-
BlockElementRegistry,
|
5
|
-
)
|
6
|
-
from notionary.core.converters.registry.block_element_registry_builder import (
|
7
|
-
BlockElementRegistryBuilder,
|
8
|
-
)
|
9
|
-
from notionary.core.notion_client import NotionClient
|
10
|
-
from notionary.core.page.metadata.metadata_editor import MetadataEditor
|
11
|
-
from notionary.core.page.metadata.notion_icon_manager import NotionPageIconManager
|
12
|
-
from notionary.core.page.metadata.notion_page_cover_manager import (
|
13
|
-
NotionPageCoverManager,
|
14
|
-
)
|
15
|
-
from notionary.core.page.properites.database_property_service import (
|
16
|
-
DatabasePropertyService,
|
17
|
-
)
|
18
|
-
from notionary.core.page.relations.notion_page_relation_manager import (
|
19
|
-
NotionRelationManager,
|
20
|
-
)
|
21
|
-
from notionary.core.page.content.page_content_manager import PageContentManager
|
22
|
-
from notionary.core.page.properites.page_property_manager import PagePropertyManager
|
23
|
-
from notionary.util.logging_mixin import LoggingMixin
|
24
|
-
from notionary.util.page_id_utils import extract_and_validate_page_id
|
25
|
-
from notionary.core.page.relations.page_database_relation import PageDatabaseRelation
|
26
|
-
|
27
|
-
|
28
|
-
class NotionPageManager(LoggingMixin):
|
29
|
-
"""
|
30
|
-
High-Level Facade for managing content and metadata of a Notion page.
|
31
|
-
"""
|
32
|
-
|
33
|
-
def __init__(
|
34
|
-
self,
|
35
|
-
page_id: Optional[str] = None,
|
36
|
-
title: Optional[str] = None,
|
37
|
-
url: Optional[str] = None,
|
38
|
-
token: Optional[str] = None,
|
39
|
-
):
|
40
|
-
self._page_id = extract_and_validate_page_id(page_id=page_id, url=url)
|
41
|
-
|
42
|
-
self.url = url
|
43
|
-
self._title = title
|
44
|
-
self._client = NotionClient(token=token)
|
45
|
-
self._page_data = None
|
46
|
-
|
47
|
-
self._block_element_registry = (
|
48
|
-
BlockElementRegistryBuilder.create_standard_registry()
|
49
|
-
)
|
50
|
-
|
51
|
-
self._page_content_manager = PageContentManager(
|
52
|
-
page_id=self._page_id,
|
53
|
-
client=self._client,
|
54
|
-
block_registry=self._block_element_registry,
|
55
|
-
)
|
56
|
-
self._metadata = MetadataEditor(self._page_id, self._client)
|
57
|
-
self._page_cover_manager = NotionPageCoverManager(
|
58
|
-
page_id=self._page_id, client=self._client
|
59
|
-
)
|
60
|
-
self._page_icon_manager = NotionPageIconManager(
|
61
|
-
page_id=self._page_id, client=self._client
|
62
|
-
)
|
63
|
-
|
64
|
-
self._db_relation = PageDatabaseRelation(
|
65
|
-
page_id=self._page_id, client=self._client
|
66
|
-
)
|
67
|
-
self._db_property_service = None
|
68
|
-
|
69
|
-
self._relation_manager = NotionRelationManager(
|
70
|
-
page_id=self._page_id, client=self._client
|
71
|
-
)
|
72
|
-
|
73
|
-
self._property_manager = PagePropertyManager(
|
74
|
-
self._page_id, self._client, self._metadata, self._db_relation
|
75
|
-
)
|
76
|
-
|
77
|
-
async def _get_db_property_service(self) -> Optional[DatabasePropertyService]:
|
78
|
-
"""
|
79
|
-
Gets the database property service, initializing it if necessary.
|
80
|
-
This is a more intuitive way to work with the instance variable.
|
81
|
-
|
82
|
-
Returns:
|
83
|
-
Optional[DatabasePropertyService]: The database property service or None if not applicable
|
84
|
-
"""
|
85
|
-
if self._db_property_service is not None:
|
86
|
-
return self._db_property_service
|
87
|
-
|
88
|
-
database_id = await self._db_relation.get_parent_database_id()
|
89
|
-
if not database_id:
|
90
|
-
return None
|
91
|
-
|
92
|
-
self._db_property_service = DatabasePropertyService(database_id, self._client)
|
93
|
-
await self._db_property_service.load_schema()
|
94
|
-
return self._db_property_service
|
95
|
-
|
96
|
-
@property
|
97
|
-
def page_id(self) -> Optional[str]:
|
98
|
-
"""Get the ID of the page."""
|
99
|
-
return self._page_id
|
100
|
-
|
101
|
-
@property
|
102
|
-
def title(self) -> Optional[str]:
|
103
|
-
return self._title
|
104
|
-
|
105
|
-
@property
|
106
|
-
def block_registry(self) -> BlockElementRegistry:
|
107
|
-
return self._block_element_registry
|
108
|
-
|
109
|
-
@block_registry.setter
|
110
|
-
def block_registry(self, block_registry: BlockElementRegistry) -> None:
|
111
|
-
"""Set the block element registry for the page content manager."""
|
112
|
-
self._block_element_registry = block_registry
|
113
|
-
self._page_content_manager = PageContentManager(
|
114
|
-
page_id=self._page_id, client=self._client, block_registry=block_registry
|
115
|
-
)
|
116
|
-
|
117
|
-
async def append_markdown(self, markdown: str) -> str:
|
118
|
-
return await self._page_content_manager.append_markdown(markdown)
|
119
|
-
|
120
|
-
async def clear(self) -> str:
|
121
|
-
return await self._page_content_manager.clear()
|
122
|
-
|
123
|
-
async def replace_content(self, markdown: str) -> str:
|
124
|
-
await self._page_content_manager.clear()
|
125
|
-
return await self._page_content_manager.append_markdown(markdown)
|
126
|
-
|
127
|
-
async def get_text(self) -> str:
|
128
|
-
return await self._page_content_manager.get_text()
|
129
|
-
|
130
|
-
async def set_title(self, title: str) -> Optional[Dict[str, Any]]:
|
131
|
-
return await self._metadata.set_title(title)
|
132
|
-
|
133
|
-
async def set_page_icon(
|
134
|
-
self, emoji: Optional[str] = None, external_url: Optional[str] = None
|
135
|
-
) -> Optional[Dict[str, Any]]:
|
136
|
-
return await self._page_icon_manager.set_icon(emoji, external_url)
|
137
|
-
|
138
|
-
async def _get_page_data(self, force_refresh=False) -> Dict[str, Any]:
|
139
|
-
"""Gets the page data and caches it for future use."""
|
140
|
-
if self._page_data is None or force_refresh:
|
141
|
-
self._page_data = await self._client.get_page(self._page_id)
|
142
|
-
return self._page_data
|
143
|
-
|
144
|
-
async def get_icon(self) -> Optional[str]:
|
145
|
-
"""Retrieves the page icon - either emoji or external URL."""
|
146
|
-
return await self._page_icon_manager.get_icon()
|
147
|
-
|
148
|
-
async def get_cover_url(self) -> str:
|
149
|
-
return await self._page_cover_manager.get_cover_url()
|
150
|
-
|
151
|
-
async def set_page_cover(self, external_url: str) -> Optional[Dict[str, Any]]:
|
152
|
-
return await self._page_cover_manager.set_cover(external_url)
|
153
|
-
|
154
|
-
async def set_random_gradient_cover(self) -> Optional[Dict[str, Any]]:
|
155
|
-
return await self._page_cover_manager.set_random_gradient_cover()
|
156
|
-
|
157
|
-
async def get_properties(self) -> Dict[str, Any]:
|
158
|
-
"""Retrieves all properties of the page."""
|
159
|
-
return await self._property_manager.get_properties()
|
160
|
-
|
161
|
-
async def get_property_value(self, property_name: str) -> Any:
|
162
|
-
"""Get the value of a specific property."""
|
163
|
-
return await self._property_manager.get_property_value(
|
164
|
-
property_name, self._relation_manager.get_relation_values
|
165
|
-
)
|
166
|
-
|
167
|
-
async def set_property_by_name(
|
168
|
-
self, property_name: str, value: Any
|
169
|
-
) -> Optional[Dict[str, Any]]:
|
170
|
-
"""Sets the value of a specific property by its name."""
|
171
|
-
return await self._property_manager.set_property_by_name(
|
172
|
-
property_name=property_name,
|
173
|
-
value=value,
|
174
|
-
)
|
175
|
-
|
176
|
-
async def is_database_page(self) -> bool:
|
177
|
-
"""Checks if this page belongs to a database."""
|
178
|
-
return await self._db_relation.is_database_page()
|
179
|
-
|
180
|
-
async def get_parent_database_id(self) -> Optional[str]:
|
181
|
-
"""Gets the ID of the database this page belongs to, if any"""
|
182
|
-
return await self._db_relation.get_parent_database_id()
|
183
|
-
|
184
|
-
async def get_available_options_for_property(self, property_name: str) -> List[str]:
|
185
|
-
"""Gets the available option names for a property (select, multi_select, status)."""
|
186
|
-
db_service = await self._get_db_property_service()
|
187
|
-
if db_service:
|
188
|
-
return await db_service.get_option_names(property_name)
|
189
|
-
return []
|
190
|
-
|
191
|
-
async def get_property_type(self, property_name: str) -> Optional[str]:
|
192
|
-
"""Gets the type of a specific property."""
|
193
|
-
db_service = await self._get_db_property_service()
|
194
|
-
if db_service:
|
195
|
-
return await db_service.get_property_type(property_name)
|
196
|
-
return None
|
197
|
-
|
198
|
-
async def get_database_metadata(
|
199
|
-
self, include_types: Optional[List[str]] = None
|
200
|
-
) -> Dict[str, Any]:
|
201
|
-
"""Gets complete metadata about the database this page belongs to."""
|
202
|
-
db_service = await self._get_db_property_service()
|
203
|
-
if db_service:
|
204
|
-
return await db_service.get_database_metadata(include_types)
|
205
|
-
return {"properties": {}}
|
206
|
-
|
207
|
-
async def get_relation_options(
|
208
|
-
self, property_name: str, limit: int = 100
|
209
|
-
) -> List[Dict[str, Any]]:
|
210
|
-
"""Returns available options for a relation property."""
|
211
|
-
return await self._relation_manager.get_relation_options(property_name, limit)
|
212
|
-
|
213
|
-
async def add_relations_by_name(
|
214
|
-
self, relation_property_name: str, page_titles: Union[str, List[str]]
|
215
|
-
) -> Optional[Dict[str, Any]]:
|
216
|
-
"""Adds one or more relations."""
|
217
|
-
return await self._relation_manager.add_relation_by_name(
|
218
|
-
property_name=relation_property_name, page_titles=page_titles
|
219
|
-
)
|
220
|
-
|
221
|
-
async def get_relation_values(self, property_name: str) -> List[str]:
|
222
|
-
"""
|
223
|
-
Returns the current relation values for a property.
|
224
|
-
"""
|
225
|
-
return await self._relation_manager.get_relation_values(property_name)
|
226
|
-
|
227
|
-
async def get_relation_property_ids(self) -> List[str]:
|
228
|
-
"""Returns a list of all relation property names."""
|
229
|
-
return await self._relation_manager.get_relation_property_ids()
|
230
|
-
|
231
|
-
async def get_all_relations(self) -> Dict[str, List[str]]:
|
232
|
-
"""Returns all relation properties and their values."""
|
233
|
-
return await self._relation_manager.get_all_relations()
|
234
|
-
|
235
|
-
async def get_status(self) -> Optional[str]:
|
236
|
-
"""Determines the status of the page (e.g., 'Draft', 'Completed', etc.)"""
|
237
|
-
return await self.get_property_value("Status")
|
238
|
-
|
239
|
-
|
240
|
-
# TODO: Integration Test oder Showcase
|
241
|
-
async def multiple_toggler_integrations():
|
242
|
-
url = "https://www.notion.so/Jarvis-Clipboard-1a3389d57bd380d7a507e67d1b25822c"
|
243
|
-
page_manager = NotionPageManager(url=url)
|
244
|
-
|
245
|
-
example_output = """!> [📚] AI Summary: Explore the fascinating connection between the nervous system and muscle movement. Discover the differences between training for hypertrophy and strength, alongside effective resistance protocols. Learn how to assess recovery with tools like heart rate variability and grip strength. Dive into the impact of key nutrients such as creatine and electrolytes on muscle performance. This discussion offers actionable strategies to enhance movement, preserve strength with age, and boost energy levels.
|
246
|
-
|
247
|
-
+++ 🎧 Audio Summary
|
248
|
-
$[AI-generated audio summary](https://storage.googleapis.com/audio_summaries/ep_ai_summary_127d02ec-ca12-4312-a5ed-cb14b185480c.mp3)
|
249
|
-
|
250
|
-
<!-- spacer -->
|
251
|
-
|
252
|
-
## ⬆️ Key Insights
|
253
|
-
- The interplay between the nervous system and muscle fibers is critical for effective muscle contraction and movement coordination.
|
254
|
-
- Adequate nutrition, particularly protein and electrolytes, coupled with proper recovery practices, is essential for optimizing muscle growth and performance.
|
255
|
-
- Regular strength training helps offset age-related muscle decline and improves overall posture and functional movement.
|
256
|
-
- Simple tools like grip strength measurements and heart rate variability can provide valuable insights into recovery status and training readiness.
|
257
|
-
|
258
|
-
<!-- spacer -->
|
259
|
-
---
|
260
|
-
|
261
|
-
### 💪 1. Understanding Muscle Strength
|
262
|
-
- Muscles naturally weaken with age; strength training helps offset this decline and improve posture and movement.
|
263
|
-
- The *Henneman size principle* explains how our bodies efficiently recruit muscle fibers based on the weight of an object, prioritizing energy conservation.
|
264
|
-
- Neural adaptations are the primary driver of strength gains in the initial weeks of training, before hypertrophy becomes significant.
|
265
|
-
+++ Transcript
|
266
|
-
<embed:Listen to this highlight>(https://snipd.com/snip/a1b2c3d4)
|
267
|
-
... "When we talk about strength training, we're primarily focusing on the neurological adaptations that occur first. What's fascinating is that during the first 4-6 weeks of a strength program, most of your strength gains come from improved neural efficiency, not muscle size. Your brain is literally learning to recruit more muscle fibers simultaneously, creating greater force output with the same muscle mass."
|
268
|
-
|
269
|
-
|
270
|
-
### 🧠 2. The Nervous System's Role
|
271
|
-
- The central nervous system coordinates which motor units are activated and in what sequence when performing movements.
|
272
|
-
- *Motor unit recruitment* follows a specific pattern that prioritizes smaller, more precise units before larger, more powerful ones.
|
273
|
-
- Fatigue can significantly impact nervous system efficiency, reducing both strength output and movement quality.
|
274
|
-
+++ Transcript
|
275
|
-
<embed:Listen to this highlight>(https://snipd.com/snip/e5f6g7h8)
|
276
|
-
... "The beauty of how our nervous system works is that it's incredibly adaptive. When you're learning a new movement, your brain is creating new neural pathways. With practice, these pathways become more efficient—similar to how a path through grass becomes more defined the more it's walked on. This is why technique practice is so crucial; you're literally building the neural infrastructure for efficient movement."
|
277
|
-
|
278
|
-
|
279
|
-
### 🔬 3. Assessing Recovery Through Simple Tests
|
280
|
-
- *Heart rate variability* (HRV) is a key indicator of recovery, but can be difficult to measure accurately without specialized equipment.
|
281
|
-
- Morning grip strength is a simple, readily available test to assess whole-system recovery and inform training decisions.
|
282
|
-
- Sleep quality has a direct correlation with both HRV and grip strength measurements.
|
283
|
-
+++ Transcript
|
284
|
-
<embed:Listen to this highlight>(https://snipd.com/snip/i9j0k1l2)
|
285
|
-
... "One of the simplest recovery tools you have access to is grip strength. First thing in the morning, try squeezing a hand dynamometer or even just observe how your grip feels. If it's significantly weaker than your baseline, that's often an indicator your nervous system is still fatigued. This simple test has been shown to correlate with overall systemic recovery and can help you decide whether to push hard in training or take a lighter approach that day."
|
286
|
-
|
287
|
-
|
288
|
-
### 🥗 4. Nutrition for Muscle Performance
|
289
|
-
- *Creatine monohydrate* remains one of the most well-researched and effective supplements for improving strength and power output.
|
290
|
-
- Adequate *electrolyte balance* is critical for optimal muscle contraction and preventing cramping during exercise.
|
291
|
-
- Protein timing and distribution throughout the day may be as important as total daily intake for maximizing muscle protein synthesis.
|
292
|
-
+++ Transcript
|
293
|
-
<embed:Listen to this highlight>(https://snipd.com/snip/m3n4o5p6)
|
294
|
-
... "The research on creatine is remarkably consistent. A dose of 3-5 grams daily increases phosphocreatine stores in your muscles, enhancing your capacity for high-intensity, short-duration activities. What's often overlooked is how it can benefit cognitive function as well. Your brain uses a significant amount of ATP, and creatine supports that energy production. This is why some studies show improvements in cognitive tasks, particularly under sleep-deprived conditions, when supplementing with creatine."
|
295
|
-
"""
|
296
|
-
|
297
|
-
await page_manager.append_markdown(markdown=example_output)
|
298
|
-
|
299
|
-
|
300
|
-
async def long_text_demo():
|
301
|
-
url = "https://www.notion.so/Jarvis-Clipboard-1a3389d57bd380d7a507e67d1b25822c"
|
302
|
-
page_manager = NotionPageManager(url=url)
|
303
|
-
|
304
|
-
markdown_text = """
|
305
|
-
Die künstliche Intelligenz steht an einem Wendepunkt ihrer Entwicklung, an dem sie nicht mehr nur als technologisches Werkzeug betrachtet wird, sondern zunehmend als Partner in kreativen und intellektuellen Prozessen. Diese Transformation ist das Ergebnis jahrzehntelanger Forschung und Entwicklung, die von den frühen symbolischen KI-Systemen der 1950er und 1960er Jahre über die Expertensysteme der 1980er Jahre bis hin zu den heutigen tiefen neuronalen Netzwerken und Transformer-Modellen reicht. Der aktuelle Durchbruch in der KI, insbesondere im Bereich des maschinellen Lernens und des Natural Language Processing, beruht auf mehreren Schlüsselfaktoren: der Verfügbarkeit enormer Datenmengen zum Training dieser Modelle, der exponentiellen Steigerung der Rechenleistung, die es ermöglicht, komplexere Modelle zu trainieren, und den Fortschritten bei den Algorithmen selbst, insbesondere bei den Architekturen neuronaler Netzwerke. Diese Konvergenz hat zu KI-Systemen geführt, die in der Lage sind, menschliche Sprache mit beispielloser Genauigkeit zu verstehen und zu generieren, Bilder zu analysieren und zu erstellen und sogar Musik zu komponieren, die von menschlichen Kompositionen kaum zu unterscheiden ist. Während diese Fortschritte zahlreiche positive Anwendungen ermöglichen, von personalisierten Bildungserfahrungen bis hin zu effizienteren Gesundheitssystemen, werfen sie auch wichtige ethische Fragen auf, die unsere Gesellschaft angehen muss. Dazu gehören Bedenken hinsichtlich der Privatsphäre, da KI-Systeme oft mit großen Mengen persönlicher Daten trainiert werden, Fragen der Transparenz und Erklärbarkeit, da viele fortschrittliche KI-Modelle als "Black Boxes" fungieren, deren Entscheidungsprozesse schwer zu verstehen sind, und Bedenken hinsichtlich möglicher Verzerrungen und Diskriminierungen, die in diese Systeme eingebaut sein könnten. Darüber hinaus gibt es Fragen zur Zukunft der Arbeit, da KI-Systeme immer mehr Aufgaben übernehmen können, die traditionell von Menschen ausgeführt wurden. Es ist daher entscheidend, dass wir als Gesellschaft einen aktiven Dialog darüber führen, wie wir diese Technologien entwickeln und einsetzen wollen, um sicherzustellen, dass sie zum Wohle aller eingesetzt werden. Dies erfordert nicht nur technisches Fachwissen, sondern auch Beiträge aus Bereichen wie Ethik, Soziologie, Philosophie und Recht. Nur durch einen solchen interdisziplinären Ansatz können wir das volle Potenzial der künstlichen Intelligenz ausschöpfen und gleichzeitig sicherstellen, dass sie im Einklang mit unseren Werten und Zielen als Gesellschaft steht. In den kommenden Jahren werden wir wahrscheinlich Zeugen weiterer bedeutender Fortschritte auf dem Gebiet der künstlichen Intelligenz sein. Insbesondere könnten wir Fortschritte in Richtung einer allgemeineren KI sehen, die sich über einzelne, eng definierte Aufgaben hinaus entwickelt und in der Lage ist, Wissen und Fähigkeiten über verschiedene Domänen hinweg zu übertragen, ähnlich wie es Menschen tun. Dies könnte zu KI-Systemen führen, die nicht nur darauf trainiert sind, bestimmte Aufgaben zu erfüllen, sondern die in der Lage sind, zu lernen, zu schlussfolgern und sich an neue Situationen anzupassen, was ein höheres Maß an Autonomie und Kreativität ermöglicht. Gleichzeitig könnte es zu Fortschritten bei der Integration von KI in andere aufkommende Technologien kommen, wie z. B. das Internet der Dinge, die virtuelle und erweiterte Realität und die Robotik, was zu neuen Formen der Mensch-Computer-Interaktion und neuen Anwendungen in Bereichen wie dem Gesundheitswesen, der Bildung und der Unterhaltung führen könnte. Es ist jedoch wichtig zu beachten, dass die Entwicklung der KI nicht vorherbestimmt ist, sondern durch die Entscheidungen geprägt wird, die wir als Gesellschaft treffen, einschließlich der Frage, welche Forschungsbereiche wir priorisieren, wie wir KI regulieren und wie wir sie in verschiedene Aspekte unseres Lebens integrieren. Daher ist es wichtig, dass wir weiterhin einen offenen und integrativen Dialog über die Zukunft der KI führen und sicherstellen, dass ihre Entwicklung und ihr Einsatz im Einklang mit unseren gemeinsamen Werten und Zielen stehen. Die Auseinandersetzung mit technologischen Fragen führt unweigerlich zu tiefen philosophischen Überlegungen. Was bedeutet es, intelligent zu sein? Was unterscheidet menschliches Denken von maschinellem Denken? Wird es jemals möglich sein, das menschliche Bewusstsein vollständig zu verstehen und zu replizieren? Während die KI-Forschung voranschreitet, stößt sie an die Grenzen unseres Verständnisses von Intelligenz, Bewusstsein und Identität und wirft Fragen auf, mit denen sich Philosophen seit Jahrhunderten auseinandersetzen. Dieses Zusammenspiel von Technologie und Philosophie kann zu neuen Erkenntnissen über die Natur des Geistes und des Selbst führen. Zugleich ergeben sich neue Fragen, etwa ob Maschinen jemals ein Bewusstsein oder subjektive Erfahrungen haben könnten, wie wir sie kennen, und welche ethischen Implikationen dies haben könnte. Würden wir Maschinen mit Bewusstsein den gleichen moralischen Status und die gleichen Rechte zugestehen wie Menschen oder anderen empfindungsfähigen Wesen? Während wir noch weit davon entfernt sind, Maschinen mit echtem Bewusstsein zu erschaffen, werden diese Fragen mit dem Fortschritt der Technologie immer relevanter. Es ist wichtig, dass wir sie jetzt angehen, damit wir auf zukünftige Entwicklungen vorbereitet sind. Neben diesen philosophischen Fragen wirft der Fortschritt der KI auch praktische ethische Fragen auf, wie z. B. die Frage der Verantwortlichkeit. Wenn KI-Systeme immer autonomer werden und Entscheidungen treffen, die erhebliche Auswirkungen auf das menschliche Leben haben können, wie z. B. im Gesundheitswesen, im Finanzwesen oder im Straßenverkehr, wer ist dann verantwortlich, wenn etwas schief geht? Ist es der Entwickler des KI-Systems, der Benutzer oder das System selbst? Diese Fragen der Verantwortlichkeit werden immer komplexer, da KI-Systeme immer autonomer und undurchsichtiger werden. Gleichzeitig stellt sich die Frage der Kontrolle und Regulierung. Da KI-Systeme immer leistungsfähiger werden, steigen auch die potenziellen Risiken eines Missbrauchs oder eines unkontrollierten Einsatzes. Wie können wir sicherstellen, dass diese Systeme in einer Weise entwickelt und eingesetzt werden, die im Einklang mit den menschlichen Werten und dem Gemeinwohl steht? Welche Art von Regulierung oder Aufsicht ist erforderlich? Diese Fragen sind nicht nur technischer Natur, sondern betreffen auch grundlegende gesellschaftliche und politische Fragen darüber, wie wir Technologie steuern und wie wir sicherstellen, dass sie dem Gemeinwohl dient. Schließlich gibt es die Frage der globalen Zusammenarbeit und des Wettbewerbs. Da die KI zu einer immer wichtigeren Technologie wird, die erhebliche wirtschaftliche und strategische Vorteile bieten kann, besteht die Gefahr eines "KI-Rennens" zwischen Nationen oder Unternehmen, das auf Kosten der Sicherheit, Ethik oder gemeinsamen internationalen Standards gehen könnte. Die Geschichte hat gezeigt, dass technologische Revolutionen sowohl Chancen als auch Risiken mit sich bringen können, und die Art und Weise, wie wir mit ihnen umgehen, kann den Unterschied zwischen einer utopischen und einer dystopischen Zukunft ausmachen. Es ist daher wichtig, dass wir globale Dialoge und Zusammenarbeit fördern, um sicherzustellen, dass die Entwicklung und der Einsatz von KI zum Nutzen aller und im Einklang mit den gemeinsamen Werten und Zielen der Menschheit stattfinden. Die KI wirft somit ein breites Spektrum an Fragen auf, von technischen und philosophischen bis hin zu ethischen, gesellschaftlichen und politischen. Die Art und Weise, wie wir mit diesen Fragen umgehen, wird die Zukunft der KI und damit auch die Zukunft unserer Gesellschaft prägen. Es liegt an uns allen - Forschern, Entwicklern, politischen Entscheidungsträgern, Wirtschaftsführern und Bürgern -, aktiv an diesem Diskurs teilzunehmen und sicherzustellen, dass die Entwicklung und der Einsatz von KI im Einklang mit unseren Werten und Zielen als Menschheit stehen.
|
306
|
-
"""
|
307
|
-
await page_manager.append_markdown(markdown=markdown_text)
|
308
|
-
|
309
|
-
|
310
|
-
if __name__ == "__main__":
|
311
|
-
asyncio.run(long_text_demo())
|
312
|
-
print("\nDemonstration completed.")
|
@@ -1,55 +0,0 @@
|
|
1
|
-
notionary/__init__.py,sha256=19UodWJsuHVSQBFZ5rFBnsSPznz22GTy2XYLIldL7-Q,730
|
2
|
-
notionary/core/notion_client.py,sha256=VdIE1TSEZTy2BhR7Hnx_McndvQYxlu-aJN_7LeDpXgY,4497
|
3
|
-
notionary/core/converters/__init__.py,sha256=GOUehJbe4BKHtec1MqL1YGu3AX8zFtkwSZfhYkY5-P0,1798
|
4
|
-
notionary/core/converters/markdown_to_notion_converter.py,sha256=u2mjshWiiLRVHYrdcXh7fdVMDwWMQLq5LKtvDmX_IWo,15110
|
5
|
-
notionary/core/converters/notion_to_markdown_converter.py,sha256=c8GyWX8-UrNfRDk7OOBKbSEb5qOwljUCwI6g5risO2c,1287
|
6
|
-
notionary/core/converters/elements/audio_element.py,sha256=as8X3EKRn5YIZQph60UdSdnrYQWDCCknvuQ4D3vr8B4,5605
|
7
|
-
notionary/core/converters/elements/bookmark_element.py,sha256=bpHobkGnyBGDAJK5vY9R3Ntl4GiRSF-EyyA31aq2O3E,8593
|
8
|
-
notionary/core/converters/elements/callout_element.py,sha256=rkDoXikjIl-zU3GLawSXgRunBJGLnEvin9zIlCgW4TY,5964
|
9
|
-
notionary/core/converters/elements/code_block_element.py,sha256=G1iGMsGSK5KPSk-tA8TsPs9XNU9ydjYfOVnjIvdZG74,5189
|
10
|
-
notionary/core/converters/elements/column_element.py,sha256=ZwQsLBEownVJnzyv-GfNjvzJhAfKz9ncggqZUmZHF5A,10722
|
11
|
-
notionary/core/converters/elements/divider_element.py,sha256=Ul0wXHY96qWL72iAvttRQMOoAGuASgwFwPraGnpUkX0,2792
|
12
|
-
notionary/core/converters/elements/embed_element.py,sha256=AOFCAj5cR1mTg8scFh1GK3bmasSZLltp_xcrVZR3sOc,4784
|
13
|
-
notionary/core/converters/elements/heading_element.py,sha256=BCBcpEO_UX92nzCclVHAjlOLFJ5zu9wDlAGbphesaOQ,2788
|
14
|
-
notionary/core/converters/elements/image_element.py,sha256=uU3bY26LvJwD_CAXN11tqYt5Ed84gjUeHWnJmxvH07Y,4861
|
15
|
-
notionary/core/converters/elements/list_element.py,sha256=lM9nVGVG3VtmjMkqxrBj71wiJITuRypwxORu4zghqAM,4878
|
16
|
-
notionary/core/converters/elements/notion_block_element.py,sha256=lLRBDXhBeRaRzkbvdpYpr-U9nbkd62oVtqdSe-svT4c,1746
|
17
|
-
notionary/core/converters/elements/paragraph_element.py,sha256=5YGZjcgs0QCvQZ2kF8WCtImbyq5BeMywmME1m3-NDdo,2766
|
18
|
-
notionary/core/converters/elements/qoute_element.py,sha256=CZD1Fe_Lhxsv4mdAM_dr4tlWDjmZCU_5aSpLOFrxDcc,9057
|
19
|
-
notionary/core/converters/elements/table_element.py,sha256=3V9bnNBdsslXZivQ0vpF4_rzrdyI3SWt3aYR814mOzA,11254
|
20
|
-
notionary/core/converters/elements/text_inline_formatter.py,sha256=FE_Sq2cozpu5RVtMbnPq21gD06UjH3LMRYr3s16JKYo,10606
|
21
|
-
notionary/core/converters/elements/todo_lists.py,sha256=wgY6YejURBQ5ESdVLZVIy9QKchS-x8odrmS8X4cC5Kc,4265
|
22
|
-
notionary/core/converters/elements/toggle_element.py,sha256=17chs10njaMfhGeQblvy_JZA7gRMqLp7cXfipIdK3Jo,7635
|
23
|
-
notionary/core/converters/elements/video_element.py,sha256=xrBLY3e_SgKNamItZkfPNMbNEh37Ftp4jWIV6nwV-ds,6047
|
24
|
-
notionary/core/converters/registry/block_element_registry.py,sha256=MVL7SeUv5U2TzbqC5t9yDr1WQq7gOnQL2SnwSL-R478,8700
|
25
|
-
notionary/core/converters/registry/block_element_registry_builder.py,sha256=D4GmIAdMoP7K1P78qlgN-GoDwtB_4dZTws049gtXQ5c,9457
|
26
|
-
notionary/core/database/database_discovery.py,sha256=ViW3gcdujhmtwTa4HKv-bZOQXXbmBpZFLgzKT7vreXM,4625
|
27
|
-
notionary/core/database/database_info_service.py,sha256=58k7om0UXP8w0jCJHewccG5UbOvELMBAbQvXOm7F1OM,1341
|
28
|
-
notionary/core/database/notion_database_manager.py,sha256=7xVJiR-7Kh2Wwoz1vMiOP5vfmNw_PoidnDqmjkHLxGA,7355
|
29
|
-
notionary/core/database/notion_database_manager_factory.py,sha256=bJ_9AbKJnb1g--reo36I8Tlbt_pST5kCmKwlqtPOpq4,6921
|
30
|
-
notionary/core/database/models/page_result.py,sha256=Vmm5_oYpYAkIIJVoTd1ZZGloeC3cmFLMYP255mAmtaw,233
|
31
|
-
notionary/core/page/notion_page_manager.py,sha256=S3dPKK7YQ2VzNeQxyewkpkoyfuAwPiwjM_5pT7N8xms,23903
|
32
|
-
notionary/core/page/content/notion_page_content_chunker.py,sha256=xRks74Dqec-De6-AVTxMPnXs-MSJBzSm1HfJfaHiKr8,3330
|
33
|
-
notionary/core/page/content/page_content_manager.py,sha256=5qzpUFqMkOOqKWA6i6bWnGqbQyvdaEet0eNyerfFWck,3987
|
34
|
-
notionary/core/page/metadata/metadata_editor.py,sha256=VUF5rQIo7DBKU3-Noa_Qifj3KQofc5ZAUZCCruCfx3g,4959
|
35
|
-
notionary/core/page/metadata/notion_icon_manager.py,sha256=4CVahnmlf4m7nw5xBt_VC2Zuy1-tdC6aeLtf3vsFnPU,1431
|
36
|
-
notionary/core/page/metadata/notion_page_cover_manager.py,sha256=g36tCRpOYLTzX6b7vbyPsz1tclDW9lB6rUobDcstR5c,1722
|
37
|
-
notionary/core/page/properites/database_property_service.py,sha256=OJSfcXHRP5XGiMILcuvrnBKBbqz0kquMZVwp2i-wBtQ,11575
|
38
|
-
notionary/core/page/properites/page_property_manager.py,sha256=SZmk2RPjraUyPb9lz2tX7hY5Vunjd85pftAwMeTdeL8,6949
|
39
|
-
notionary/core/page/properites/property_formatter.py,sha256=d_Nr5XQxgjB6VIS0u3ey14MOUKY416o_BvdXjbkUNAQ,3667
|
40
|
-
notionary/core/page/properites/property_operation_result.py,sha256=PhxHJJxxG2BdDl7aswhWnMSmf9RQtoinKkRHDoqxwCs,3913
|
41
|
-
notionary/core/page/properites/property_value_extractor.py,sha256=1BfyCYrFzfIUmNTozavrLTjG--6P6Dy2tkewf6rHHwQ,2353
|
42
|
-
notionary/core/page/relations/notion_page_relation_manager.py,sha256=A5bdJj_8fckTuXEMscuEcPwRs6S___tBz06ISN3Qh4Y,12697
|
43
|
-
notionary/core/page/relations/notion_page_title_resolver.py,sha256=AcwQyji8WRysERXYXTFpl-kIz1yBxI4QF4HOWOqQWug,1727
|
44
|
-
notionary/core/page/relations/page_database_relation.py,sha256=lhcRzh2kWFgUYofxznWTgbA-CjOpJudhroaWmf4WEs4,2318
|
45
|
-
notionary/core/page/relations/relation_operation_result.py,sha256=NDxBzGntOxc_89ti-HG8xDSqfY6PwyGHKHrrKbCzNjM,5010
|
46
|
-
notionary/exceptions/database_exceptions.py,sha256=I-Tx6bYRLpi5pjGPtbT-Mqxvz3BFgYTiuZxknJeLxtI,2638
|
47
|
-
notionary/exceptions/page_creation_exception.py,sha256=4v7IuZD6GsQLrqhDLriGjuG3ML638gAO53zDCrLePuU,281
|
48
|
-
notionary/util/logging_mixin.py,sha256=fKsx9t90bwvL74ZX3dU-sXdC4TZCQyO6qU9I8txkw_U,1369
|
49
|
-
notionary/util/page_id_utils.py,sha256=gMNhuD2qRZ7PT8MAxqPaTaM7dgT01H-YqNZjmJFbEDs,1359
|
50
|
-
notionary/util/singleton_decorator.py,sha256=GTNMfIlVNRUVMw_c88xqd12-DcqZJjmyidN54yqiNVw,472
|
51
|
-
notionary-0.1.12.dist-info/licenses/LICENSE,sha256=zOm3cRT1qD49eg7vgw95MI79rpUAZa1kRBFwL2FkAr8,1120
|
52
|
-
notionary-0.1.12.dist-info/METADATA,sha256=FneQ0YUpzkxpWH05hySub93Q7Hzz3BeUzOubv90iWJg,6154
|
53
|
-
notionary-0.1.12.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
54
|
-
notionary-0.1.12.dist-info/top_level.txt,sha256=fhONa6BMHQXqthx5PanWGbPL0b8rdFqhrJKVLf_adSs,10
|
55
|
-
notionary-0.1.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|