From 9e107d75f570032528f1b46dec231f8d23db8741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= Date: Fri, 25 Oct 2024 00:16:02 +0200 Subject: [PATCH] feat(tools): improve python PDF capabilities (#108) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- src/tools/python/python.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tools/python/python.ts b/src/tools/python/python.ts index 9ffed22f..732f9154 100644 --- a/src/tools/python/python.ts +++ b/src/tools/python/python.ts @@ -59,8 +59,10 @@ export class PythonTool extends Tool { "Use matplotlib to plot charts.", "Use pillow (import PIL) to create and manipulate images.", "Use moviepy for complex manipulations with videos.", - "Use pikepdf to manipulate PDFs.", + "Use PyPDF2, pikepdf, or fitz to manipulate PDFs.", + "Use pdf2image to convert PDF to images.", "Other Python libraries are also available -- however, prefer using the ones above.", + "Prefer using qualified imports -- `import library; library.thing()` instead of `import thing from library`.", "Do not attempt to install libraries manually -- it will not work.", "Each invocation of Python runs in a completely fresh VM -- it will not remember anything from before.", "Do not use this tool multiple times in a row, always write the full code you want to run in a single invocation.",