chatterer 0.1.27__tar.gz → 0.1.28__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 (48) hide show
  1. {chatterer-0.1.27 → chatterer-0.1.28}/PKG-INFO +1 -1
  2. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/convert_pdf_to_markdown.py +3 -5
  3. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer.egg-info/PKG-INFO +1 -1
  4. {chatterer-0.1.27 → chatterer-0.1.28}/pyproject.toml +1 -1
  5. {chatterer-0.1.27 → chatterer-0.1.28}/README.md +0 -0
  6. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/__init__.py +0 -0
  7. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/common_types/__init__.py +0 -0
  8. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/common_types/io.py +0 -0
  9. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/constants.py +0 -0
  10. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/examples/__init__.py +0 -0
  11. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/examples/__main__.py +0 -0
  12. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/examples/any2md.py +0 -0
  13. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/examples/pdf2md.py +0 -0
  14. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/examples/pdf2txt.py +0 -0
  15. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/examples/ppt.py +0 -0
  16. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/examples/pw.py +0 -0
  17. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/examples/snippet.py +0 -0
  18. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/examples/transcribe.py +0 -0
  19. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/examples/upstage.py +0 -0
  20. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/examples/web2md.py +0 -0
  21. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/interactive.py +0 -0
  22. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/language_model.py +0 -0
  23. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/messages.py +0 -0
  24. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/py.typed +0 -0
  25. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/__init__.py +0 -0
  26. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/caption_markdown_images.py +0 -0
  27. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/citation_chunking/__init__.py +0 -0
  28. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/citation_chunking/chunks.py +0 -0
  29. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/citation_chunking/citation_chunker.py +0 -0
  30. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/citation_chunking/citations.py +0 -0
  31. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/citation_chunking/prompt.py +0 -0
  32. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/citation_chunking/reference.py +0 -0
  33. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/citation_chunking/utils.py +0 -0
  34. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/convert_to_text.py +0 -0
  35. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/upstage_document_parser.py +0 -0
  36. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/webpage_to_markdown.py +0 -0
  37. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/tools/youtube.py +0 -0
  38. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/utils/__init__.py +0 -0
  39. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/utils/base64_image.py +0 -0
  40. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/utils/bytesio.py +0 -0
  41. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/utils/code_agent.py +0 -0
  42. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer/utils/imghdr.py +0 -0
  43. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer.egg-info/SOURCES.txt +0 -0
  44. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer.egg-info/dependency_links.txt +0 -0
  45. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer.egg-info/entry_points.txt +0 -0
  46. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer.egg-info/requires.txt +0 -0
  47. {chatterer-0.1.27 → chatterer-0.1.28}/chatterer.egg-info/top_level.txt +0 -0
  48. {chatterer-0.1.27 → chatterer-0.1.28}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chatterer
3
- Version: 0.1.27
3
+ Version: 0.1.28
4
4
  Summary: The highest-level interface for various LLM APIs.
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -475,16 +475,14 @@ def render_pdf_as_image(
475
475
  dict[int, bytes]: A dictionary mapping page numbers to image bytes.
476
476
  """
477
477
  from pymupdf import Matrix # pyright: ignore[reportMissingTypeStubs]
478
- from pymupdf.utils import get_pixmap # pyright: ignore[reportMissingTypeStubs, reportUnknownVariableType]
479
478
 
480
479
  images_bytes: dict[int, bytes] = {}
481
480
  matrix = Matrix(zoom, zoom) # Control output resolution
482
481
  for page_idx in _get_page_indices(page_indices=page_indices, max_doc_pages=len(doc), is_input_zero_based=True):
482
+ page = doc[page_idx]
483
+ pixmap = page.get_pixmap(matrix=matrix) # pyright: ignore[reportUnknownMemberType]
483
484
  img_bytes = bytes(
484
- get_pixmap(
485
- page=doc[page_idx],
486
- matrix=matrix,
487
- ).tobytes(output=output, jpg_quality=jpg_quality) # pyright: ignore[reportUnknownArgumentType]
485
+ pixmap.tobytes(output=output, jpg_quality=jpg_quality) # pyright: ignore[reportUnknownArgumentType]
488
486
  )
489
487
  images_bytes[page_idx] = img_bytes
490
488
  return images_bytes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chatterer
3
- Version: 0.1.27
3
+ Version: 0.1.28
4
4
  Summary: The highest-level interface for various LLM APIs.
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -12,7 +12,7 @@ dependencies = [
12
12
  "loguru>=0.7.3",
13
13
  ]
14
14
  name = "chatterer"
15
- version = "0.1.27"
15
+ version = "0.1.28"
16
16
  description = "The highest-level interface for various LLM APIs."
17
17
  readme = "README.md"
18
18
  requires-python = ">=3.12"
File without changes
File without changes