notionary 0.1.23__tar.gz → 0.1.24__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 (63) hide show
  1. {notionary-0.1.23 → notionary-0.1.24}/PKG-INFO +1 -1
  2. {notionary-0.1.23 → notionary-0.1.24}/notionary/notion_client.py +1 -1
  3. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/content/page_content_manager.py +9 -1
  4. {notionary-0.1.23 → notionary-0.1.24}/notionary.egg-info/PKG-INFO +1 -1
  5. {notionary-0.1.23 → notionary-0.1.24}/setup.py +1 -1
  6. {notionary-0.1.23 → notionary-0.1.24}/LICENSE +0 -0
  7. {notionary-0.1.23 → notionary-0.1.24}/README.md +0 -0
  8. {notionary-0.1.23 → notionary-0.1.24}/notionary/__init__.py +0 -0
  9. {notionary-0.1.23 → notionary-0.1.24}/notionary/database/database_discovery.py +0 -0
  10. {notionary-0.1.23 → notionary-0.1.24}/notionary/database/database_info_service.py +0 -0
  11. {notionary-0.1.23 → notionary-0.1.24}/notionary/database/models/page_result.py +0 -0
  12. {notionary-0.1.23 → notionary-0.1.24}/notionary/database/notion_database.py +0 -0
  13. {notionary-0.1.23 → notionary-0.1.24}/notionary/database/notion_database_factory.py +0 -0
  14. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/audio_element.py +0 -0
  15. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/bookmark_element.py +0 -0
  16. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/bulleted_list_element.py +0 -0
  17. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/callout_element.py +0 -0
  18. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/code_block_element.py +0 -0
  19. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/column_element.py +0 -0
  20. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/divider_element.py +0 -0
  21. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/embed_element.py +0 -0
  22. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/heading_element.py +0 -0
  23. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/image_element.py +0 -0
  24. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/mention_element.py +0 -0
  25. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/notion_block_element.py +0 -0
  26. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/numbered_list_element.py +0 -0
  27. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/paragraph_element.py +0 -0
  28. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/prompts/element_prompt_content.py +0 -0
  29. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/prompts/synthax_prompt_builder.py +0 -0
  30. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/qoute_element.py +0 -0
  31. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/registry/block_element_registry.py +0 -0
  32. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/registry/block_element_registry_builder.py +0 -0
  33. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/table_element.py +0 -0
  34. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/text_inline_formatter.py +0 -0
  35. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/todo_lists.py +0 -0
  36. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/toggle_element.py +0 -0
  37. {notionary-0.1.23 → notionary-0.1.24}/notionary/elements/video_element.py +0 -0
  38. {notionary-0.1.23 → notionary-0.1.24}/notionary/exceptions/database_exceptions.py +0 -0
  39. {notionary-0.1.23 → notionary-0.1.24}/notionary/exceptions/page_creation_exception.py +0 -0
  40. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/content/notion_page_content_chunker.py +0 -0
  41. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/markdown_to_notion_converter.py +0 -0
  42. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/metadata/metadata_editor.py +0 -0
  43. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/metadata/notion_icon_manager.py +0 -0
  44. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/metadata/notion_page_cover_manager.py +0 -0
  45. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/notion_page.py +0 -0
  46. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/notion_page_factory.py +0 -0
  47. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/notion_to_markdown_converter.py +0 -0
  48. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/properites/database_property_service.py +0 -0
  49. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/properites/page_property_manager.py +0 -0
  50. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/properites/property_formatter.py +0 -0
  51. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/properites/property_operation_result.py +0 -0
  52. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/properites/property_value_extractor.py +0 -0
  53. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/relations/notion_page_relation_manager.py +0 -0
  54. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/relations/notion_page_title_resolver.py +0 -0
  55. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/relations/page_database_relation.py +0 -0
  56. {notionary-0.1.23 → notionary-0.1.24}/notionary/page/relations/relation_operation_result.py +0 -0
  57. {notionary-0.1.23 → notionary-0.1.24}/notionary/util/logging_mixin.py +0 -0
  58. {notionary-0.1.23 → notionary-0.1.24}/notionary/util/page_id_utils.py +0 -0
  59. {notionary-0.1.23 → notionary-0.1.24}/notionary.egg-info/SOURCES.txt +0 -0
  60. {notionary-0.1.23 → notionary-0.1.24}/notionary.egg-info/dependency_links.txt +0 -0
  61. {notionary-0.1.23 → notionary-0.1.24}/notionary.egg-info/requires.txt +0 -0
  62. {notionary-0.1.23 → notionary-0.1.24}/notionary.egg-info/top_level.txt +0 -0
  63. {notionary-0.1.23 → notionary-0.1.24}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: notionary
3
- Version: 0.1.23
3
+ Version: 0.1.24
4
4
  Summary: A toolkit to convert between Markdown and Notion blocks
5
5
  Home-page: https://github.com/mathisarends/notionary
6
6
  Author: Mathis Arends
@@ -46,7 +46,7 @@ class NotionClient(LoggingMixin):
46
46
  for instance in list(cls._instances):
47
47
  await instance.close()
48
48
 
49
- async def close(self): #
49
+ async def close(self):
50
50
  """
51
51
  Closes the HTTP client for this instance and releases resources.
52
52
  """
@@ -32,13 +32,21 @@ class PageContentManager(LoggingMixin):
32
32
  )
33
33
  self._chunker = NotionPageContentChunker()
34
34
 
35
- async def append_markdown(self, markdown_text: str) -> str:
35
+ async def append_markdown(self, markdown_text: str, append_divider: bool = False) -> str:
36
36
  """
37
37
  Append markdown text to a Notion page, automatically handling content length limits.
38
38
  First strips out triple backtick markdown fences if they wrap the entire content.
39
+
40
+ Args:
41
+ markdown_text: The markdown text to append
42
+ append_divider: If True, appends a divider after the markdown content (default: False)
39
43
  """
40
44
  try:
41
45
  blocks = self._markdown_to_notion_converter.convert(markdown_text)
46
+
47
+ if append_divider:
48
+ divider_block = {"type": "divider", "divider": {}}
49
+ blocks.append(divider_block)
42
50
 
43
51
  fixed_blocks = self._chunker.fix_blocks_content_length(blocks)
44
52
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: notionary
3
- Version: 0.1.23
3
+ Version: 0.1.24
4
4
  Summary: A toolkit to convert between Markdown and Notion blocks
5
5
  Home-page: https://github.com/mathisarends/notionary
6
6
  Author: Mathis Arends
@@ -2,7 +2,7 @@ from setuptools import setup, find_namespace_packages
2
2
 
3
3
  setup(
4
4
  name="notionary",
5
- version="0.1.23",
5
+ version="0.1.24",
6
6
  packages=find_namespace_packages(include=["notionary*"]),
7
7
  install_requires=[
8
8
  "httpx>=0.28.0",
File without changes
File without changes
File without changes