~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
Fix all the flake errors and set up pre-commit.
Daniel Petti0d6ee63740f3
diff --git a/.flake8 b/.flake8new file mode 100644index 0000000000..c350471604--- /dev/null+++ b/.flake8@@ -0,0 +1,7 @@+[flake8]+max-line-length=88+# Ignore line length for now. (E501)+# This sometimes conflicts with black formatting. (W503)+ignore=E501,W503+extend-ignore=E203+exclude=.git,__init__.py,.venvdiff --git a/.isort.cfg b/.isort.cfgnew file mode 100644index 0000000000..5d7bf33d94--- /dev/null+++ b/.isort.cfg@@ -0,0 +1,2 @@+[tool.isort]+profile = "black"diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlnew file mode 100644index 0000000000..00a5f8ed6d--- /dev/null+++ b/.pre-commit-config.yaml@@ -0,0 +1,20 @@+repos:+ - repo: https://github.com/pre-commit/pre-commit-hooks+ rev: v5.0.0+ hooks:+ - id: check-yaml+ - id: end-of-file-fixer+ - id: trailing-whitespace+ - repo: https://github.com/psf/black+ rev: 25.1.0+ hooks:+ - id: black+ - repo: https://github.com/PyCQA/flake8.git+ rev: 7.1.2+ hooks:+ - id: flake8+ - repo: https://github.com/timothycrosley/isort+ rev: 6.0.1+ hooks:+ - id: isort+ args: ["--profile", "black"]diff --git a/kill_servers.py b/kill_servers.pyindex 702c085ab1..1e79034e7f 100644--- a/kill_servers.py+++ b/kill_servers.py@@ -1,9 +1,11 @@import os-import sysimport signal-import psutil-import timeimport subprocess+import sys+import time++import psutil+def kill_flask_servers():"""@@ -11,171 +13,211 @@ def kill_flask_servers():Uses psutil to find and kill processes more reliably than just using command line"""killed_pids = []-- for proc in psutil.process_iter(['pid', 'name', 'cmdline']):++ for proc in psutil.process_iter(["pid", "name", "cmdline"]):try:- cmdline = proc.info['cmdline']- if cmdline and 'python' in proc.info['name'].lower() and any('main.py' in arg for arg in cmdline if arg):- pid = proc.info['pid']+ cmdline = proc.info["cmdline"]+ if (+ cmdline+ and "python" in proc.info["name"].lower()+ and any("main.py" in arg for arg in cmdline if arg)+ ):+ pid = proc.info["pid"]print(f"Found Flask server process {pid}, killing...")-+# Windows requires SIGTERMos.kill(pid, signal.SIGTERM)killed_pids.append(pid)-+except (psutil.NoSuchProcess, psutil.AccessDenied, psutil.ZombieProcess):pass-+if killed_pids:- print(f"Killed Flask server processes with PIDs: {', '.join(map(str, killed_pids))}")+ print(+ f"Killed Flask server processes with PIDs: {', '.join(map(str, killed_pids))}"+ )else:print("No Flask server processes found.")-+# Give processes time to dietime.sleep(1)-+# Verify all are deadfor pid in killed_pids:if psutil.pid_exists(pid):print(f"Warning: Process {pid} still exists after kill signal.")else:print(f"Confirmed process {pid} was terminated.")-+return killed_pids+def check_flask_servers():"""Check if any Flask servers are running and return their PIDs."""running_servers = []-- for proc in psutil.process_iter(['pid', 'name', 'cmdline']):++ for proc in psutil.process_iter(["pid", "name", "cmdline"]):try:- cmdline = proc.info['cmdline']- if cmdline and 'python' in proc.info['name'].lower() and any('main.py' in arg for arg in cmdline if arg):- pid = proc.info['pid']+ cmdline = proc.info["cmdline"]+ if (+ cmdline+ and "python" in proc.info["name"].lower()+ and any("main.py" in arg for arg in cmdline if arg)+ ):+ pid = proc.info["pid"]running_servers.append(pid)except (psutil.NoSuchProcess, psutil.AccessDenied, psutil.ZombieProcess):pass-+return running_servers+def start_flask_server(port=5000):"""Start a Flask server in the background."""print(f"Starting Flask server on port {port}...")-+# Get the virtual environment Python executable- venv_path = os.path.join('.venv', 'Scripts', 'python.exe')+ venv_path = os.path.join(".venv", "Scripts", "python.exe")if not os.path.exists(venv_path):print(f"Error: Could not find Python executable at {venv_path}")return None-+try:# First, check if port is already in useimport socket+sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)- result = sock.connect_ex(('127.0.0.1', port))+ result = sock.connect_ex(("127.0.0.1", port))sock.close()-+if result == 0:print(f"Error: Port {port} is already in use")return None-+# Start the Flask server directly without background flags# to better catch any startup errorsprocess = subprocess.Popen(- [venv_path, 'main.py', '--port', str(port)],+ [venv_path, "main.py", "--port", str(port)],stdout=subprocess.PIPE,stderr=subprocess.PIPE,- universal_newlines=True # Use text mode for easier output reading+ universal_newlines=True, # Use text mode for easier output reading)-+# Wait a moment to ensure the server has time to starttime.sleep(3)-+# Check if the process is still runningif process.poll() is None:print(f"Flask server started on port {port} with PID {process.pid}")-+# Try to read initial output to see if there are errorsstdout_data, stderr_data = "", ""try:# Read with timeout to avoid blockingimport select- if os.name == 'nt': # Windows++ if os.name == "nt": # Windows# Windows doesn't support select on pipes, use non-blocking modeimport msvcrt- if process.stdout and msvcrt.get_osfhandle(process.stdout.fileno()) != -1:++ if (+ process.stdout+ and msvcrt.get_osfhandle(process.stdout.fileno()) != -1+ ):stdout_data = process.stdout.read(1024) or ""- if process.stderr and msvcrt.get_osfhandle(process.stderr.fileno()) != -1:+ if (+ process.stderr+ and msvcrt.get_osfhandle(process.stderr.fileno()) != -1+ ):stderr_data = process.stderr.read(1024) or ""else: # Unix- if process.stdout and select.select([process.stdout], [], [], 0.5)[0]:+ if (+ process.stdout+ and select.select([process.stdout], [], [], 0.5)[0]+ ):stdout_data = process.stdout.read(1024) or ""- if process.stderr and select.select([process.stderr], [], [], 0.5)[0]:+ if (+ process.stderr+ and select.select([process.stderr], [], [], 0.5)[0]+ ):stderr_data = process.stderr.read(1024) or ""except Exception as e:print(f"Warning: Could not read process output: {e}")-+# Log any output for debuggingif stdout_data:print(f"Server stdout: {stdout_data.strip()}")if stderr_data:print(f"Server stderr: {stderr_data.strip()}")-+# Test if the server is actually respondingtry:import urllib.request- with urllib.request.urlopen(f"http://localhost:{port}/", timeout=2) as response:++ with urllib.request.urlopen(+ f"http://localhost:{port}/", timeout=2+ ) as response:if response.status == 200:print(f"Server is responsive at http://localhost:{port}/")else:- print(f"Warning: Server responded with status {response.status}")+ print(+ f"Warning: Server responded with status {response.status}"+ )except Exception as e:print(f"Warning: Could not connect to server: {e}")- print("The process is running but the server may not be responding to requests")-+ print(+ "The process is running but the server may not be responding to requests"+ )+return process.pidelse:stdout, stderr = process.communicate()- print(f"Error starting Flask server. Server process exited with code {process.returncode}")+ print(+ f"Error starting Flask server. Server process exited with code {process.returncode}"+ )if stdout:print(f"Server stdout: {stdout.strip()}")if stderr:print(f"Server stderr: {stderr.strip()}")return None-+except Exception as e:print(f"Error starting Flask server: {str(e)}")return None+def start_flask_server_windows(port=5000):"""Start a Flask server using Windows 'start' command which is more reliable for Windows environments."""print(f"Starting Flask server on port {port} using Windows 'start' command...")-+# Get the virtual environment Python executable- venv_path = os.path.join('.venv', 'Scripts', 'python.exe')+ venv_path = os.path.join(".venv", "Scripts", "python.exe")if not os.path.exists(venv_path):print(f"Error: Could not find Python executable at {venv_path}")return None-+try:# Use Windows 'start' command to launch in a new window# This is more reliable on Windows for Flask appscmd = f'start "Flask Server" /MIN "{venv_path}" main.py --port {port}'subprocess.run(cmd, shell=True, check=True)-+print(f"Flask server starting on port {port}")- print(f"Note: The process is running in a minimized window. Close that window to stop the server.")-+ print(+ "Note: The process is running in a minimized window. Close that window to stop the server."+ )+# Wait a moment to ensure the server has time to starttime.sleep(3)-+# We can't get the PID easily with this method, but return True to indicate successreturn True-+except Exception as e:print(f"Error starting Flask server: {str(e)}")return None+def restart_server(port=5000):"""Kill all Flask servers and start a new one."""kill_flask_servers()@@ -188,10 +230,11 @@ def restart_server(port=5000):print("Failed to start new Flask server")return False+def show_status():"""Show status of running Flask servers."""running_servers = check_flask_servers()-+if running_servers:print(f"Found {len(running_servers)} running Flask server(s):")for pid in running_servers:@@ -199,41 +242,44 @@ def show_status():proc = psutil.Process(pid)cmdline = proc.cmdline()port = None-+# Try to extract the port numberfor i, arg in enumerate(cmdline):- if arg == '--port' and i + 1 < len(cmdline):+ if arg == "--port" and i + 1 < len(cmdline):port = cmdline[i + 1]-+if port:print(f" - PID {pid}: Running on port {port}")else:print(f" - PID {pid}: Running (port unknown)")-+except (psutil.NoSuchProcess, psutil.AccessDenied):print(f" - PID {pid}: [Process information unavailable]")else:print("No Flask servers currently running.")-+return len(running_servers) > 0+if __name__ == "__main__":if len(sys.argv) > 1:- if sys.argv[1] == 'restart':+ if sys.argv[1] == "restart":kill_flask_servers()print("All Flask server processes terminated.")- if os.name == 'nt': # Windows+ if os.name == "nt": # Windowsstart_flask_server_windows()else:start_flask_server()- elif sys.argv[1] == 'start':- if os.name == 'nt': # Windows+ elif sys.argv[1] == "start":+ if os.name == "nt": # Windowsstart_flask_server_windows()else:start_flask_server()- elif sys.argv[1] == 'status':+ elif sys.argv[1] == "status":show_status()else:- print("Unknown command. Usage: python kill_servers.py [restart|start|status]")+ print(+ "Unknown command. Usage: python kill_servers.py [restart|start|status]"+ )else:- kill_flask_servers()\ No newline at end of file+ kill_flask_servers()diff --git a/pdm.lock b/pdm.locknew file mode 100644index 0000000000..cd4a04a0da--- /dev/null+++ b/pdm.lock@@ -0,0 +1,3873 @@+# This file is @generated by PDM.+# It is not intended for manual editing.++[metadata]+groups = ["default", "dev"]+strategy = ["inherit_metadata"]+lock_version = "4.5.0"+content_hash = "sha256:76dcc565f0b282743e7e684610b43fb3c8d2ddc836d9e86479445d1e09fc4c63"++[[metadata.targets]]+requires_python = ">=3.10"++[[package]]+name = "aiofiles"+version = "24.1.0"+requires_python = ">=3.8"+summary = "File support for asyncio."+groups = ["default"]+files = [+ {file = "aiofiles-24.1.0-py3-none-any.whl", hash = "sha256:b4ec55f4195e3eb5d7abd1bf7e061763e864dd4954231fb8539a0ef8bb8260e5"},+ {file = "aiofiles-24.1.0.tar.gz", hash = "sha256:22a075c9e5a3810f0c2e48f3008c94d68c65d763b9b03857924c99e57355166c"},+]++[[package]]+name = "aiohappyeyeballs"+version = "2.6.1"+requires_python = ">=3.9"+summary = "Happy Eyeballs for asyncio"+groups = ["default"]+files = [+ {file = "aiohappyeyeballs-2.6.1-py3-none-any.whl", hash = "sha256:f349ba8f4b75cb25c99c5c2d84e997e485204d2902a9597802b0371f09331fb8"},+ {file = "aiohappyeyeballs-2.6.1.tar.gz", hash = "sha256:c3f9d0113123803ccadfdf3f0faa505bc78e6a72d1cc4806cbd719826e943558"},+]++[[package]]+name = "aiohttp"+version = "3.11.14"+requires_python = ">=3.9"+summary = "Async http client/server framework (asyncio)"+groups = ["default"]+dependencies = [+ "aiohappyeyeballs>=2.3.0",+ "aiosignal>=1.1.2",+ "async-timeout<6.0,>=4.0; python_version < \"3.11\"",+ "attrs>=17.3.0",+ "frozenlist>=1.1.1",+ "multidict<7.0,>=4.5",+ "propcache>=0.2.0",+ "yarl<2.0,>=1.17.0",+]+files = [+ {file = "aiohttp-3.11.14-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e2bc827c01f75803de77b134afdbf74fa74b62970eafdf190f3244931d7a5c0d"},+ {file = "aiohttp-3.11.14-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e365034c5cf6cf74f57420b57682ea79e19eb29033399dd3f40de4d0171998fa"},+ {file = "aiohttp-3.11.14-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c32593ead1a8c6aabd58f9d7ee706e48beac796bb0cb71d6b60f2c1056f0a65f"},+ {file = "aiohttp-3.11.14-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b4e7c7ec4146a94a307ca4f112802a8e26d969018fabed526efc340d21d3e7d0"},+ {file = "aiohttp-3.11.14-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c8b2df9feac55043759aa89f722a967d977d80f8b5865a4153fc41c93b957efc"},+ {file = "aiohttp-3.11.14-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c7571f99525c76a6280f5fe8e194eeb8cb4da55586c3c61c59c33a33f10cfce7"},+ {file = "aiohttp-3.11.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b59d096b5537ec7c85954cb97d821aae35cfccce3357a2cafe85660cc6295628"},+ {file = "aiohttp-3.11.14-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b42dbd097abb44b3f1156b4bf978ec5853840802d6eee2784857be11ee82c6a0"},+ {file = "aiohttp-3.11.14-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:b05774864c87210c531b48dfeb2f7659407c2dda8643104fb4ae5e2c311d12d9"},+ {file = "aiohttp-3.11.14-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:4e2e8ef37d4bc110917d038807ee3af82700a93ab2ba5687afae5271b8bc50ff"},+ {file = "aiohttp-3.11.14-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e9faafa74dbb906b2b6f3eb9942352e9e9db8d583ffed4be618a89bd71a4e914"},+ {file = "aiohttp-3.11.14-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:7e7abe865504f41b10777ac162c727af14e9f4db9262e3ed8254179053f63e6d"},+ {file = "aiohttp-3.11.14-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:4848ae31ad44330b30f16c71e4f586cd5402a846b11264c412de99fa768f00f3"},+ {file = "aiohttp-3.11.14-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:2d0b46abee5b5737cb479cc9139b29f010a37b1875ee56d142aefc10686a390b"},+ {file = "aiohttp-3.11.14-cp310-cp310-win32.whl", hash = "sha256:a0d2c04a623ab83963576548ce098baf711a18e2c32c542b62322a0b4584b990"},+ {file = "aiohttp-3.11.14-cp310-cp310-win_amd64.whl", hash = "sha256:5409a59d5057f2386bb8b8f8bbcfb6e15505cedd8b2445db510563b5d7ea1186"},+ {file = "aiohttp-3.11.14-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:f296d637a50bb15fb6a229fbb0eb053080e703b53dbfe55b1e4bb1c5ed25d325"},+ {file = "aiohttp-3.11.14-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ec6cd1954ca2bbf0970f531a628da1b1338f594bf5da7e361e19ba163ecc4f3b"},+ {file = "aiohttp-3.11.14-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:572def4aad0a4775af66d5a2b5923c7de0820ecaeeb7987dcbccda2a735a993f"},+ {file = "aiohttp-3.11.14-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1c68e41c4d576cd6aa6c6d2eddfb32b2acfb07ebfbb4f9da991da26633a3db1a"},+ {file = "aiohttp-3.11.14-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:99b8bbfc8111826aa8363442c0fc1f5751456b008737ff053570f06a151650b3"},+ {file = "aiohttp-3.11.14-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4b0a200e85da5c966277a402736a96457b882360aa15416bf104ca81e6f5807b"},+ {file = "aiohttp-3.11.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d173c0ac508a2175f7c9a115a50db5fd3e35190d96fdd1a17f9cb10a6ab09aa1"},+ {file = "aiohttp-3.11.14-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:413fe39fd929329f697f41ad67936f379cba06fcd4c462b62e5b0f8061ee4a77"},+ {file = "aiohttp-3.11.14-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:65c75b14ee74e8eeff2886321e76188cbe938d18c85cff349d948430179ad02c"},+ {file = "aiohttp-3.11.14-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:321238a42ed463848f06e291c4bbfb3d15ba5a79221a82c502da3e23d7525d06"},+ {file = "aiohttp-3.11.14-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:59a05cdc636431f7ce843c7c2f04772437dd816a5289f16440b19441be6511f1"},+ {file = "aiohttp-3.11.14-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:daf20d9c3b12ae0fdf15ed92235e190f8284945563c4b8ad95b2d7a31f331cd3"},+ {file = "aiohttp-3.11.14-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:05582cb2d156ac7506e68b5eac83179faedad74522ed88f88e5861b78740dc0e"},+ {file = "aiohttp-3.11.14-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:12c5869e7ddf6b4b1f2109702b3cd7515667b437da90a5a4a50ba1354fe41881"},+ {file = "aiohttp-3.11.14-cp311-cp311-win32.whl", hash = "sha256:92868f6512714efd4a6d6cb2bfc4903b997b36b97baea85f744229f18d12755e"},+ {file = "aiohttp-3.11.14-cp311-cp311-win_amd64.whl", hash = "sha256:bccd2cb7aa5a3bfada72681bdb91637094d81639e116eac368f8b3874620a654"},+ {file = "aiohttp-3.11.14-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:70ab0f61c1a73d3e0342cedd9a7321425c27a7067bebeeacd509f96695b875fc"},+ {file = "aiohttp-3.11.14-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:602d4db80daf4497de93cb1ce00b8fc79969c0a7cf5b67bec96fa939268d806a"},+ {file = "aiohttp-3.11.14-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:3a8a0d127c10b8d89e69bbd3430da0f73946d839e65fec00ae48ca7916a31948"},+ {file = "aiohttp-3.11.14-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca9f835cdfedcb3f5947304e85b8ca3ace31eef6346d8027a97f4de5fb687534"},+ {file = "aiohttp-3.11.14-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8aa5c68e1e68fff7cd3142288101deb4316b51f03d50c92de6ea5ce646e6c71f"},+ {file = "aiohttp-3.11.14-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3b512f1de1c688f88dbe1b8bb1283f7fbeb7a2b2b26e743bb2193cbadfa6f307"},+ {file = "aiohttp-3.11.14-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cc9253069158d57e27d47a8453d8a2c5a370dc461374111b5184cf2f147a3cc3"},+ {file = "aiohttp-3.11.14-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0b2501f1b981e70932b4a552fc9b3c942991c7ae429ea117e8fba57718cdeed0"},+ {file = "aiohttp-3.11.14-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:28a3d083819741592685762d51d789e6155411277050d08066537c5edc4066e6"},+ {file = "aiohttp-3.11.14-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:0df3788187559c262922846087e36228b75987f3ae31dd0a1e5ee1034090d42f"},+ {file = "aiohttp-3.11.14-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:9e73fa341d8b308bb799cf0ab6f55fc0461d27a9fa3e4582755a3d81a6af8c09"},+ {file = "aiohttp-3.11.14-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:51ba80d473eb780a329d73ac8afa44aa71dfb521693ccea1dea8b9b5c4df45ce"},+ {file = "aiohttp-3.11.14-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:8d1dd75aa4d855c7debaf1ef830ff2dfcc33f893c7db0af2423ee761ebffd22b"},+ {file = "aiohttp-3.11.14-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41cf0cefd9e7b5c646c2ef529c8335e7eafd326f444cc1cdb0c47b6bc836f9be"},+ {file = "aiohttp-3.11.14-cp312-cp312-win32.whl", hash = "sha256:948abc8952aff63de7b2c83bfe3f211c727da3a33c3a5866a0e2cf1ee1aa950f"},+ {file = "aiohttp-3.11.14-cp312-cp312-win_amd64.whl", hash = "sha256:3b420d076a46f41ea48e5fcccb996f517af0d406267e31e6716f480a3d50d65c"},+ {file = "aiohttp-3.11.14-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8d14e274828561db91e4178f0057a915f3af1757b94c2ca283cb34cbb6e00b50"},+ {file = "aiohttp-3.11.14-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f30fc72daf85486cdcdfc3f5e0aea9255493ef499e31582b34abadbfaafb0965"},+ {file = "aiohttp-3.11.14-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:4edcbe34e6dba0136e4cabf7568f5a434d89cc9de5d5155371acda275353d228"},+ {file = "aiohttp-3.11.14-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a7169ded15505f55a87f8f0812c94c9412623c744227b9e51083a72a48b68a5"},+ {file = "aiohttp-3.11.14-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ad1f2fb9fe9b585ea4b436d6e998e71b50d2b087b694ab277b30e060c434e5db"},+ {file = "aiohttp-3.11.14-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:20412c7cc3720e47a47e63c0005f78c0c2370020f9f4770d7fc0075f397a9fb0"},+ {file = "aiohttp-3.11.14-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6dd9766da617855f7e85f27d2bf9a565ace04ba7c387323cd3e651ac4329db91"},+ {file = "aiohttp-3.11.14-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:599b66582f7276ebefbaa38adf37585e636b6a7a73382eb412f7bc0fc55fb73d"},+ {file = "aiohttp-3.11.14-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b41693b7388324b80f9acfabd479bd1c84f0bc7e8f17bab4ecd9675e9ff9c734"},+ {file = "aiohttp-3.11.14-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:86135c32d06927339c8c5e64f96e4eee8825d928374b9b71a3c42379d7437058"},+ {file = "aiohttp-3.11.14-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:04eb541ce1e03edc1e3be1917a0f45ac703e913c21a940111df73a2c2db11d73"},+ {file = "aiohttp-3.11.14-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:dc311634f6f28661a76cbc1c28ecf3b3a70a8edd67b69288ab7ca91058eb5a33"},+ {file = "aiohttp-3.11.14-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:69bb252bfdca385ccabfd55f4cd740d421dd8c8ad438ded9637d81c228d0da49"},+ {file = "aiohttp-3.11.14-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:2b86efe23684b58a88e530c4ab5b20145f102916bbb2d82942cafec7bd36a647"},+ {file = "aiohttp-3.11.14-cp313-cp313-win32.whl", hash = "sha256:b9c60d1de973ca94af02053d9b5111c4fbf97158e139b14f1be68337be267be6"},+ {file = "aiohttp-3.11.14-cp313-cp313-win_amd64.whl", hash = "sha256:0a29be28e60e5610d2437b5b2fed61d6f3dcde898b57fb048aa5079271e7f6f3"},+ {file = "aiohttp-3.11.14.tar.gz", hash = "sha256:d6edc538c7480fa0a3b2bdd705f8010062d74700198da55d16498e1b49549b9c"},+]++[[package]]+name = "aiosignal"+version = "1.3.2"+requires_python = ">=3.9"+summary = "aiosignal: a list of registered asynchronous callbacks"+groups = ["default"]+dependencies = [+ "frozenlist>=1.1.0",+]+files = [+ {file = "aiosignal-1.3.2-py2.py3-none-any.whl", hash = "sha256:45cde58e409a301715980c2b01d0c28bdde3770d8290b5eb2173759d9acb31a5"},+ {file = "aiosignal-1.3.2.tar.gz", hash = "sha256:a8c255c66fafb1e499c9351d0bf32ff2d8a0321595ebac3b93713656d2436f54"},+]++[[package]]+name = "annotated-types"+version = "0.7.0"+requires_python = ">=3.8"+summary = "Reusable constraint types to use with typing.Annotated"+groups = ["default"]+dependencies = [+ "typing-extensions>=4.0.0; python_version < \"3.9\"",+]+files = [+ {file = "annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53"},+ {file = "annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89"},+]++[[package]]+name = "anthropic"+version = "0.49.0"+requires_python = ">=3.8"+summary = "The official Python library for the anthropic API"+groups = ["default"]+dependencies = [+ "anyio<5,>=3.5.0",+ "distro<2,>=1.7.0",+ "httpx<1,>=0.23.0",+ "jiter<1,>=0.4.0",+ "pydantic<3,>=1.9.0",+ "sniffio",+ "typing-extensions<5,>=4.10",+]+files = [+ {file = "anthropic-0.49.0-py3-none-any.whl", hash = "sha256:bbc17ad4e7094988d2fa86b87753ded8dce12498f4b85fe5810f208f454a8375"},+ {file = "anthropic-0.49.0.tar.gz", hash = "sha256:c09e885b0f674b9119b4f296d8508907f6cff0009bc20d5cf6b35936c40b4398"},+]++[[package]]+name = "anyio"+version = "4.9.0"+requires_python = ">=3.9"+summary = "High level compatibility layer for multiple asynchronous event loop implementations"+groups = ["default"]+dependencies = [+ "exceptiongroup>=1.0.2; python_version < \"3.11\"",+ "idna>=2.8",+ "sniffio>=1.1",+ "typing-extensions>=4.5; python_version < \"3.13\"",+]+files = [+ {file = "anyio-4.9.0-py3-none-any.whl", hash = "sha256:9f76d541cad6e36af7beb62e978876f3b41e3e04f2c1fbf0884604c0a9c4d93c"},+ {file = "anyio-4.9.0.tar.gz", hash = "sha256:673c0c244e15788651a4ff38710fea9675823028a6f08a5eda409e0c9840a028"},+]++[[package]]+name = "arxiv"+version = "2.1.3"+requires_python = ">=3.7"+summary = "Python wrapper for the arXiv API: https://arxiv.org/help/api/"+groups = ["default"]+dependencies = [+ "feedparser~=6.0.10",+ "requests~=2.32.0",+]+files = [+ {file = "arxiv-2.1.3-py3-none-any.whl", hash = "sha256:6f43673ab770a9e848d7d4fc1894824df55edeac3c3572ea280c9ba2e3c0f39f"},+ {file = "arxiv-2.1.3.tar.gz", hash = "sha256:32365221994d2cf05657c1fadf63a26efc8ccdec18590281ee03515bfef8bc4e"},+]++[[package]]+name = "async-timeout"+version = "4.0.3"+requires_python = ">=3.7"+summary = "Timeout context manager for asyncio programs"+groups = ["default"]+marker = "python_version < \"3.11\""+dependencies = [+ "typing-extensions>=3.6.5; python_version < \"3.8\"",+]+files = [+ {file = "async-timeout-4.0.3.tar.gz", hash = "sha256:4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f"},+ {file = "async_timeout-4.0.3-py3-none-any.whl", hash = "sha256:7405140ff1230c310e51dc27b3145b9092d659ce68ff733fb0cefe3ee42be028"},+]++[[package]]+name = "attrs"+version = "25.3.0"+requires_python = ">=3.8"+summary = "Classes Without Boilerplate"+groups = ["default"]+files = [+ {file = "attrs-25.3.0-py3-none-any.whl", hash = "sha256:427318ce031701fea540783410126f03899a97ffc6f61596ad581ac2e40e3bc3"},+ {file = "attrs-25.3.0.tar.gz", hash = "sha256:75d7cefc7fb576747b2c81b4442d4d4a1ce0900973527c011d1030fd3bf4af1b"},+]++[[package]]+name = "backoff"+version = "2.2.1"+requires_python = ">=3.7,<4.0"+summary = "Function decoration for backoff and retry"+groups = ["default"]+files = [+ {file = "backoff-2.2.1-py3-none-any.whl", hash = "sha256:63579f9a0628e06278f7e47b7d7d5b6ce20dc65c5e96a6f3ca99a6adca0396e8"},+ {file = "backoff-2.2.1.tar.gz", hash = "sha256:03f829f5bb1923180821643f8753b0502c3b682293992485b0eef2807afa5cba"},+]++[[package]]+name = "beautifulsoup4"+version = "4.13.3"+requires_python = ">=3.7.0"+summary = "Screen-scraping library"+groups = ["default"]+dependencies = [+ "soupsieve>1.2",+ "typing-extensions>=4.0.0",+]+files = [+ {file = "beautifulsoup4-4.13.3-py3-none-any.whl", hash = "sha256:99045d7d3f08f91f0d656bc9b7efbae189426cd913d830294a15eefa0ea4df16"},+ {file = "beautifulsoup4-4.13.3.tar.gz", hash = "sha256:1bd32405dacc920b42b83ba01644747ed77456a65760e285fbc47633ceddaf8b"},+]++[[package]]+name = "bidict"+version = "0.23.1"+requires_python = ">=3.8"+summary = "The bidirectional mapping library for Python."+groups = ["default"]+files = [+ {file = "bidict-0.23.1-py3-none-any.whl", hash = "sha256:5dae8d4d79b552a71cbabc7deb25dfe8ce710b17ff41711e13010ead2abfc3e5"},+ {file = "bidict-0.23.1.tar.gz", hash = "sha256:03069d763bc387bbd20e7d49914e75fc4132a41937fa3405417e1a5a2d006d71"},+]++[[package]]+name = "black"+version = "25.1.0"+requires_python = ">=3.9"+summary = "The uncompromising code formatter."+groups = ["dev"]+dependencies = [+ "click>=8.0.0",+ "mypy-extensions>=0.4.3",+ "packaging>=22.0",+ "pathspec>=0.9.0",+ "platformdirs>=2",+ "tomli>=1.1.0; python_version < \"3.11\"",+ "typing-extensions>=4.0.1; python_version < \"3.11\"",+]+files = [+ {file = "black-25.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:759e7ec1e050a15f89b770cefbf91ebee8917aac5c20483bc2d80a6c3a04df32"},+ {file = "black-25.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0e519ecf93120f34243e6b0054db49c00a35f84f195d5bce7e9f5cfc578fc2da"},+ {file = "black-25.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:055e59b198df7ac0b7efca5ad7ff2516bca343276c466be72eb04a3bcc1f82d7"},+ {file = "black-25.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:db8ea9917d6f8fc62abd90d944920d95e73c83a5ee3383493e35d271aca872e9"},+ {file = "black-25.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a39337598244de4bae26475f77dda852ea00a93bd4c728e09eacd827ec929df0"},+ {file = "black-25.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:96c1c7cd856bba8e20094e36e0f948718dc688dba4a9d78c3adde52b9e6c2299"},+ {file = "black-25.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bce2e264d59c91e52d8000d507eb20a9aca4a778731a08cfff7e5ac4a4bb7096"},+ {file = "black-25.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:172b1dbff09f86ce6f4eb8edf9dede08b1fce58ba194c87d7a4f1a5aa2f5b3c2"},+ {file = "black-25.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4b60580e829091e6f9238c848ea6750efed72140b91b048770b64e74fe04908b"},+ {file = "black-25.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1e2978f6df243b155ef5fa7e558a43037c3079093ed5d10fd84c43900f2d8ecc"},+ {file = "black-25.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3b48735872ec535027d979e8dcb20bf4f70b5ac75a8ea99f127c106a7d7aba9f"},+ {file = "black-25.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:ea0213189960bda9cf99be5b8c8ce66bb054af5e9e861249cd23471bd7b0b3ba"},+ {file = "black-25.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8f0b18a02996a836cc9c9c78e5babec10930862827b1b724ddfe98ccf2f2fe4f"},+ {file = "black-25.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:afebb7098bfbc70037a053b91ae8437c3857482d3a690fefc03e9ff7aa9a5fd3"},+ {file = "black-25.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:030b9759066a4ee5e5aca28c3c77f9c64789cdd4de8ac1df642c40b708be6171"},+ {file = "black-25.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:a22f402b410566e2d1c950708c77ebf5ebd5d0d88a6a2e87c86d9fb48afa0d18"},+ {file = "black-25.1.0-py3-none-any.whl", hash = "sha256:95e8176dae143ba9097f351d174fdaf0ccd29efb414b362ae3fd72bf0f710717"},+ {file = "black-25.1.0.tar.gz", hash = "sha256:33496d5cd1222ad73391352b4ae8da15253c5de89b93a80b3e2c8d9a19ec2666"},+]++[[package]]+name = "blinker"+version = "1.9.0"+requires_python = ">=3.9"+summary = "Fast, simple object-to-object and broadcast signaling"+groups = ["default"]+files = [+ {file = "blinker-1.9.0-py3-none-any.whl", hash = "sha256:ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc"},+ {file = "blinker-1.9.0.tar.gz", hash = "sha256:b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf"},+]++[[package]]+name = "certifi"+version = "2025.1.31"+requires_python = ">=3.6"+summary = "Python package for providing Mozilla's CA Bundle."+groups = ["default"]+files = [+ {file = "certifi-2025.1.31-py3-none-any.whl", hash = "sha256:ca78db4565a652026a4db2bcdf68f2fb589ea80d0be70e03929ed730746b84fe"},+ {file = "certifi-2025.1.31.tar.gz", hash = "sha256:3d5da6925056f6f18f119200434a4780a94263f10d1c21d032a6f6b2baa20651"},+]++[[package]]+name = "cffi"+version = "1.17.1"+requires_python = ">=3.8"+summary = "Foreign Function Interface for Python calling C code."+groups = ["default"]+dependencies = [+ "pycparser",+]+files = [+ {file = "cffi-1.17.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:df8b1c11f177bc2313ec4b2d46baec87a5f3e71fc8b45dab2ee7cae86d9aba14"},+ {file = "cffi-1.17.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8f2cdc858323644ab277e9bb925ad72ae0e67f69e804f4898c070998d50b1a67"},+ {file = "cffi-1.17.1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:edae79245293e15384b51f88b00613ba9f7198016a5948b5dddf4917d4d26382"},+ {file = "cffi-1.17.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:45398b671ac6d70e67da8e4224a065cec6a93541bb7aebe1b198a61b58c7b702"},+ {file = "cffi-1.17.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ad9413ccdeda48c5afdae7e4fa2192157e991ff761e7ab8fdd8926f40b160cc3"},+ {file = "cffi-1.17.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5da5719280082ac6bd9aa7becb3938dc9f9cbd57fac7d2871717b1feb0902ab6"},+ {file = "cffi-1.17.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bb1a08b8008b281856e5971307cc386a8e9c5b625ac297e853d36da6efe9c17"},+ {file = "cffi-1.17.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:045d61c734659cc045141be4bae381a41d89b741f795af1dd018bfb532fd0df8"},+ {file = "cffi-1.17.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:6883e737d7d9e4899a8a695e00ec36bd4e5e4f18fabe0aca0efe0a4b44cdb13e"},+ {file = "cffi-1.17.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:6b8b4a92e1c65048ff98cfe1f735ef8f1ceb72e3d5f0c25fdb12087a23da22be"},+ {file = "cffi-1.17.1-cp310-cp310-win32.whl", hash = "sha256:c9c3d058ebabb74db66e431095118094d06abf53284d9c81f27300d0e0d8bc7c"},+ {file = "cffi-1.17.1-cp310-cp310-win_amd64.whl", hash = "sha256:0f048dcf80db46f0098ccac01132761580d28e28bc0f78ae0d58048063317e15"},+ {file = "cffi-1.17.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a45e3c6913c5b87b3ff120dcdc03f6131fa0065027d0ed7ee6190736a74cd401"},+ {file = "cffi-1.17.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:30c5e0cb5ae493c04c8b42916e52ca38079f1b235c2f8ae5f4527b963c401caf"},+ {file = "cffi-1.17.1-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f75c7ab1f9e4aca5414ed4d8e5c0e303a34f4421f8a0d47a4d019ceff0ab6af4"},+ {file = "cffi-1.17.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a1ed2dd2972641495a3ec98445e09766f077aee98a1c896dcb4ad0d303628e41"},+ {file = "cffi-1.17.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:46bf43160c1a35f7ec506d254e5c890f3c03648a4dbac12d624e4490a7046cd1"},+ {file = "cffi-1.17.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a24ed04c8ffd54b0729c07cee15a81d964e6fee0e3d4d342a27b020d22959dc6"},+ {file = "cffi-1.17.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:610faea79c43e44c71e1ec53a554553fa22321b65fae24889706c0a84d4ad86d"},+ {file = "cffi-1.17.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:a9b15d491f3ad5d692e11f6b71f7857e7835eb677955c00cc0aefcd0669adaf6"},+ {file = "cffi-1.17.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:de2ea4b5833625383e464549fec1bc395c1bdeeb5f25c4a3a82b5a8c756ec22f"},+ {file = "cffi-1.17.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:fc48c783f9c87e60831201f2cce7f3b2e4846bf4d8728eabe54d60700b318a0b"},+ {file = "cffi-1.17.1-cp311-cp311-win32.whl", hash = "sha256:85a950a4ac9c359340d5963966e3e0a94a676bd6245a4b55bc43949eee26a655"},+ {file = "cffi-1.17.1-cp311-cp311-win_amd64.whl", hash = "sha256:caaf0640ef5f5517f49bc275eca1406b0ffa6aa184892812030f04c2abf589a0"},+ {file = "cffi-1.17.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:805b4371bf7197c329fcb3ead37e710d1bca9da5d583f5073b799d5c5bd1eee4"},+ {file = "cffi-1.17.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:733e99bc2df47476e3848417c5a4540522f234dfd4ef3ab7fafdf555b082ec0c"},+ {file = "cffi-1.17.1-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1257bdabf294dceb59f5e70c64a3e2f462c30c7ad68092d01bbbfb1c16b1ba36"},+ {file = "cffi-1.17.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:da95af8214998d77a98cc14e3a3bd00aa191526343078b530ceb0bd710fb48a5"},+ {file = "cffi-1.17.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d63afe322132c194cf832bfec0dc69a99fb9bb6bbd550f161a49e9e855cc78ff"},+ {file = "cffi-1.17.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f79fc4fc25f1c8698ff97788206bb3c2598949bfe0fef03d299eb1b5356ada99"},+ {file = "cffi-1.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b62ce867176a75d03a665bad002af8e6d54644fad99a3c70905c543130e39d93"},+ {file = "cffi-1.17.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:386c8bf53c502fff58903061338ce4f4950cbdcb23e2902d86c0f722b786bbe3"},+ {file = "cffi-1.17.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:4ceb10419a9adf4460ea14cfd6bc43d08701f0835e979bf821052f1805850fe8"},+ {file = "cffi-1.17.1-cp312-cp312-win32.whl", hash = "sha256:a08d7e755f8ed21095a310a693525137cfe756ce62d066e53f502a83dc550f65"},+ {file = "cffi-1.17.1-cp312-cp312-win_amd64.whl", hash = "sha256:51392eae71afec0d0c8fb1a53b204dbb3bcabcb3c9b807eedf3e1e6ccf2de903"},+ {file = "cffi-1.17.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f3a2b4222ce6b60e2e8b337bb9596923045681d71e5a082783484d845390938e"},+ {file = "cffi-1.17.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0984a4925a435b1da406122d4d7968dd861c1385afe3b45ba82b750f229811e2"},+ {file = "cffi-1.17.1-cp313-cp313-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d01b12eeeb4427d3110de311e1774046ad344f5b1a7403101878976ecd7a10f3"},+ {file = "cffi-1.17.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:706510fe141c86a69c8ddc029c7910003a17353970cff3b904ff0686a5927683"},+ {file = "cffi-1.17.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:de55b766c7aa2e2a3092c51e0483d700341182f08e67c63630d5b6f200bb28e5"},+ {file = "cffi-1.17.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c59d6e989d07460165cc5ad3c61f9fd8f1b4796eacbd81cee78957842b834af4"},+ {file = "cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dd398dbc6773384a17fe0d3e7eeb8d1a21c2200473ee6806bb5e6a8e62bb73dd"},+ {file = "cffi-1.17.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:3edc8d958eb099c634dace3c7e16560ae474aa3803a5df240542b305d14e14ed"},+ {file = "cffi-1.17.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:72e72408cad3d5419375fc87d289076ee319835bdfa2caad331e377589aebba9"},+ {file = "cffi-1.17.1-cp313-cp313-win32.whl", hash = "sha256:e03eab0a8677fa80d646b5ddece1cbeaf556c313dcfac435ba11f107ba117b5d"},+ {file = "cffi-1.17.1-cp313-cp313-win_amd64.whl", hash = "sha256:f6a16c31041f09ead72d69f583767292f750d24913dadacf5756b966aacb3f1a"},+ {file = "cffi-1.17.1.tar.gz", hash = "sha256:1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824"},+]++[[package]]+name = "cfgv"+version = "3.4.0"+requires_python = ">=3.8"+summary = "Validate configuration and produce human readable error messages."+groups = ["dev"]+files = [+ {file = "cfgv-3.4.0-py2.py3-none-any.whl", hash = "sha256:b7265b1f29fd3316bfcd2b330d63d024f2bfd8bcb8b0272f8e19a504856c48f9"},+ {file = "cfgv-3.4.0.tar.gz", hash = "sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560"},+]++[[package]]+name = "chardet"+version = "5.2.0"+requires_python = ">=3.7"+summary = "Universal encoding detector for Python 3"+groups = ["default"]+files = [+ {file = "chardet-5.2.0-py3-none-any.whl", hash = "sha256:e1cf59446890a00105fe7b7912492ea04b6e6f06d4b742b2c788469e34c82970"},+ {file = "chardet-5.2.0.tar.gz", hash = "sha256:1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7"},+]++[[package]]+name = "charset-normalizer"+version = "3.4.1"+requires_python = ">=3.7"+summary = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."+groups = ["default"]+files = [+ {file = "charset_normalizer-3.4.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:91b36a978b5ae0ee86c394f5a54d6ef44db1de0815eb43de826d41d21e4af3de"},+ {file = "charset_normalizer-3.4.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7461baadb4dc00fd9e0acbe254e3d7d2112e7f92ced2adc96e54ef6501c5f176"},+ {file = "charset_normalizer-3.4.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e218488cd232553829be0664c2292d3af2eeeb94b32bea483cf79ac6a694e037"},+ {file = "charset_normalizer-3.4.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:80ed5e856eb7f30115aaf94e4a08114ccc8813e6ed1b5efa74f9f82e8509858f"},+ {file = "charset_normalizer-3.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b010a7a4fd316c3c484d482922d13044979e78d1861f0e0650423144c616a46a"},+ {file = "charset_normalizer-3.4.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4532bff1b8421fd0a320463030c7520f56a79c9024a4e88f01c537316019005a"},+ {file = "charset_normalizer-3.4.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d973f03c0cb71c5ed99037b870f2be986c3c05e63622c017ea9816881d2dd247"},+ {file = "charset_normalizer-3.4.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:3a3bd0dcd373514dcec91c411ddb9632c0d7d92aed7093b8c3bbb6d69ca74408"},+ {file = "charset_normalizer-3.4.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:d9c3cdf5390dcd29aa8056d13e8e99526cda0305acc038b96b30352aff5ff2bb"},+ {file = "charset_normalizer-3.4.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:2bdfe3ac2e1bbe5b59a1a63721eb3b95fc9b6817ae4a46debbb4e11f6232428d"},+ {file = "charset_normalizer-3.4.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:eab677309cdb30d047996b36d34caeda1dc91149e4fdca0b1a039b3f79d9a807"},+ {file = "charset_normalizer-3.4.1-cp310-cp310-win32.whl", hash = "sha256:c0429126cf75e16c4f0ad00ee0eae4242dc652290f940152ca8c75c3a4b6ee8f"},+ {file = "charset_normalizer-3.4.1-cp310-cp310-win_amd64.whl", hash = "sha256:9f0b8b1c6d84c8034a44893aba5e767bf9c7a211e313a9605d9c617d7083829f"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:8bfa33f4f2672964266e940dd22a195989ba31669bd84629f05fab3ef4e2d125"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:28bf57629c75e810b6ae989f03c0828d64d6b26a5e205535585f96093e405ed1"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f08ff5e948271dc7e18a35641d2f11a4cd8dfd5634f55228b691e62b37125eb3"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:234ac59ea147c59ee4da87a0c0f098e9c8d169f4dc2a159ef720f1a61bbe27cd"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd4ec41f914fa74ad1b8304bbc634b3de73d2a0889bd32076342a573e0779e00"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eea6ee1db730b3483adf394ea72f808b6e18cf3cb6454b4d86e04fa8c4327a12"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c96836c97b1238e9c9e3fe90844c947d5afbf4f4c92762679acfe19927d81d77"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:4d86f7aff21ee58f26dcf5ae81a9addbd914115cdebcbb2217e4f0ed8982e146"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:09b5e6733cbd160dcc09589227187e242a30a49ca5cefa5a7edd3f9d19ed53fd"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:5777ee0881f9499ed0f71cc82cf873d9a0ca8af166dfa0af8ec4e675b7df48e6"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:237bdbe6159cff53b4f24f397d43c6336c6b0b42affbe857970cefbb620911c8"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-win32.whl", hash = "sha256:8417cb1f36cc0bc7eaba8ccb0e04d55f0ee52df06df3ad55259b9a323555fc8b"},+ {file = "charset_normalizer-3.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:d7f50a1f8c450f3925cb367d011448c39239bb3eb4117c36a6d354794de4ce76"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:73d94b58ec7fecbc7366247d3b0b10a21681004153238750bb67bd9012414545"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dad3e487649f498dd991eeb901125411559b22e8d7ab25d3aeb1af367df5efd7"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c30197aa96e8eed02200a83fba2657b4c3acd0f0aa4bdc9f6c1af8e8962e0757"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2369eea1ee4a7610a860d88f268eb39b95cb588acd7235e02fd5a5601773d4fa"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc2722592d8998c870fa4e290c2eec2c1569b87fe58618e67d38b4665dfa680d"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ffc9202a29ab3920fa812879e95a9e78b2465fd10be7fcbd042899695d75e616"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:804a4d582ba6e5b747c625bf1255e6b1507465494a40a2130978bda7b932c90b"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:0f55e69f030f7163dffe9fd0752b32f070566451afe180f99dbeeb81f511ad8d"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c4c3e6da02df6fa1410a7680bd3f63d4f710232d3139089536310d027950696a"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:5df196eb874dae23dcfb968c83d4f8fdccb333330fe1fc278ac5ceeb101003a9"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e358e64305fe12299a08e08978f51fc21fac060dcfcddd95453eabe5b93ed0e1"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-win32.whl", hash = "sha256:9b23ca7ef998bc739bf6ffc077c2116917eabcc901f88da1b9856b210ef63f35"},+ {file = "charset_normalizer-3.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:6ff8a4a60c227ad87030d76e99cd1698345d4491638dfa6673027c48b3cd395f"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:aabfa34badd18f1da5ec1bc2715cadc8dca465868a4e73a0173466b688f29dda"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22e14b5d70560b8dd51ec22863f370d1e595ac3d024cb8ad7d308b4cd95f8313"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8436c508b408b82d87dc5f62496973a1805cd46727c34440b0d29d8a2f50a6c9"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2d074908e1aecee37a7635990b2c6d504cd4766c7bc9fc86d63f9c09af3fa11b"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:955f8851919303c92343d2f66165294848d57e9bba6cf6e3625485a70a038d11"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:44ecbf16649486d4aebafeaa7ec4c9fed8b88101f4dd612dcaf65d5e815f837f"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0924e81d3d5e70f8126529951dac65c1010cdf117bb75eb02dd12339b57749dd"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2967f74ad52c3b98de4c3b32e1a44e32975e008a9cd2a8cc8966d6a5218c5cb2"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c75cb2a3e389853835e84a2d8fb2b81a10645b503eca9bcb98df6b5a43eb8886"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:09b26ae6b1abf0d27570633b2b078a2a20419c99d66fb2823173d73f188ce601"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fa88b843d6e211393a37219e6a1c1df99d35e8fd90446f1118f4216e307e48cd"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-win32.whl", hash = "sha256:eb8178fe3dba6450a3e024e95ac49ed3400e506fd4e9e5c32d30adda88cbd407"},+ {file = "charset_normalizer-3.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:b1ac5992a838106edb89654e0aebfc24f5848ae2547d22c2c3f66454daa11971"},+ {file = "charset_normalizer-3.4.1-py3-none-any.whl", hash = "sha256:d98b1668f06378c6dbefec3b92299716b931cd4e6061f3c875a71ced1780ab85"},+ {file = "charset_normalizer-3.4.1.tar.gz", hash = "sha256:44251f18cd68a75b56585dd00dae26183e102cd5e0f9f1466e6df5da2ed64ea3"},+]++[[package]]+name = "click"+version = "8.1.8"+requires_python = ">=3.7"+summary = "Composable command line interface toolkit"+groups = ["default", "dev"]+dependencies = [+ "colorama; platform_system == \"Windows\"",+ "importlib-metadata; python_version < \"3.8\"",+]+files = [+ {file = "click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2"},+ {file = "click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a"},+]++[[package]]+name = "colorama"+version = "0.4.6"+requires_python = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"+summary = "Cross-platform colored terminal text."+groups = ["default", "dev"]+marker = "platform_system == \"Windows\""+files = [+ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"},+ {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},+]++[[package]]+name = "cryptography"+version = "44.0.2"+requires_python = "!=3.9.0,!=3.9.1,>=3.7"+summary = "cryptography is a package which provides cryptographic recipes and primitives to Python developers."+groups = ["default"]+dependencies = [+ "cffi>=1.12; platform_python_implementation != \"PyPy\"",+]+files = [+ {file = "cryptography-44.0.2-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:efcfe97d1b3c79e486554efddeb8f6f53a4cdd4cf6086642784fa31fc384e1d7"},+ {file = "cryptography-44.0.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29ecec49f3ba3f3849362854b7253a9f59799e3763b0c9d0826259a88efa02f1"},+ {file = "cryptography-44.0.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc821e161ae88bfe8088d11bb39caf2916562e0a2dc7b6d56714a48b784ef0bb"},+ {file = "cryptography-44.0.2-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3c00b6b757b32ce0f62c574b78b939afab9eecaf597c4d624caca4f9e71e7843"},+ {file = "cryptography-44.0.2-cp37-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7bdcd82189759aba3816d1f729ce42ffded1ac304c151d0a8e89b9996ab863d5"},+ {file = "cryptography-44.0.2-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:4973da6ca3db4405c54cd0b26d328be54c7747e89e284fcff166132eb7bccc9c"},+ {file = "cryptography-44.0.2-cp37-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:4e389622b6927d8133f314949a9812972711a111d577a5d1f4bee5e58736b80a"},+ {file = "cryptography-44.0.2-cp37-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:f514ef4cd14bb6fb484b4a60203e912cfcb64f2ab139e88c2274511514bf7308"},+ {file = "cryptography-44.0.2-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1bc312dfb7a6e5d66082c87c34c8a62176e684b6fe3d90fcfe1568de675e6688"},+ {file = "cryptography-44.0.2-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:3b721b8b4d948b218c88cb8c45a01793483821e709afe5f622861fc6182b20a7"},+ {file = "cryptography-44.0.2-cp37-abi3-win32.whl", hash = "sha256:51e4de3af4ec3899d6d178a8c005226491c27c4ba84101bfb59c901e10ca9f79"},+ {file = "cryptography-44.0.2-cp37-abi3-win_amd64.whl", hash = "sha256:c505d61b6176aaf982c5717ce04e87da5abc9a36a5b39ac03905c4aafe8de7aa"},+ {file = "cryptography-44.0.2-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:8e0ddd63e6bf1161800592c71ac794d3fb8001f2caebe0966e77c5234fa9efc3"},+ {file = "cryptography-44.0.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:81276f0ea79a208d961c433a947029e1a15948966658cf6710bbabb60fcc2639"},+ {file = "cryptography-44.0.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9a1e657c0f4ea2a23304ee3f964db058c9e9e635cc7019c4aa21c330755ef6fd"},+ {file = "cryptography-44.0.2-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:6210c05941994290f3f7f175a4a57dbbb2afd9273657614c506d5976db061181"},+ {file = "cryptography-44.0.2-cp39-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:d1c3572526997b36f245a96a2b1713bf79ce99b271bbcf084beb6b9b075f29ea"},+ {file = "cryptography-44.0.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:b042d2a275c8cee83a4b7ae30c45a15e6a4baa65a179a0ec2d78ebb90e4f6699"},+ {file = "cryptography-44.0.2-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:d03806036b4f89e3b13b6218fefea8d5312e450935b1a2d55f0524e2ed7c59d9"},+ {file = "cryptography-44.0.2-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:c7362add18b416b69d58c910caa217f980c5ef39b23a38a0880dfd87bdf8cd23"},+ {file = "cryptography-44.0.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:8cadc6e3b5a1f144a039ea08a0bdb03a2a92e19c46be3285123d32029f40a922"},+ {file = "cryptography-44.0.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:6f101b1f780f7fc613d040ca4bdf835c6ef3b00e9bd7125a4255ec574c7916e4"},+ {file = "cryptography-44.0.2-cp39-abi3-win32.whl", hash = "sha256:3dc62975e31617badc19a906481deacdeb80b4bb454394b4098e3f2525a488c5"},+ {file = "cryptography-44.0.2-cp39-abi3-win_amd64.whl", hash = "sha256:5f6f90b72d8ccadb9c6e311c775c8305381db88374c65fa1a68250aa8a9cb3a6"},+ {file = "cryptography-44.0.2-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:af4ff3e388f2fa7bff9f7f2b31b87d5651c45731d3e8cfa0944be43dff5cfbdb"},+ {file = "cryptography-44.0.2-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:0529b1d5a0105dd3731fa65680b45ce49da4d8115ea76e9da77a875396727b41"},+ {file = "cryptography-44.0.2-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:7ca25849404be2f8e4b3c59483d9d3c51298a22c1c61a0e84415104dacaf5562"},+ {file = "cryptography-44.0.2-pp310-pypy310_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:268e4e9b177c76d569e8a145a6939eca9a5fec658c932348598818acf31ae9a5"},+ {file = "cryptography-44.0.2-pp310-pypy310_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:9eb9d22b0a5d8fd9925a7764a054dca914000607dff201a24c791ff5c799e1fa"},+ {file = "cryptography-44.0.2-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:2bf7bf75f7df9715f810d1b038870309342bff3069c5bd8c6b96128cb158668d"},+ {file = "cryptography-44.0.2-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:909c97ab43a9c0c0b0ada7a1281430e4e5ec0458e6d9244c0e821bbf152f061d"},+ {file = "cryptography-44.0.2-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:96e7a5e9d6e71f9f4fca8eebfd603f8e86c5225bb18eb621b2c1e50b290a9471"},+ {file = "cryptography-44.0.2-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:d1b3031093a366ac767b3feb8bcddb596671b3aaff82d4050f984da0c248b615"},+ {file = "cryptography-44.0.2-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:04abd71114848aa25edb28e225ab5f268096f44cf0127f3d36975bdf1bdf3390"},+ {file = "cryptography-44.0.2.tar.gz", hash = "sha256:c63454aa261a0cf0c5b4718349629793e9e634993538db841165b3df74f37ec0"},+]++[[package]]+name = "dataclasses-json"+version = "0.6.7"+requires_python = "<4.0,>=3.7"+summary = "Easily serialize dataclasses to and from JSON."+groups = ["default"]+dependencies = [+ "marshmallow<4.0.0,>=3.18.0",+ "typing-inspect<1,>=0.4.0",+]+files = [+ {file = "dataclasses_json-0.6.7-py3-none-any.whl", hash = "sha256:0dbf33f26c8d5305befd61b39d2b3414e8a407bedc2834dea9b8d642666fb40a"},+ {file = "dataclasses_json-0.6.7.tar.gz", hash = "sha256:b6b3e528266ea45b9535223bc53ca645f5208833c29229e847b3f26a1cc55fc0"},+]++[[package]]+name = "distlib"+version = "0.3.9"+summary = "Distribution utilities"+groups = ["dev"]+files = [+ {file = "distlib-0.3.9-py2.py3-none-any.whl", hash = "sha256:47f8c22fd27c27e25a65601af709b38e4f0a45ea4fc2e710f65755fa8caaaf87"},+ {file = "distlib-0.3.9.tar.gz", hash = "sha256:a60f20dea646b8a33f3e7772f74dc0b2d0772d2837ee1342a00645c81edf9403"},+]++[[package]]+name = "distro"+version = "1.9.0"+requires_python = ">=3.6"+summary = "Distro - an OS platform information API"+groups = ["default"]+files = [+ {file = "distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2"},+ {file = "distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed"},+]++[[package]]+name = "duckduckgo-search"+version = "7.5.5"+requires_python = ">=3.9"+summary = "Search for words, documents, images, news, maps and text translation using the DuckDuckGo.com search engine."+groups = ["default"]+dependencies = [+ "click>=8.1.8",+ "lxml>=5.3.0",+ "primp>=0.14.0",+]+files = [+ {file = "duckduckgo_search-7.5.5-py3-none-any.whl", hash = "sha256:c71a0661aa436f215d9a05d653af424affb58825ab3e79f3b788053cbdee9ebc"},+ {file = "duckduckgo_search-7.5.5.tar.gz", hash = "sha256:44ef03bfa5484bada786590f2d4c213251131765721383a177a0da6fa5c5e41a"},+]++[[package]]+name = "dynaconf"+version = "3.2.10"+requires_python = ">=3.8"+summary = "The dynamic configurator for your Python Project"+groups = ["default"]+files = [+ {file = "dynaconf-3.2.10-py2.py3-none-any.whl", hash = "sha256:7f70a4b8a8861efb88d8267aeb6f246c791dc34ecbb8299c26a19abd59113df6"},+ {file = "dynaconf-3.2.10.tar.gz", hash = "sha256:8dbeef31a2343c8342c9b679772c3d005b4801c587cf2f525f98f57ec2f607f1"},+]++[[package]]+name = "emoji"+version = "2.14.1"+requires_python = ">=3.7"+summary = "Emoji for Python"+groups = ["default"]+dependencies = [+ "typing-extensions>=4.7.0; python_version < \"3.9\"",+]+files = [+ {file = "emoji-2.14.1-py3-none-any.whl", hash = "sha256:35a8a486c1460addb1499e3bf7929d3889b2e2841a57401903699fef595e942b"},+ {file = "emoji-2.14.1.tar.gz", hash = "sha256:f8c50043d79a2c1410ebfae833ae1868d5941a67a6cd4d18377e2eb0bd79346b"},+]++[[package]]+name = "eval-type-backport"+version = "0.2.2"+requires_python = ">=3.8"+summary = "Like `typing._eval_type`, but lets older Python versions use newer typing features."+groups = ["default"]+files = [+ {file = "eval_type_backport-0.2.2-py3-none-any.whl", hash = "sha256:cb6ad7c393517f476f96d456d0412ea80f0a8cf96f6892834cd9340149111b0a"},+ {file = "eval_type_backport-0.2.2.tar.gz", hash = "sha256:f0576b4cf01ebb5bd358d02314d31846af5e07678387486e2c798af0e7d849c1"},+]++[[package]]+name = "exceptiongroup"+version = "1.2.2"+requires_python = ">=3.7"+summary = "Backport of PEP 654 (exception groups)"+groups = ["default"]+marker = "python_version < \"3.11\""+files = [+ {file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"},+ {file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"},+]++[[package]]+name = "faiss-cpu"+version = "1.10.0"+requires_python = ">=3.9"+summary = "A library for efficient similarity search and clustering of dense vectors."+groups = ["default"]+dependencies = [+ "numpy<3.0,>=1.25.0",+ "packaging",+]+files = [+ {file = "faiss_cpu-1.10.0-cp310-cp310-macosx_10_14_x86_64.whl", hash = "sha256:6693474be296a7142ade1051ea18e7d85cedbfdee4b7eac9c52f83fed0467855"},+ {file = "faiss_cpu-1.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:70ebe60a560414dc8dd6cfe8fed105c8f002c0d11f765f5adfe8d63d42c0467f"},+ {file = "faiss_cpu-1.10.0-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:74c5712d4890f15c661ab7b1b75867812e9596e1469759956fad900999bedbb5"},+ {file = "faiss_cpu-1.10.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:473d158fbd638d6ad5fb64469ba79a9f09d3494b5f4e8dfb4f40ce2fc335dca4"},+ {file = "faiss_cpu-1.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:dcd0cb2ec84698cbe3df9ed247d2392f09bda041ad34b92d38fa916cd019ad4b"},+ {file = "faiss_cpu-1.10.0-cp311-cp311-macosx_10_14_x86_64.whl", hash = "sha256:8ff6924b0f00df278afe70940ae86302066466580724c2f3238860039e9946f1"},+ {file = "faiss_cpu-1.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:cb80b530a9ded44a7d4031a7355a237aaa0ff1f150c1176df050e0254ea5f6f6"},+ {file = "faiss_cpu-1.10.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:7a9fef4039ed877d40e41d5563417b154c7f8cd57621487dad13c4eb4f32515f"},+ {file = "faiss_cpu-1.10.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:49b6647aa9e159a2c4603cbff2e1b313becd98ad6e851737ab325c74fe8e0278"},+ {file = "faiss_cpu-1.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:6f8c0ef8b615c12c7bf612bd1fc51cffa49c1ddaa6207c6981f01ab6782e6b3b"},+ {file = "faiss_cpu-1.10.0-cp312-cp312-macosx_10_14_x86_64.whl", hash = "sha256:2aca486fe2d680ea64a18d356206c91ff85db99fd34c19a757298c67c23262b1"},+ {file = "faiss_cpu-1.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c1108a4059c66c37c403183e566ca1ed0974a6af7557c92d49207639aab661bc"},+ {file = "faiss_cpu-1.10.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:449f3eb778d6d937e01a16a3170de4bb8aabfe87c7cb479b458fb790276310c5"},+ {file = "faiss_cpu-1.10.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:9899c340f92bd94071d6faf4bef0ccb5362843daea42144d4ba857a2a1f67511"},+ {file = "faiss_cpu-1.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:345a52dbfa980d24b93c94410eadf82d1eef359c6a42e5e0768cca96539f1c3c"},+ {file = "faiss_cpu-1.10.0-cp313-cp313-macosx_10_14_x86_64.whl", hash = "sha256:cb8473d69c3964c1bf3f8eb3e04287bb3275f536e6d9635ef32242b5f506b45d"},+ {file = "faiss_cpu-1.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:82ca5098de694e7b8495c1a8770e2c08df6e834922546dad0ae1284ff519ced6"},+ {file = "faiss_cpu-1.10.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:035e4d797e2db7fc0d0c90531d4a655d089ad5d1382b7a49358c1f2307b3a309"},+ {file = "faiss_cpu-1.10.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:e02af3696a6b9e1f9072e502f48095a305de2163c42ceb1f6f6b1db9e7ffe574"},+ {file = "faiss_cpu-1.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:e71f7e24d5b02d3a51df47b77bd10f394a1b48a8331d5c817e71e9e27a8a75ac"},+ {file = "faiss_cpu-1.10.0.tar.gz", hash = "sha256:5bdca555f24bc036f4d67f8a5a4d6cc91b8d2126d4e78de496ca23ccd46e479d"},+]++[[package]]+name = "feedparser"+version = "6.0.11"+requires_python = ">=3.6"+summary = "Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds"+groups = ["default"]+dependencies = [+ "sgmllib3k",+]+files = [+ {file = "feedparser-6.0.11-py3-none-any.whl", hash = "sha256:0be7ee7b395572b19ebeb1d6aafb0028dee11169f1c934e0ed67d54992f4ad45"},+ {file = "feedparser-6.0.11.tar.gz", hash = "sha256:c9d0407b64c6f2a065d0ebb292c2b35c01050cc0dc33757461aaabdc4c4184d5"},+]++[[package]]+name = "filelock"+version = "3.18.0"+requires_python = ">=3.9"+summary = "A platform independent file lock."+groups = ["default", "dev"]+files = [+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},+]++[[package]]+name = "filetype"+version = "1.2.0"+summary = "Infer file type and MIME type of any file/buffer. No external dependencies."+groups = ["default"]+files = [+ {file = "filetype-1.2.0-py2.py3-none-any.whl", hash = "sha256:7ce71b6880181241cf7ac8697a2f1eb6a8bd9b429f7ad6d27b8db9ba5f1c2d25"},+ {file = "filetype-1.2.0.tar.gz", hash = "sha256:66b56cd6474bf41d8c54660347d37afcc3f7d1970648de365c102ef77548aadb"},+]++[[package]]+name = "flake8"+version = "7.1.2"+requires_python = ">=3.8.1"+summary = "the modular source code checker: pep8 pyflakes and co"+groups = ["dev"]+dependencies = [+ "mccabe<0.8.0,>=0.7.0",+ "pycodestyle<2.13.0,>=2.12.0",+ "pyflakes<3.3.0,>=3.2.0",+]+files = [+ {file = "flake8-7.1.2-py2.py3-none-any.whl", hash = "sha256:1cbc62e65536f65e6d754dfe6f1bada7f5cf392d6f5db3c2b85892466c3e7c1a"},+ {file = "flake8-7.1.2.tar.gz", hash = "sha256:c586ffd0b41540951ae41af572e6790dbd49fc12b3aa2541685d253d9bd504bd"},+]++[[package]]+name = "flask"+version = "3.1.0"+requires_python = ">=3.9"+summary = "A simple framework for building complex web applications."+groups = ["default"]+dependencies = [+ "Jinja2>=3.1.2",+ "Werkzeug>=3.1",+ "blinker>=1.9",+ "click>=8.1.3",+ "importlib-metadata>=3.6; python_version < \"3.10\"",+ "itsdangerous>=2.2",+]+files = [+ {file = "flask-3.1.0-py3-none-any.whl", hash = "sha256:d667207822eb83f1c4b50949b1623c8fc8d51f2341d65f72e1a1815397551136"},+ {file = "flask-3.1.0.tar.gz", hash = "sha256:5f873c5184c897c8d9d1b05df1e3d01b14910ce69607a117bd3277098a5836ac"},+]++[[package]]+name = "flask-cors"+version = "5.0.1"+requires_python = "<4.0,>=3.9"+summary = "A Flask extension simplifying CORS support"+groups = ["default"]+dependencies = [+ "Werkzeug>=0.7",+ "flask>=0.9",+]+files = [+ {file = "flask_cors-5.0.1-py3-none-any.whl", hash = "sha256:fa5cb364ead54bbf401a26dbf03030c6b18fb2fcaf70408096a572b409586b0c"},+ {file = "flask_cors-5.0.1.tar.gz", hash = "sha256:6ccb38d16d6b72bbc156c1c3f192bc435bfcc3c2bc864b2df1eb9b2d97b2403c"},+]++[[package]]+name = "flask-socketio"+version = "5.5.1"+requires_python = ">=3.6"+summary = "Socket.IO integration for Flask applications"+groups = ["default"]+dependencies = [+ "Flask>=0.9",+ "python-socketio>=5.12.0",+]+files = [+ {file = "Flask_SocketIO-5.5.1-py3-none-any.whl", hash = "sha256:35a50166db44d055f68021d6ec32cb96f1f925cd82de4504314be79139ea846f"},+ {file = "flask_socketio-5.5.1.tar.gz", hash = "sha256:d946c944a1074ccad8e99485a6f5c79bc5789e3ea4df0bb9c864939586c51ec4"},+]++[[package]]+name = "frozenlist"+version = "1.5.0"+requires_python = ">=3.8"+summary = "A list-like structure which implements collections.abc.MutableSequence"+groups = ["default"]+files = [+ {file = "frozenlist-1.5.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:5b6a66c18b5b9dd261ca98dffcb826a525334b2f29e7caa54e182255c5f6a65a"},+ {file = "frozenlist-1.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d1b3eb7b05ea246510b43a7e53ed1653e55c2121019a97e60cad7efb881a97bb"},+ {file = "frozenlist-1.5.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:15538c0cbf0e4fa11d1e3a71f823524b0c46299aed6e10ebb4c2089abd8c3bec"},+ {file = "frozenlist-1.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e79225373c317ff1e35f210dd5f1344ff31066ba8067c307ab60254cd3a78ad5"},+ {file = "frozenlist-1.5.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9272fa73ca71266702c4c3e2d4a28553ea03418e591e377a03b8e3659d94fa76"},+ {file = "frozenlist-1.5.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:498524025a5b8ba81695761d78c8dd7382ac0b052f34e66939c42df860b8ff17"},+ {file = "frozenlist-1.5.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:92b5278ed9d50fe610185ecd23c55d8b307d75ca18e94c0e7de328089ac5dcba"},+ {file = "frozenlist-1.5.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7f3c8c1dacd037df16e85227bac13cca58c30da836c6f936ba1df0c05d046d8d"},+ {file = "frozenlist-1.5.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:f2ac49a9bedb996086057b75bf93538240538c6d9b38e57c82d51f75a73409d2"},+ {file = "frozenlist-1.5.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e66cc454f97053b79c2ab09c17fbe3c825ea6b4de20baf1be28919460dd7877f"},+ {file = "frozenlist-1.5.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:5a3ba5f9a0dfed20337d3e966dc359784c9f96503674c2faf015f7fe8e96798c"},+ {file = "frozenlist-1.5.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:6321899477db90bdeb9299ac3627a6a53c7399c8cd58d25da094007402b039ab"},+ {file = "frozenlist-1.5.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:76e4753701248476e6286f2ef492af900ea67d9706a0155335a40ea21bf3b2f5"},+ {file = "frozenlist-1.5.0-cp310-cp310-win32.whl", hash = "sha256:977701c081c0241d0955c9586ffdd9ce44f7a7795df39b9151cd9a6fd0ce4cfb"},+ {file = "frozenlist-1.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:189f03b53e64144f90990d29a27ec4f7997d91ed3d01b51fa39d2dbe77540fd4"},+ {file = "frozenlist-1.5.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:fd74520371c3c4175142d02a976aee0b4cb4a7cc912a60586ffd8d5929979b30"},+ {file = "frozenlist-1.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2f3f7a0fbc219fb4455264cae4d9f01ad41ae6ee8524500f381de64ffaa077d5"},+ {file = "frozenlist-1.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f47c9c9028f55a04ac254346e92977bf0f166c483c74b4232bee19a6697e4778"},+ {file = "frozenlist-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0996c66760924da6e88922756d99b47512a71cfd45215f3570bf1e0b694c206a"},+ {file = "frozenlist-1.5.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a2fe128eb4edeabe11896cb6af88fca5346059f6c8d807e3b910069f39157869"},+ {file = "frozenlist-1.5.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1a8ea951bbb6cacd492e3948b8da8c502a3f814f5d20935aae74b5df2b19cf3d"},+ {file = "frozenlist-1.5.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:de537c11e4aa01d37db0d403b57bd6f0546e71a82347a97c6a9f0dcc532b3a45"},+ {file = "frozenlist-1.5.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c2623347b933fcb9095841f1cc5d4ff0b278addd743e0e966cb3d460278840d"},+ {file = "frozenlist-1.5.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:cee6798eaf8b1416ef6909b06f7dc04b60755206bddc599f52232606e18179d3"},+ {file = "frozenlist-1.5.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:f5f9da7f5dbc00a604fe74aa02ae7c98bcede8a3b8b9666f9f86fc13993bc71a"},+ {file = "frozenlist-1.5.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:90646abbc7a5d5c7c19461d2e3eeb76eb0b204919e6ece342feb6032c9325ae9"},+ {file = "frozenlist-1.5.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:bdac3c7d9b705d253b2ce370fde941836a5f8b3c5c2b8fd70940a3ea3af7f4f2"},+ {file = "frozenlist-1.5.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:03d33c2ddbc1816237a67f66336616416e2bbb6beb306e5f890f2eb22b959cdf"},+ {file = "frozenlist-1.5.0-cp311-cp311-win32.whl", hash = "sha256:237f6b23ee0f44066219dae14c70ae38a63f0440ce6750f868ee08775073f942"},+ {file = "frozenlist-1.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:0cc974cc93d32c42e7b0f6cf242a6bd941c57c61b618e78b6c0a96cb72788c1d"},+ {file = "frozenlist-1.5.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:31115ba75889723431aa9a4e77d5f398f5cf976eea3bdf61749731f62d4a4a21"},+ {file = "frozenlist-1.5.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7437601c4d89d070eac8323f121fcf25f88674627505334654fd027b091db09d"},+ {file = "frozenlist-1.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7948140d9f8ece1745be806f2bfdf390127cf1a763b925c4a805c603df5e697e"},+ {file = "frozenlist-1.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:feeb64bc9bcc6b45c6311c9e9b99406660a9c05ca8a5b30d14a78555088b0b3a"},+ {file = "frozenlist-1.5.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:683173d371daad49cffb8309779e886e59c2f369430ad28fe715f66d08d4ab1a"},+ {file = "frozenlist-1.5.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7d57d8f702221405a9d9b40f9da8ac2e4a1a8b5285aac6100f3393675f0a85ee"},+ {file = "frozenlist-1.5.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:30c72000fbcc35b129cb09956836c7d7abf78ab5416595e4857d1cae8d6251a6"},+ {file = "frozenlist-1.5.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:000a77d6034fbad9b6bb880f7ec073027908f1b40254b5d6f26210d2dab1240e"},+ {file = "frozenlist-1.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:5d7f5a50342475962eb18b740f3beecc685a15b52c91f7d975257e13e029eca9"},+ {file = "frozenlist-1.5.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:87f724d055eb4785d9be84e9ebf0f24e392ddfad00b3fe036e43f489fafc9039"},+ {file = "frozenlist-1.5.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:6e9080bb2fb195a046e5177f10d9d82b8a204c0736a97a153c2466127de87784"},+ {file = "frozenlist-1.5.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:9b93d7aaa36c966fa42efcaf716e6b3900438632a626fb09c049f6a2f09fc631"},+ {file = "frozenlist-1.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:52ef692a4bc60a6dd57f507429636c2af8b6046db8b31b18dac02cbc8f507f7f"},+ {file = "frozenlist-1.5.0-cp312-cp312-win32.whl", hash = "sha256:29d94c256679247b33a3dc96cce0f93cbc69c23bf75ff715919332fdbb6a32b8"},+ {file = "frozenlist-1.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:8969190d709e7c48ea386db202d708eb94bdb29207a1f269bab1196ce0dcca1f"},+ {file = "frozenlist-1.5.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:7a1a048f9215c90973402e26c01d1cff8a209e1f1b53f72b95c13db61b00f953"},+ {file = "frozenlist-1.5.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:dd47a5181ce5fcb463b5d9e17ecfdb02b678cca31280639255ce9d0e5aa67af0"},+ {file = "frozenlist-1.5.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1431d60b36d15cda188ea222033eec8e0eab488f39a272461f2e6d9e1a8e63c2"},+ {file = "frozenlist-1.5.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6482a5851f5d72767fbd0e507e80737f9c8646ae7fd303def99bfe813f76cf7f"},+ {file = "frozenlist-1.5.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:44c49271a937625619e862baacbd037a7ef86dd1ee215afc298a417ff3270608"},+ {file = "frozenlist-1.5.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:12f78f98c2f1c2429d42e6a485f433722b0061d5c0b0139efa64f396efb5886b"},+ {file = "frozenlist-1.5.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ce3aa154c452d2467487765e3adc730a8c153af77ad84096bc19ce19a2400840"},+ {file = "frozenlist-1.5.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9b7dc0c4338e6b8b091e8faf0db3168a37101943e687f373dce00959583f7439"},+ {file = "frozenlist-1.5.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:45e0896250900b5aa25180f9aec243e84e92ac84bd4a74d9ad4138ef3f5c97de"},+ {file = "frozenlist-1.5.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:561eb1c9579d495fddb6da8959fd2a1fca2c6d060d4113f5844b433fc02f2641"},+ {file = "frozenlist-1.5.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:df6e2f325bfee1f49f81aaac97d2aa757c7646534a06f8f577ce184afe2f0a9e"},+ {file = "frozenlist-1.5.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:140228863501b44b809fb39ec56b5d4071f4d0aa6d216c19cbb08b8c5a7eadb9"},+ {file = "frozenlist-1.5.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7707a25d6a77f5d27ea7dc7d1fc608aa0a478193823f88511ef5e6b8a48f9d03"},+ {file = "frozenlist-1.5.0-cp313-cp313-win32.whl", hash = "sha256:31a9ac2b38ab9b5a8933b693db4939764ad3f299fcaa931a3e605bc3460e693c"},+ {file = "frozenlist-1.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:11aabdd62b8b9c4b84081a3c246506d1cddd2dd93ff0ad53ede5defec7886b28"},+ {file = "frozenlist-1.5.0-py3-none-any.whl", hash = "sha256:d994863bba198a4a518b467bb971c56e1db3f180a25c6cf7bb1949c267f748c3"},+ {file = "frozenlist-1.5.0.tar.gz", hash = "sha256:81d5af29e61b9c8348e876d442253723928dce6433e0e76cd925cd83f1b4b817"},+]++[[package]]+name = "fsspec"+version = "2025.3.0"+requires_python = ">=3.8"+summary = "File-system specification"+groups = ["default"]+files = [+ {file = "fsspec-2025.3.0-py3-none-any.whl", hash = "sha256:efb87af3efa9103f94ca91a7f8cb7a4df91af9f74fc106c9c7ea0efd7277c1b3"},+ {file = "fsspec-2025.3.0.tar.gz", hash = "sha256:a935fd1ea872591f2b5148907d103488fc523295e6c64b835cfad8c3eca44972"},+]++[[package]]+name = "greenlet"+version = "3.1.1"+requires_python = ">=3.7"+summary = "Lightweight in-process concurrent programming"+groups = ["default"]+files = [+ {file = "greenlet-3.1.1-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:0bbae94a29c9e5c7e4a2b7f0aae5c17e8e90acbfd3bf6270eeba60c39fce3563"},+ {file = "greenlet-3.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0fde093fb93f35ca72a556cf72c92ea3ebfda3d79fc35bb19fbe685853869a83"},+ {file = "greenlet-3.1.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:36b89d13c49216cadb828db8dfa6ce86bbbc476a82d3a6c397f0efae0525bdd0"},+ {file = "greenlet-3.1.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:94b6150a85e1b33b40b1464a3f9988dcc5251d6ed06842abff82e42632fac120"},+ {file = "greenlet-3.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:93147c513fac16385d1036b7e5b102c7fbbdb163d556b791f0f11eada7ba65dc"},+ {file = "greenlet-3.1.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:da7a9bff22ce038e19bf62c4dd1ec8391062878710ded0a845bcf47cc0200617"},+ {file = "greenlet-3.1.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:b2795058c23988728eec1f36a4e5e4ebad22f8320c85f3587b539b9ac84128d7"},+ {file = "greenlet-3.1.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:ed10eac5830befbdd0c32f83e8aa6288361597550ba669b04c48f0f9a2c843c6"},+ {file = "greenlet-3.1.1-cp310-cp310-win_amd64.whl", hash = "sha256:77c386de38a60d1dfb8e55b8c1101d68c79dfdd25c7095d51fec2dd800892b80"},+ {file = "greenlet-3.1.1-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:e4d333e558953648ca09d64f13e6d8f0523fa705f51cae3f03b5983489958c70"},+ {file = "greenlet-3.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:09fc016b73c94e98e29af67ab7b9a879c307c6731a2c9da0db5a7d9b7edd1159"},+ {file = "greenlet-3.1.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d5e975ca70269d66d17dd995dafc06f1b06e8cb1ec1e9ed54c1d1e4a7c4cf26e"},+ {file = "greenlet-3.1.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3b2813dc3de8c1ee3f924e4d4227999285fd335d1bcc0d2be6dc3f1f6a318ec1"},+ {file = "greenlet-3.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e347b3bfcf985a05e8c0b7d462ba6f15b1ee1c909e2dcad795e49e91b152c383"},+ {file = "greenlet-3.1.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9e8f8c9cb53cdac7ba9793c276acd90168f416b9ce36799b9b885790f8ad6c0a"},+ {file = "greenlet-3.1.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:62ee94988d6b4722ce0028644418d93a52429e977d742ca2ccbe1c4f4a792511"},+ {file = "greenlet-3.1.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:1776fd7f989fc6b8d8c8cb8da1f6b82c5814957264d1f6cf818d475ec2bf6395"},+ {file = "greenlet-3.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:48ca08c771c268a768087b408658e216133aecd835c0ded47ce955381105ba39"},+ {file = "greenlet-3.1.1-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:4afe7ea89de619adc868e087b4d2359282058479d7cfb94970adf4b55284574d"},+ {file = "greenlet-3.1.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f406b22b7c9a9b4f8aa9d2ab13d6ae0ac3e85c9a809bd590ad53fed2bf70dc79"},+ {file = "greenlet-3.1.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c3a701fe5a9695b238503ce5bbe8218e03c3bcccf7e204e455e7462d770268aa"},+ {file = "greenlet-3.1.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2846930c65b47d70b9d178e89c7e1a69c95c1f68ea5aa0a58646b7a96df12441"},+ {file = "greenlet-3.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:99cfaa2110534e2cf3ba31a7abcac9d328d1d9f1b95beede58294a60348fba36"},+ {file = "greenlet-3.1.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1443279c19fca463fc33e65ef2a935a5b09bb90f978beab37729e1c3c6c25fe9"},+ {file = "greenlet-3.1.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:b7cede291382a78f7bb5f04a529cb18e068dd29e0fb27376074b6d0317bf4dd0"},+ {file = "greenlet-3.1.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:23f20bb60ae298d7d8656c6ec6db134bca379ecefadb0b19ce6f19d1f232a942"},+ {file = "greenlet-3.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:7124e16b4c55d417577c2077be379514321916d5790fa287c9ed6f23bd2ffd01"},+ {file = "greenlet-3.1.1-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:05175c27cb459dcfc05d026c4232f9de8913ed006d42713cb8a5137bd49375f1"},+ {file = "greenlet-3.1.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:935e943ec47c4afab8965954bf49bfa639c05d4ccf9ef6e924188f762145c0ff"},+ {file = "greenlet-3.1.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:667a9706c970cb552ede35aee17339a18e8f2a87a51fba2ed39ceeeb1004798a"},+ {file = "greenlet-3.1.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b8a678974d1f3aa55f6cc34dc480169d58f2e6d8958895d68845fa4ab566509e"},+ {file = "greenlet-3.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:efc0f674aa41b92da8c49e0346318c6075d734994c3c4e4430b1c3f853e498e4"},+ {file = "greenlet-3.1.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0153404a4bb921f0ff1abeb5ce8a5131da56b953eda6e14b88dc6bbc04d2049e"},+ {file = "greenlet-3.1.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:275f72decf9932639c1c6dd1013a1bc266438eb32710016a1c742df5da6e60a1"},+ {file = "greenlet-3.1.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:c4aab7f6381f38a4b42f269057aee279ab0fc7bf2e929e3d4abfae97b682a12c"},+ {file = "greenlet-3.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:b42703b1cf69f2aa1df7d1030b9d77d3e584a70755674d60e710f0af570f3761"},+ {file = "greenlet-3.1.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f1695e76146579f8c06c1509c7ce4dfe0706f49c6831a817ac04eebb2fd02011"},+ {file = "greenlet-3.1.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7876452af029456b3f3549b696bb36a06db7c90747740c5302f74a9e9fa14b13"},+ {file = "greenlet-3.1.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4ead44c85f8ab905852d3de8d86f6f8baf77109f9da589cb4fa142bd3b57b475"},+ {file = "greenlet-3.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8320f64b777d00dd7ccdade271eaf0cad6636343293a25074cc5566160e4de7b"},+ {file = "greenlet-3.1.1-cp313-cp313t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6510bf84a6b643dabba74d3049ead221257603a253d0a9873f55f6a59a65f822"},+ {file = "greenlet-3.1.1-cp313-cp313t-musllinux_1_1_aarch64.whl", hash = "sha256:04b013dc07c96f83134b1e99888e7a79979f1a247e2a9f59697fa14b5862ed01"},+ {file = "greenlet-3.1.1-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:411f015496fec93c1c8cd4e5238da364e1da7a124bcb293f085bf2860c32c6f6"},+ {file = "greenlet-3.1.1.tar.gz", hash = "sha256:4ce3ac6cdb6adf7946475d7ef31777c26d94bccc377e070a7986bd2d5c515467"},+]++[[package]]+name = "h11"+version = "0.14.0"+requires_python = ">=3.7"+summary = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"+groups = ["default"]+dependencies = [+ "typing-extensions; python_version < \"3.8\"",+]+files = [+ {file = "h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"},+ {file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"},+]++[[package]]+name = "html5lib"+version = "1.1"+requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"+summary = "HTML parser based on the WHATWG HTML specification"+groups = ["default"]+dependencies = [+ "six>=1.9",+ "webencodings",+]+files = [+ {file = "html5lib-1.1-py2.py3-none-any.whl", hash = "sha256:0d78f8fde1c230e99fe37986a60526d7049ed4bf8a9fadbad5f00e22e58e041d"},+ {file = "html5lib-1.1.tar.gz", hash = "sha256:b2e5b40261e20f354d198eae92afc10d750afb487ed5e50f9c4eaf07c184146f"},+]++[[package]]+name = "httpcore"+version = "1.0.7"+requires_python = ">=3.8"+summary = "A minimal low-level HTTP client."+groups = ["default"]+dependencies = [+ "certifi",+ "h11<0.15,>=0.13",+]+files = [+ {file = "httpcore-1.0.7-py3-none-any.whl", hash = "sha256:a3fff8f43dc260d5bd363d9f9cf1830fa3a458b332856f34282de498ed420edd"},+ {file = "httpcore-1.0.7.tar.gz", hash = "sha256:8551cb62a169ec7162ac7be8d4817d561f60e08eaa485234898414bb5a8a0b4c"},+]++[[package]]+name = "httpx"+version = "0.28.1"+requires_python = ">=3.8"+summary = "The next generation HTTP client."+groups = ["default"]+dependencies = [+ "anyio",+ "certifi",+ "httpcore==1.*",+ "idna",+]+files = [+ {file = "httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad"},+ {file = "httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc"},+]++[[package]]+name = "httpx-sse"+version = "0.4.0"+requires_python = ">=3.8"+summary = "Consume Server-Sent Event (SSE) messages with HTTPX."+groups = ["default"]+files = [+ {file = "httpx-sse-0.4.0.tar.gz", hash = "sha256:1e81a3a3070ce322add1d3529ed42eb5f70817f45ed6ec915ab753f961139721"},+ {file = "httpx_sse-0.4.0-py3-none-any.whl", hash = "sha256:f329af6eae57eaa2bdfd962b42524764af68075ea87370a2de920af5341e318f"},+]++[[package]]+name = "huggingface-hub"+version = "0.29.3"+requires_python = ">=3.8.0"+summary = "Client library to download and publish models, datasets and other repos on the huggingface.co hub"+groups = ["default"]+dependencies = [+ "filelock",+ "fsspec>=2023.5.0",+ "packaging>=20.9",+ "pyyaml>=5.1",+ "requests",+ "tqdm>=4.42.1",+ "typing-extensions>=3.7.4.3",+]+files = [+ {file = "huggingface_hub-0.29.3-py3-none-any.whl", hash = "sha256:0b25710932ac649c08cdbefa6c6ccb8e88eef82927cacdb048efb726429453aa"},+ {file = "huggingface_hub-0.29.3.tar.gz", hash = "sha256:64519a25716e0ba382ba2d3fb3ca082e7c7eb4a2fc634d200e8380006e0760e5"},+]++[[package]]+name = "identify"+version = "2.6.9"+requires_python = ">=3.9"+summary = "File identification library for Python"+groups = ["dev"]+files = [+ {file = "identify-2.6.9-py2.py3-none-any.whl", hash = "sha256:c98b4322da415a8e5a70ff6e51fbc2d2932c015532d77e9f8537b4ba7813b150"},+ {file = "identify-2.6.9.tar.gz", hash = "sha256:d40dfe3142a1421d8518e3d3985ef5ac42890683e32306ad614a29490abeb6bf"},+]++[[package]]+name = "idna"+version = "3.10"+requires_python = ">=3.6"+summary = "Internationalized Domain Names in Applications (IDNA)"+groups = ["default"]+files = [+ {file = "idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"},+ {file = "idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"},+]++[[package]]+name = "importlib-resources"+version = "6.5.2"+requires_python = ">=3.9"+summary = "Read resources from Python packages"+groups = ["default"]+dependencies = [+ "zipp>=3.1.0; python_version < \"3.10\"",+]+files = [+ {file = "importlib_resources-6.5.2-py3-none-any.whl", hash = "sha256:789cfdc3ed28c78b67a06acb8126751ced69a3d5f79c095a98298cd8a760ccec"},+ {file = "importlib_resources-6.5.2.tar.gz", hash = "sha256:185f87adef5bcc288449d98fb4fba07cea78bc036455dd44c5fc4a2fe78fed2c"},+]++[[package]]+name = "isort"+version = "6.0.1"+requires_python = ">=3.9.0"+summary = "A Python utility / library to sort Python imports."+groups = ["dev"]+files = [+ {file = "isort-6.0.1-py3-none-any.whl", hash = "sha256:2dc5d7f65c9678d94c88dfc29161a320eec67328bc97aad576874cb4be1e9615"},+ {file = "isort-6.0.1.tar.gz", hash = "sha256:1cb5df28dfbc742e490c5e41bad6da41b805b0a8be7bc93cd0fb2a8a890ac450"},+]++[[package]]+name = "itsdangerous"+version = "2.2.0"+requires_python = ">=3.8"+summary = "Safely pass data to untrusted environments and back."+groups = ["default"]+files = [+ {file = "itsdangerous-2.2.0-py3-none-any.whl", hash = "sha256:c6242fc49e35958c8b15141343aa660db5fc54d4f13a1db01a3f5891b98700ef"},+ {file = "itsdangerous-2.2.0.tar.gz", hash = "sha256:e0050c0b7da1eea53ffaf149c0cfbb5c6e2e2b69c4bef22c81fa6eb73e5f6173"},+]++[[package]]+name = "jinja2"+version = "3.1.6"+requires_python = ">=3.7"+summary = "A very fast and expressive template engine."+groups = ["default"]+dependencies = [+ "MarkupSafe>=2.0",+]+files = [+ {file = "jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67"},+ {file = "jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d"},+]++[[package]]+name = "jiter"+version = "0.9.0"+requires_python = ">=3.8"+summary = "Fast iterable JSON parser."+groups = ["default"]+files = [+ {file = "jiter-0.9.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:816ec9b60fdfd1fec87da1d7ed46c66c44ffec37ab2ef7de5b147b2fce3fd5ad"},+ {file = "jiter-0.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9b1d3086f8a3ee0194ecf2008cf81286a5c3e540d977fa038ff23576c023c0ea"},+ {file = "jiter-0.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1339f839b91ae30b37c409bf16ccd3dc453e8b8c3ed4bd1d6a567193651a4a51"},+ {file = "jiter-0.9.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ffba79584b3b670fefae66ceb3a28822365d25b7bf811e030609a3d5b876f538"},+ {file = "jiter-0.9.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5cfc7d0a8e899089d11f065e289cb5b2daf3d82fbe028f49b20d7b809193958d"},+ {file = "jiter-0.9.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e00a1a2bbfaaf237e13c3d1592356eab3e9015d7efd59359ac8b51eb56390a12"},+ {file = "jiter-0.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d1d9870561eb26b11448854dce0ff27a9a27cb616b632468cafc938de25e9e51"},+ {file = "jiter-0.9.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:9872aeff3f21e437651df378cb75aeb7043e5297261222b6441a620218b58708"},+ {file = "jiter-0.9.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:1fd19112d1049bdd47f17bfbb44a2c0001061312dcf0e72765bfa8abd4aa30e5"},+ {file = "jiter-0.9.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:6ef5da104664e526836070e4a23b5f68dec1cc673b60bf1edb1bfbe8a55d0678"},+ {file = "jiter-0.9.0-cp310-cp310-win32.whl", hash = "sha256:cb12e6d65ebbefe5518de819f3eda53b73187b7089040b2d17f5b39001ff31c4"},+ {file = "jiter-0.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:c43ca669493626d8672be3b645dbb406ef25af3f4b6384cfd306da7eb2e70322"},+ {file = "jiter-0.9.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:6c4d99c71508912a7e556d631768dcdef43648a93660670986916b297f1c54af"},+ {file = "jiter-0.9.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8f60fb8ce7df529812bf6c625635a19d27f30806885139e367af93f6e734ef58"},+ {file = "jiter-0.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:51c4e1a4f8ea84d98b7b98912aa4290ac3d1eabfde8e3c34541fae30e9d1f08b"},+ {file = "jiter-0.9.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5f4c677c424dc76684fea3e7285a7a2a7493424bea89ac441045e6a1fb1d7b3b"},+ {file = "jiter-0.9.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2221176dfec87f3470b21e6abca056e6b04ce9bff72315cb0b243ca9e835a4b5"},+ {file = "jiter-0.9.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3c7adb66f899ffa25e3c92bfcb593391ee1947dbdd6a9a970e0d7e713237d572"},+ {file = "jiter-0.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c98d27330fdfb77913c1097a7aab07f38ff2259048949f499c9901700789ac15"},+ {file = "jiter-0.9.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:eda3f8cc74df66892b1d06b5d41a71670c22d95a1ca2cbab73654745ce9d0419"},+ {file = "jiter-0.9.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:dd5ab5ddc11418dce28343123644a100f487eaccf1de27a459ab36d6cca31043"},+ {file = "jiter-0.9.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:42f8a68a69f047b310319ef8e2f52fdb2e7976fb3313ef27df495cf77bcad965"},+ {file = "jiter-0.9.0-cp311-cp311-win32.whl", hash = "sha256:a25519efb78a42254d59326ee417d6f5161b06f5da827d94cf521fed961b1ff2"},+ {file = "jiter-0.9.0-cp311-cp311-win_amd64.whl", hash = "sha256:923b54afdd697dfd00d368b7ccad008cccfeb1efb4e621f32860c75e9f25edbd"},+ {file = "jiter-0.9.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:7b46249cfd6c48da28f89eb0be3f52d6fdb40ab88e2c66804f546674e539ec11"},+ {file = "jiter-0.9.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:609cf3c78852f1189894383cf0b0b977665f54cb38788e3e6b941fa6d982c00e"},+ {file = "jiter-0.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d726a3890a54561e55a9c5faea1f7655eda7f105bd165067575ace6e65f80bb2"},+ {file = "jiter-0.9.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2e89dc075c1fef8fa9be219e249f14040270dbc507df4215c324a1839522ea75"},+ {file = "jiter-0.9.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:04e8ffa3c353b1bc4134f96f167a2082494351e42888dfcf06e944f2729cbe1d"},+ {file = "jiter-0.9.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:203f28a72a05ae0e129b3ed1f75f56bc419d5f91dfacd057519a8bd137b00c42"},+ {file = "jiter-0.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fca1a02ad60ec30bb230f65bc01f611c8608b02d269f998bc29cca8619a919dc"},+ {file = "jiter-0.9.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:237e5cee4d5d2659aaf91bbf8ec45052cc217d9446070699441a91b386ae27dc"},+ {file = "jiter-0.9.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:528b6b71745e7326eed73c53d4aa57e2a522242320b6f7d65b9c5af83cf49b6e"},+ {file = "jiter-0.9.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:9f48e86b57bc711eb5acdfd12b6cb580a59cc9a993f6e7dcb6d8b50522dcd50d"},+ {file = "jiter-0.9.0-cp312-cp312-win32.whl", hash = "sha256:699edfde481e191d81f9cf6d2211debbfe4bd92f06410e7637dffb8dd5dfde06"},+ {file = "jiter-0.9.0-cp312-cp312-win_amd64.whl", hash = "sha256:099500d07b43f61d8bd780466d429c45a7b25411b334c60ca875fa775f68ccb0"},+ {file = "jiter-0.9.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:2764891d3f3e8b18dce2cff24949153ee30c9239da7c00f032511091ba688ff7"},+ {file = "jiter-0.9.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:387b22fbfd7a62418d5212b4638026d01723761c75c1c8232a8b8c37c2f1003b"},+ {file = "jiter-0.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:40d8da8629ccae3606c61d9184970423655fb4e33d03330bcdfe52d234d32f69"},+ {file = "jiter-0.9.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a1be73d8982bdc278b7b9377426a4b44ceb5c7952073dd7488e4ae96b88e1103"},+ {file = "jiter-0.9.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2228eaaaa111ec54b9e89f7481bffb3972e9059301a878d085b2b449fbbde635"},+ {file = "jiter-0.9.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:11509bfecbc319459647d4ac3fd391d26fdf530dad00c13c4dadabf5b81f01a4"},+ {file = "jiter-0.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3f22238da568be8bbd8e0650e12feeb2cfea15eda4f9fc271d3b362a4fa0604d"},+ {file = "jiter-0.9.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:17f5d55eb856597607562257c8e36c42bc87f16bef52ef7129b7da11afc779f3"},+ {file = "jiter-0.9.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:6a99bed9fbb02f5bed416d137944419a69aa4c423e44189bc49718859ea83bc5"},+ {file = "jiter-0.9.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:e057adb0cd1bd39606100be0eafe742de2de88c79df632955b9ab53a086b3c8d"},+ {file = "jiter-0.9.0-cp313-cp313-win32.whl", hash = "sha256:f7e6850991f3940f62d387ccfa54d1a92bd4bb9f89690b53aea36b4364bcab53"},+ {file = "jiter-0.9.0-cp313-cp313-win_amd64.whl", hash = "sha256:c8ae3bf27cd1ac5e6e8b7a27487bf3ab5f82318211ec2e1346a5b058756361f7"},+ {file = "jiter-0.9.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:f0b2827fb88dda2cbecbbc3e596ef08d69bda06c6f57930aec8e79505dc17001"},+ {file = "jiter-0.9.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:062b756ceb1d40b0b28f326cba26cfd575a4918415b036464a52f08632731e5a"},+ {file = "jiter-0.9.0-cp313-cp313t-win_amd64.whl", hash = "sha256:6f7838bc467ab7e8ef9f387bd6de195c43bad82a569c1699cb822f6609dd4cdf"},+ {file = "jiter-0.9.0.tar.gz", hash = "sha256:aadba0964deb424daa24492abc3d229c60c4a31bfee205aedbf1acc7639d7893"},+]++[[package]]+name = "joblib"+version = "1.4.2"+requires_python = ">=3.8"+summary = "Lightweight pipelining with Python functions"+groups = ["default"]+files = [+ {file = "joblib-1.4.2-py3-none-any.whl", hash = "sha256:06d478d5674cbc267e7496a410ee875abd68e4340feff4490bcb7afb88060ae6"},+ {file = "joblib-1.4.2.tar.gz", hash = "sha256:2382c5816b2636fbd20a09e0f4e9dad4736765fdfb7dca582943b9c1366b3f0e"},+]++[[package]]+name = "jsonpatch"+version = "1.33"+requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*"+summary = "Apply JSON-Patches (RFC 6902) "+groups = ["default"]+dependencies = [+ "jsonpointer>=1.9",+]+files = [+ {file = "jsonpatch-1.33-py2.py3-none-any.whl", hash = "sha256:0ae28c0cd062bbd8b8ecc26d7d164fbbea9652a1a3693f3b956c1eae5145dade"},+ {file = "jsonpatch-1.33.tar.gz", hash = "sha256:9fcd4009c41e6d12348b4a0ff2563ba56a2923a7dfee731d004e212e1ee5030c"},+]++[[package]]+name = "jsonpointer"+version = "3.0.0"+requires_python = ">=3.7"+summary = "Identify specific nodes in a JSON document (RFC 6901) "+groups = ["default"]+files = [+ {file = "jsonpointer-3.0.0-py2.py3-none-any.whl", hash = "sha256:13e088adc14fca8b6aa8177c044e12701e6ad4b28ff10e65f2267a90109c9942"},+ {file = "jsonpointer-3.0.0.tar.gz", hash = "sha256:2b2d729f2091522d61c3b31f82e11870f60b68f43fbc705cb76bf4b832af59ef"},+]++[[package]]+name = "justext"+version = "3.0.2"+summary = "Heuristic based boilerplate removal tool"+groups = ["default"]+dependencies = [+ "backports-functools-lru-cache; python_version < \"3.2\"",+ "lxml[html_clean]>=4.4.2",+]+files = [+ {file = "justext-3.0.2-py2.py3-none-any.whl", hash = "sha256:62b1c562b15c3c6265e121cc070874243a443bfd53060e869393f09d6b6cc9a7"},+ {file = "justext-3.0.2.tar.gz", hash = "sha256:13496a450c44c4cd5b5a75a5efcd9996066d2a189794ea99a49949685a0beb05"},+]++[[package]]+name = "langchain"+version = "0.3.21"+requires_python = "<4.0,>=3.9"+summary = "Building applications with LLMs through composability"+groups = ["default"]+dependencies = [+ "PyYAML>=5.3",+ "SQLAlchemy<3,>=1.4",+ "async-timeout<5.0.0,>=4.0.0; python_version < \"3.11\"",+ "langchain-core<1.0.0,>=0.3.45",+ "langchain-text-splitters<1.0.0,>=0.3.7",+ "langsmith<0.4,>=0.1.17",+ "pydantic<3.0.0,>=2.7.4",+ "requests<3,>=2",+]+files = [+ {file = "langchain-0.3.21-py3-none-any.whl", hash = "sha256:c8bd2372440cc5d48cb50b2d532c2e24036124f1c467002ceb15bc7b86c92579"},+ {file = "langchain-0.3.21.tar.gz", hash = "sha256:a10c81f8c450158af90bf37190298d996208cfd15dd3accc1c585f068473d619"},+]++[[package]]+name = "langchain-anthropic"+version = "0.3.10"+requires_python = "<4.0,>=3.9"+summary = "An integration package connecting AnthropicMessages and LangChain"+groups = ["default"]+dependencies = [+ "anthropic<1,>=0.49.0",+ "langchain-core<1.0.0,>=0.3.45",+ "pydantic<3.0.0,>=2.7.4",+]+files = [+ {file = "langchain_anthropic-0.3.10-py3-none-any.whl", hash = "sha256:f4aa8ec03b1f5bcfbb73d2db516bddf009bc457e524f1ee8d651c1fe7338603f"},+ {file = "langchain_anthropic-0.3.10.tar.gz", hash = "sha256:b4364434393476bf076c8326a51261a55d4e4cfefda01b8adf53533e8ebd8ec5"},+]++[[package]]+name = "langchain-community"+version = "0.3.20"+requires_python = "<4.0,>=3.9"+summary = "Community contributed LangChain integrations."+groups = ["default"]+dependencies = [+ "PyYAML>=5.3",+ "SQLAlchemy<3,>=1.4",+ "aiohttp<4.0.0,>=3.8.3",+ "dataclasses-json<0.7,>=0.5.7",+ "httpx-sse<1.0.0,>=0.4.0",+ "langchain-core<1.0.0,>=0.3.45",+ "langchain<1.0.0,>=0.3.21",+ "langsmith<0.4,>=0.1.125",+ "numpy<3,>=1.26.2",+ "pydantic-settings<3.0.0,>=2.4.0",+ "requests<3,>=2",+ "tenacity!=8.4.0,<10,>=8.1.0",+]+files = [+ {file = "langchain_community-0.3.20-py3-none-any.whl", hash = "sha256:ea3dbf37fbc21020eca8850627546f3c95a8770afc06c4142b40b9ba86b970f7"},+ {file = "langchain_community-0.3.20.tar.gz", hash = "sha256:bd83b4f2f818338423439aff3b5be362e1d686342ffada0478cd34c6f5ef5969"},+]++[[package]]+name = "langchain-core"+version = "0.3.49"+requires_python = "<4.0,>=3.9"+summary = "Building applications with LLMs through composability"+groups = ["default"]+dependencies = [+ "PyYAML>=5.3",+ "jsonpatch<2.0,>=1.33",+ "langsmith<0.4,>=0.1.125",+ "packaging<25,>=23.2",+ "pydantic<3.0.0,>=2.5.2; python_full_version < \"3.12.4\"",+ "pydantic<3.0.0,>=2.7.4; python_full_version >= \"3.12.4\"",+ "tenacity!=8.4.0,<10.0.0,>=8.1.0",+ "typing-extensions>=4.7",+]+files = [+ {file = "langchain_core-0.3.49-py3-none-any.whl", hash = "sha256:893ee42c9af13bf2a2d8c2ec15ba00a5c73cccde21a2bd005234ee0e78a2bdf8"},+ {file = "langchain_core-0.3.49.tar.gz", hash = "sha256:d9dbff9bac0021463a986355c13864d6a68c41f8559dbbd399a68e1ebd9b04b9"},+]++[[package]]+name = "langchain-ollama"+version = "0.3.0"+requires_python = "<4.0,>=3.9"+summary = "An integration package connecting Ollama and LangChain"+groups = ["default"]+dependencies = [+ "langchain-core<1.0.0,>=0.3.47",+ "ollama<1,>=0.4.4",+]+files = [+ {file = "langchain_ollama-0.3.0-py3-none-any.whl", hash = "sha256:33716a912419d00a17da446f1b6ec8ec45c7b9376c6a1c0b688cc0cecd4b9c39"},+ {file = "langchain_ollama-0.3.0.tar.gz", hash = "sha256:4989f79d4b2d0d51f3a95e53b4c368c95c6bb64922a9ea40a7a376b43187803b"},+]++[[package]]+name = "langchain-openai"+version = "0.3.11"+requires_python = "<4.0,>=3.9"+summary = "An integration package connecting OpenAI and LangChain"+groups = ["default"]+dependencies = [+ "langchain-core<1.0.0,>=0.3.49",+ "openai<2.0.0,>=1.68.2",+ "tiktoken<1,>=0.7",+]+files = [+ {file = "langchain_openai-0.3.11-py3-none-any.whl", hash = "sha256:95cf602322d43d13cb0fd05cba9bc4cffd7024b10b985d38f599fcc502d2d4d0"},+ {file = "langchain_openai-0.3.11.tar.gz", hash = "sha256:4de846b2770c2b15bee4ec8034af064bfecb01fa86d4c5ff3f427ee337f0e98c"},+]++[[package]]+name = "langchain-text-splitters"+version = "0.3.7"+requires_python = "<4.0,>=3.9"+summary = "LangChain text splitting utilities"+groups = ["default"]+dependencies = [+ "langchain-core<1.0.0,>=0.3.45",+]+files = [+ {file = "langchain_text_splitters-0.3.7-py3-none-any.whl", hash = "sha256:31ba826013e3f563359d7c7f1e99b1cdb94897f665675ee505718c116e7e20ad"},+ {file = "langchain_text_splitters-0.3.7.tar.gz", hash = "sha256:7dbf0fb98e10bb91792a1d33f540e2287f9cc1dc30ade45b7aedd2d5cd3dc70b"},+]++[[package]]+name = "langdetect"+version = "1.0.9"+summary = "Language detection library ported from Google's language-detection."+groups = ["default"]+dependencies = [+ "six",+]+files = [+ {file = "langdetect-1.0.9.tar.gz", hash = "sha256:cbc1fef89f8d062739774bd51eda3da3274006b3661d199c2655f6b3f6d605a0"},+]++[[package]]+name = "langsmith"+version = "0.3.19"+requires_python = "<4.0,>=3.9"+summary = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform."+groups = ["default"]+dependencies = [+ "httpx<1,>=0.23.0",+ "orjson<4.0.0,>=3.9.14; platform_python_implementation != \"PyPy\"",+ "packaging>=23.2",+ "pydantic<3,>=1; python_full_version < \"3.12.4\"",+ "pydantic<3.0.0,>=2.7.4; python_full_version >= \"3.12.4\"",+ "requests-toolbelt<2.0.0,>=1.0.0",+ "requests<3,>=2",+ "zstandard<0.24.0,>=0.23.0",+]+files = [+ {file = "langsmith-0.3.19-py3-none-any.whl", hash = "sha256:a306962ab53562c4094192f1da964309b48aac7898f82d1d421c3fb9c3f29367"},+ {file = "langsmith-0.3.19.tar.gz", hash = "sha256:0133676689b5e1b879ed05a18e18570daf0dd05e0cefc397342656a58ebecbc5"},+]++[[package]]+name = "lxml"+version = "5.3.1"+requires_python = ">=3.6"+summary = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API."+groups = ["default"]+files = [+ {file = "lxml-5.3.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a4058f16cee694577f7e4dd410263cd0ef75644b43802a689c2b3c2a7e69453b"},+ {file = "lxml-5.3.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:364de8f57d6eda0c16dcfb999af902da31396949efa0e583e12675d09709881b"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:528f3a0498a8edc69af0559bdcf8a9f5a8bf7c00051a6ef3141fdcf27017bbf5"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:db4743e30d6f5f92b6d2b7c86b3ad250e0bad8dee4b7ad8a0c44bfb276af89a3"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:17b5d7f8acf809465086d498d62a981fa6a56d2718135bb0e4aa48c502055f5c"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:928e75a7200a4c09e6efc7482a1337919cc61fe1ba289f297827a5b76d8969c2"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5a997b784a639e05b9d4053ef3b20c7e447ea80814a762f25b8ed5a89d261eac"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:7b82e67c5feb682dbb559c3e6b78355f234943053af61606af126df2183b9ef9"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_28_ppc64le.whl", hash = "sha256:f1de541a9893cf8a1b1db9bf0bf670a2decab42e3e82233d36a74eda7822b4c9"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_28_s390x.whl", hash = "sha256:de1fc314c3ad6bc2f6bd5b5a5b9357b8c6896333d27fdbb7049aea8bd5af2d79"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:7c0536bd9178f754b277a3e53f90f9c9454a3bd108b1531ffff720e082d824f2"},+ {file = "lxml-5.3.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:68018c4c67d7e89951a91fbd371e2e34cd8cfc71f0bb43b5332db38497025d51"},+ {file = "lxml-5.3.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:aa826340a609d0c954ba52fd831f0fba2a4165659ab0ee1a15e4aac21f302406"},+ {file = "lxml-5.3.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:796520afa499732191e39fc95b56a3b07f95256f2d22b1c26e217fb69a9db5b5"},+ {file = "lxml-5.3.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3effe081b3135237da6e4c4530ff2a868d3f80be0bda027e118a5971285d42d0"},+ {file = "lxml-5.3.1-cp310-cp310-win32.whl", hash = "sha256:a22f66270bd6d0804b02cd49dae2b33d4341015545d17f8426f2c4e22f557a23"},+ {file = "lxml-5.3.1-cp310-cp310-win_amd64.whl", hash = "sha256:0bcfadea3cdc68e678d2b20cb16a16716887dd00a881e16f7d806c2138b8ff0c"},+ {file = "lxml-5.3.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:e220f7b3e8656ab063d2eb0cd536fafef396829cafe04cb314e734f87649058f"},+ {file = "lxml-5.3.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0f2cfae0688fd01f7056a17367e3b84f37c545fb447d7282cf2c242b16262607"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:67d2f8ad9dcc3a9e826bdc7802ed541a44e124c29b7d95a679eeb58c1c14ade8"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:db0c742aad702fd5d0c6611a73f9602f20aec2007c102630c06d7633d9c8f09a"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:198bb4b4dd888e8390afa4f170d4fa28467a7eaf857f1952589f16cfbb67af27"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d2a3e412ce1849be34b45922bfef03df32d1410a06d1cdeb793a343c2f1fd666"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2b8969dbc8d09d9cd2ae06362c3bad27d03f433252601ef658a49bd9f2b22d79"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:5be8f5e4044146a69c96077c7e08f0709c13a314aa5315981185c1f00235fe65"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_28_ppc64le.whl", hash = "sha256:133f3493253a00db2c870d3740bc458ebb7d937bd0a6a4f9328373e0db305709"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_28_s390x.whl", hash = "sha256:52d82b0d436edd6a1d22d94a344b9a58abd6c68c357ed44f22d4ba8179b37629"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:1b6f92e35e2658a5ed51c6634ceb5ddae32053182851d8cad2a5bc102a359b33"},+ {file = "lxml-5.3.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:203b1d3eaebd34277be06a3eb880050f18a4e4d60861efba4fb946e31071a295"},+ {file = "lxml-5.3.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:155e1a5693cf4b55af652f5c0f78ef36596c7f680ff3ec6eb4d7d85367259b2c"},+ {file = "lxml-5.3.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:22ec2b3c191f43ed21f9545e9df94c37c6b49a5af0a874008ddc9132d49a2d9c"},+ {file = "lxml-5.3.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:7eda194dd46e40ec745bf76795a7cccb02a6a41f445ad49d3cf66518b0bd9cff"},+ {file = "lxml-5.3.1-cp311-cp311-win32.whl", hash = "sha256:fb7c61d4be18e930f75948705e9718618862e6fc2ed0d7159b2262be73f167a2"},+ {file = "lxml-5.3.1-cp311-cp311-win_amd64.whl", hash = "sha256:c809eef167bf4a57af4b03007004896f5c60bd38dc3852fcd97a26eae3d4c9e6"},+ {file = "lxml-5.3.1-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:e69add9b6b7b08c60d7ff0152c7c9a6c45b4a71a919be5abde6f98f1ea16421c"},+ {file = "lxml-5.3.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:4e52e1b148867b01c05e21837586ee307a01e793b94072d7c7b91d2c2da02ffe"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a4b382e0e636ed54cd278791d93fe2c4f370772743f02bcbe431a160089025c9"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c2e49dc23a10a1296b04ca9db200c44d3eb32c8d8ec532e8c1fd24792276522a"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4399b4226c4785575fb20998dc571bc48125dc92c367ce2602d0d70e0c455eb0"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5412500e0dc5481b1ee9cf6b38bb3b473f6e411eb62b83dc9b62699c3b7b79f7"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1c93ed3c998ea8472be98fb55aed65b5198740bfceaec07b2eba551e55b7b9ae"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:63d57fc94eb0bbb4735e45517afc21ef262991d8758a8f2f05dd6e4174944519"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_28_ppc64le.whl", hash = "sha256:b450d7cabcd49aa7ab46a3c6aa3ac7e1593600a1a0605ba536ec0f1b99a04322"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_28_s390x.whl", hash = "sha256:4df0ec814b50275ad6a99bc82a38b59f90e10e47714ac9871e1b223895825468"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:d184f85ad2bb1f261eac55cddfcf62a70dee89982c978e92b9a74a1bfef2e367"},+ {file = "lxml-5.3.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b725e70d15906d24615201e650d5b0388b08a5187a55f119f25874d0103f90dd"},+ {file = "lxml-5.3.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:a31fa7536ec1fb7155a0cd3a4e3d956c835ad0a43e3610ca32384d01f079ea1c"},+ {file = "lxml-5.3.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3c3c8b55c7fc7b7e8877b9366568cc73d68b82da7fe33d8b98527b73857a225f"},+ {file = "lxml-5.3.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d61ec60945d694df806a9aec88e8f29a27293c6e424f8ff91c80416e3c617645"},+ {file = "lxml-5.3.1-cp312-cp312-win32.whl", hash = "sha256:f4eac0584cdc3285ef2e74eee1513a6001681fd9753b259e8159421ed28a72e5"},+ {file = "lxml-5.3.1-cp312-cp312-win_amd64.whl", hash = "sha256:29bfc8d3d88e56ea0a27e7c4897b642706840247f59f4377d81be8f32aa0cfbf"},+ {file = "lxml-5.3.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:c093c7088b40d8266f57ed71d93112bd64c6724d31f0794c1e52cc4857c28e0e"},+ {file = "lxml-5.3.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b0884e3f22d87c30694e625b1e62e6f30d39782c806287450d9dc2fdf07692fd"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1637fa31ec682cd5760092adfabe86d9b718a75d43e65e211d5931809bc111e7"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a364e8e944d92dcbf33b6b494d4e0fb3499dcc3bd9485beb701aa4b4201fa414"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:779e851fd0e19795ccc8a9bb4d705d6baa0ef475329fe44a13cf1e962f18ff1e"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c4393600915c308e546dc7003d74371744234e8444a28622d76fe19b98fa59d1"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:673b9d8e780f455091200bba8534d5f4f465944cbdd61f31dc832d70e29064a5"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:2e4a570f6a99e96c457f7bec5ad459c9c420ee80b99eb04cbfcfe3fc18ec6423"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_28_ppc64le.whl", hash = "sha256:71f31eda4e370f46af42fc9f264fafa1b09f46ba07bdbee98f25689a04b81c20"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_28_s390x.whl", hash = "sha256:42978a68d3825eaac55399eb37a4d52012a205c0c6262199b8b44fcc6fd686e8"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:8b1942b3e4ed9ed551ed3083a2e6e0772de1e5e3aca872d955e2e86385fb7ff9"},+ {file = "lxml-5.3.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:85c4f11be9cf08917ac2a5a8b6e1ef63b2f8e3799cec194417e76826e5f1de9c"},+ {file = "lxml-5.3.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:231cf4d140b22a923b1d0a0a4e0b4f972e5893efcdec188934cc65888fd0227b"},+ {file = "lxml-5.3.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:5865b270b420eda7b68928d70bb517ccbe045e53b1a428129bb44372bf3d7dd5"},+ {file = "lxml-5.3.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:dbf7bebc2275016cddf3c997bf8a0f7044160714c64a9b83975670a04e6d2252"},+ {file = "lxml-5.3.1-cp313-cp313-win32.whl", hash = "sha256:d0751528b97d2b19a388b302be2a0ee05817097bab46ff0ed76feeec24951f78"},+ {file = "lxml-5.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:91fb6a43d72b4f8863d21f347a9163eecbf36e76e2f51068d59cd004c506f332"},+ {file = "lxml-5.3.1-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:afa578b6524ff85fb365f454cf61683771d0170470c48ad9d170c48075f86725"},+ {file = "lxml-5.3.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:67f5e80adf0aafc7b5454f2c1cb0cde920c9b1f2cbd0485f07cc1d0497c35c5d"},+ {file = "lxml-5.3.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2dd0b80ac2d8f13ffc906123a6f20b459cb50a99222d0da492360512f3e50f84"},+ {file = "lxml-5.3.1-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:422c179022ecdedbe58b0e242607198580804253da220e9454ffe848daa1cfd2"},+ {file = "lxml-5.3.1-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:524ccfded8989a6595dbdda80d779fb977dbc9a7bc458864fc9a0c2fc15dc877"},+ {file = "lxml-5.3.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:48fd46bf7155def2e15287c6f2b133a2f78e2d22cdf55647269977b873c65499"},+ {file = "lxml-5.3.1.tar.gz", hash = "sha256:106b7b5d2977b339f1e97efe2778e2ab20e99994cbb0ec5e55771ed0795920c8"},+]++[[package]]+name = "lxml-html-clean"+version = "0.4.1"+summary = "HTML cleaner from lxml project"+groups = ["default"]+dependencies = [+ "lxml",+]+files = [+ {file = "lxml_html_clean-0.4.1-py3-none-any.whl", hash = "sha256:b704f2757e61d793b1c08bf5ad69e4c0b68d6696f4c3c1429982caf90050bcaf"},+ {file = "lxml_html_clean-0.4.1.tar.gz", hash = "sha256:40c838bbcf1fc72ba4ce811fbb3135913017b27820d7c16e8bc412ae1d8bc00b"},+]++[[package]]+name = "lxml"+version = "5.3.1"+extras = ["html_clean"]+requires_python = ">=3.6"+summary = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API."+groups = ["default"]+dependencies = [+ "lxml-html-clean",+ "lxml==5.3.1",+]+files = [+ {file = "lxml-5.3.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a4058f16cee694577f7e4dd410263cd0ef75644b43802a689c2b3c2a7e69453b"},+ {file = "lxml-5.3.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:364de8f57d6eda0c16dcfb999af902da31396949efa0e583e12675d09709881b"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:528f3a0498a8edc69af0559bdcf8a9f5a8bf7c00051a6ef3141fdcf27017bbf5"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:db4743e30d6f5f92b6d2b7c86b3ad250e0bad8dee4b7ad8a0c44bfb276af89a3"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:17b5d7f8acf809465086d498d62a981fa6a56d2718135bb0e4aa48c502055f5c"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:928e75a7200a4c09e6efc7482a1337919cc61fe1ba289f297827a5b76d8969c2"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5a997b784a639e05b9d4053ef3b20c7e447ea80814a762f25b8ed5a89d261eac"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:7b82e67c5feb682dbb559c3e6b78355f234943053af61606af126df2183b9ef9"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_28_ppc64le.whl", hash = "sha256:f1de541a9893cf8a1b1db9bf0bf670a2decab42e3e82233d36a74eda7822b4c9"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_28_s390x.whl", hash = "sha256:de1fc314c3ad6bc2f6bd5b5a5b9357b8c6896333d27fdbb7049aea8bd5af2d79"},+ {file = "lxml-5.3.1-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:7c0536bd9178f754b277a3e53f90f9c9454a3bd108b1531ffff720e082d824f2"},+ {file = "lxml-5.3.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:68018c4c67d7e89951a91fbd371e2e34cd8cfc71f0bb43b5332db38497025d51"},+ {file = "lxml-5.3.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:aa826340a609d0c954ba52fd831f0fba2a4165659ab0ee1a15e4aac21f302406"},+ {file = "lxml-5.3.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:796520afa499732191e39fc95b56a3b07f95256f2d22b1c26e217fb69a9db5b5"},+ {file = "lxml-5.3.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3effe081b3135237da6e4c4530ff2a868d3f80be0bda027e118a5971285d42d0"},+ {file = "lxml-5.3.1-cp310-cp310-win32.whl", hash = "sha256:a22f66270bd6d0804b02cd49dae2b33d4341015545d17f8426f2c4e22f557a23"},+ {file = "lxml-5.3.1-cp310-cp310-win_amd64.whl", hash = "sha256:0bcfadea3cdc68e678d2b20cb16a16716887dd00a881e16f7d806c2138b8ff0c"},+ {file = "lxml-5.3.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:e220f7b3e8656ab063d2eb0cd536fafef396829cafe04cb314e734f87649058f"},+ {file = "lxml-5.3.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0f2cfae0688fd01f7056a17367e3b84f37c545fb447d7282cf2c242b16262607"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:67d2f8ad9dcc3a9e826bdc7802ed541a44e124c29b7d95a679eeb58c1c14ade8"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:db0c742aad702fd5d0c6611a73f9602f20aec2007c102630c06d7633d9c8f09a"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:198bb4b4dd888e8390afa4f170d4fa28467a7eaf857f1952589f16cfbb67af27"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d2a3e412ce1849be34b45922bfef03df32d1410a06d1cdeb793a343c2f1fd666"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2b8969dbc8d09d9cd2ae06362c3bad27d03f433252601ef658a49bd9f2b22d79"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:5be8f5e4044146a69c96077c7e08f0709c13a314aa5315981185c1f00235fe65"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_28_ppc64le.whl", hash = "sha256:133f3493253a00db2c870d3740bc458ebb7d937bd0a6a4f9328373e0db305709"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_28_s390x.whl", hash = "sha256:52d82b0d436edd6a1d22d94a344b9a58abd6c68c357ed44f22d4ba8179b37629"},+ {file = "lxml-5.3.1-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:1b6f92e35e2658a5ed51c6634ceb5ddae32053182851d8cad2a5bc102a359b33"},+ {file = "lxml-5.3.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:203b1d3eaebd34277be06a3eb880050f18a4e4d60861efba4fb946e31071a295"},+ {file = "lxml-5.3.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:155e1a5693cf4b55af652f5c0f78ef36596c7f680ff3ec6eb4d7d85367259b2c"},+ {file = "lxml-5.3.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:22ec2b3c191f43ed21f9545e9df94c37c6b49a5af0a874008ddc9132d49a2d9c"},+ {file = "lxml-5.3.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:7eda194dd46e40ec745bf76795a7cccb02a6a41f445ad49d3cf66518b0bd9cff"},+ {file = "lxml-5.3.1-cp311-cp311-win32.whl", hash = "sha256:fb7c61d4be18e930f75948705e9718618862e6fc2ed0d7159b2262be73f167a2"},+ {file = "lxml-5.3.1-cp311-cp311-win_amd64.whl", hash = "sha256:c809eef167bf4a57af4b03007004896f5c60bd38dc3852fcd97a26eae3d4c9e6"},+ {file = "lxml-5.3.1-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:e69add9b6b7b08c60d7ff0152c7c9a6c45b4a71a919be5abde6f98f1ea16421c"},+ {file = "lxml-5.3.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:4e52e1b148867b01c05e21837586ee307a01e793b94072d7c7b91d2c2da02ffe"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a4b382e0e636ed54cd278791d93fe2c4f370772743f02bcbe431a160089025c9"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c2e49dc23a10a1296b04ca9db200c44d3eb32c8d8ec532e8c1fd24792276522a"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4399b4226c4785575fb20998dc571bc48125dc92c367ce2602d0d70e0c455eb0"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5412500e0dc5481b1ee9cf6b38bb3b473f6e411eb62b83dc9b62699c3b7b79f7"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1c93ed3c998ea8472be98fb55aed65b5198740bfceaec07b2eba551e55b7b9ae"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:63d57fc94eb0bbb4735e45517afc21ef262991d8758a8f2f05dd6e4174944519"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_28_ppc64le.whl", hash = "sha256:b450d7cabcd49aa7ab46a3c6aa3ac7e1593600a1a0605ba536ec0f1b99a04322"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_28_s390x.whl", hash = "sha256:4df0ec814b50275ad6a99bc82a38b59f90e10e47714ac9871e1b223895825468"},+ {file = "lxml-5.3.1-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:d184f85ad2bb1f261eac55cddfcf62a70dee89982c978e92b9a74a1bfef2e367"},+ {file = "lxml-5.3.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b725e70d15906d24615201e650d5b0388b08a5187a55f119f25874d0103f90dd"},+ {file = "lxml-5.3.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:a31fa7536ec1fb7155a0cd3a4e3d956c835ad0a43e3610ca32384d01f079ea1c"},+ {file = "lxml-5.3.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3c3c8b55c7fc7b7e8877b9366568cc73d68b82da7fe33d8b98527b73857a225f"},+ {file = "lxml-5.3.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d61ec60945d694df806a9aec88e8f29a27293c6e424f8ff91c80416e3c617645"},+ {file = "lxml-5.3.1-cp312-cp312-win32.whl", hash = "sha256:f4eac0584cdc3285ef2e74eee1513a6001681fd9753b259e8159421ed28a72e5"},+ {file = "lxml-5.3.1-cp312-cp312-win_amd64.whl", hash = "sha256:29bfc8d3d88e56ea0a27e7c4897b642706840247f59f4377d81be8f32aa0cfbf"},+ {file = "lxml-5.3.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:c093c7088b40d8266f57ed71d93112bd64c6724d31f0794c1e52cc4857c28e0e"},+ {file = "lxml-5.3.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b0884e3f22d87c30694e625b1e62e6f30d39782c806287450d9dc2fdf07692fd"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1637fa31ec682cd5760092adfabe86d9b718a75d43e65e211d5931809bc111e7"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a364e8e944d92dcbf33b6b494d4e0fb3499dcc3bd9485beb701aa4b4201fa414"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:779e851fd0e19795ccc8a9bb4d705d6baa0ef475329fe44a13cf1e962f18ff1e"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c4393600915c308e546dc7003d74371744234e8444a28622d76fe19b98fa59d1"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:673b9d8e780f455091200bba8534d5f4f465944cbdd61f31dc832d70e29064a5"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:2e4a570f6a99e96c457f7bec5ad459c9c420ee80b99eb04cbfcfe3fc18ec6423"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_28_ppc64le.whl", hash = "sha256:71f31eda4e370f46af42fc9f264fafa1b09f46ba07bdbee98f25689a04b81c20"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_28_s390x.whl", hash = "sha256:42978a68d3825eaac55399eb37a4d52012a205c0c6262199b8b44fcc6fd686e8"},+ {file = "lxml-5.3.1-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:8b1942b3e4ed9ed551ed3083a2e6e0772de1e5e3aca872d955e2e86385fb7ff9"},+ {file = "lxml-5.3.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:85c4f11be9cf08917ac2a5a8b6e1ef63b2f8e3799cec194417e76826e5f1de9c"},+ {file = "lxml-5.3.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:231cf4d140b22a923b1d0a0a4e0b4f972e5893efcdec188934cc65888fd0227b"},+ {file = "lxml-5.3.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:5865b270b420eda7b68928d70bb517ccbe045e53b1a428129bb44372bf3d7dd5"},+ {file = "lxml-5.3.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:dbf7bebc2275016cddf3c997bf8a0f7044160714c64a9b83975670a04e6d2252"},+ {file = "lxml-5.3.1-cp313-cp313-win32.whl", hash = "sha256:d0751528b97d2b19a388b302be2a0ee05817097bab46ff0ed76feeec24951f78"},+ {file = "lxml-5.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:91fb6a43d72b4f8863d21f347a9163eecbf36e76e2f51068d59cd004c506f332"},+ {file = "lxml-5.3.1-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:afa578b6524ff85fb365f454cf61683771d0170470c48ad9d170c48075f86725"},+ {file = "lxml-5.3.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:67f5e80adf0aafc7b5454f2c1cb0cde920c9b1f2cbd0485f07cc1d0497c35c5d"},+ {file = "lxml-5.3.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2dd0b80ac2d8f13ffc906123a6f20b459cb50a99222d0da492360512f3e50f84"},+ {file = "lxml-5.3.1-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:422c179022ecdedbe58b0e242607198580804253da220e9454ffe848daa1cfd2"},+ {file = "lxml-5.3.1-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:524ccfded8989a6595dbdda80d779fb977dbc9a7bc458864fc9a0c2fc15dc877"},+ {file = "lxml-5.3.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:48fd46bf7155def2e15287c6f2b133a2f78e2d22cdf55647269977b873c65499"},+ {file = "lxml-5.3.1.tar.gz", hash = "sha256:106b7b5d2977b339f1e97efe2778e2ab20e99994cbb0ec5e55771ed0795920c8"},+]++[[package]]+name = "markupsafe"+version = "3.0.2"+requires_python = ">=3.9"+summary = "Safely add untrusted strings to HTML/XML markup."+groups = ["default"]+files = [+ {file = "MarkupSafe-3.0.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7e94c425039cde14257288fd61dcfb01963e658efbc0ff54f5306b06054700f8"},+ {file = "MarkupSafe-3.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9e2d922824181480953426608b81967de705c3cef4d1af983af849d7bd619158"},+ {file = "MarkupSafe-3.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:38a9ef736c01fccdd6600705b09dc574584b89bea478200c5fbf112a6b0d5579"},+ {file = "MarkupSafe-3.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bbcb445fa71794da8f178f0f6d66789a28d7319071af7a496d4d507ed566270d"},+ {file = "MarkupSafe-3.0.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:57cb5a3cf367aeb1d316576250f65edec5bb3be939e9247ae594b4bcbc317dfb"},+ {file = "MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:3809ede931876f5b2ec92eef964286840ed3540dadf803dd570c3b7e13141a3b"},+ {file = "MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e07c3764494e3776c602c1e78e298937c3315ccc9043ead7e685b7f2b8d47b3c"},+ {file = "MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:b424c77b206d63d500bcb69fa55ed8d0e6a3774056bdc4839fc9298a7edca171"},+ {file = "MarkupSafe-3.0.2-cp310-cp310-win32.whl", hash = "sha256:fcabf5ff6eea076f859677f5f0b6b5c1a51e70a376b0579e0eadef8db48c6b50"},+ {file = "MarkupSafe-3.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:6af100e168aa82a50e186c82875a5893c5597a0c1ccdb0d8b40240b1f28b969a"},+ {file = "MarkupSafe-3.0.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9025b4018f3a1314059769c7bf15441064b2207cb3f065e6ea1e7359cb46db9d"},+ {file = "MarkupSafe-3.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:93335ca3812df2f366e80509ae119189886b0f3c2b81325d39efdb84a1e2ae93"},+ {file = "MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2cb8438c3cbb25e220c2ab33bb226559e7afb3baec11c4f218ffa7308603c832"},+ {file = "MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a123e330ef0853c6e822384873bef7507557d8e4a082961e1defa947aa59ba84"},+ {file = "MarkupSafe-3.0.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1e084f686b92e5b83186b07e8a17fc09e38fff551f3602b249881fec658d3eca"},+ {file = "MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d8213e09c917a951de9d09ecee036d5c7d36cb6cb7dbaece4c71a60d79fb9798"},+ {file = "MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:5b02fb34468b6aaa40dfc198d813a641e3a63b98c2b05a16b9f80b7ec314185e"},+ {file = "MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0bff5e0ae4ef2e1ae4fdf2dfd5b76c75e5c2fa4132d05fc1b0dabcd20c7e28c4"},+ {file = "MarkupSafe-3.0.2-cp311-cp311-win32.whl", hash = "sha256:6c89876f41da747c8d3677a2b540fb32ef5715f97b66eeb0c6b66f5e3ef6f59d"},+ {file = "MarkupSafe-3.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:70a87b411535ccad5ef2f1df5136506a10775d267e197e4cf531ced10537bd6b"},+ {file = "MarkupSafe-3.0.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:9778bd8ab0a994ebf6f84c2b949e65736d5575320a17ae8984a77fab08db94cf"},+ {file = "MarkupSafe-3.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:846ade7b71e3536c4e56b386c2a47adf5741d2d8b94ec9dc3e92e5e1ee1e2225"},+ {file = "MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1c99d261bd2d5f6b59325c92c73df481e05e57f19837bdca8413b9eac4bd8028"},+ {file = "MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e17c96c14e19278594aa4841ec148115f9c7615a47382ecb6b82bd8fea3ab0c8"},+ {file = "MarkupSafe-3.0.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:88416bd1e65dcea10bc7569faacb2c20ce071dd1f87539ca2ab364bf6231393c"},+ {file = "MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2181e67807fc2fa785d0592dc2d6206c019b9502410671cc905d132a92866557"},+ {file = "MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:52305740fe773d09cffb16f8ed0427942901f00adedac82ec8b67752f58a1b22"},+ {file = "MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ad10d3ded218f1039f11a75f8091880239651b52e9bb592ca27de44eed242a48"},+ {file = "MarkupSafe-3.0.2-cp312-cp312-win32.whl", hash = "sha256:0f4ca02bea9a23221c0182836703cbf8930c5e9454bacce27e767509fa286a30"},+ {file = "MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:8e06879fc22a25ca47312fbe7c8264eb0b662f6db27cb2d3bbbc74b1df4b9b87"},+ {file = "MarkupSafe-3.0.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ba9527cdd4c926ed0760bc301f6728ef34d841f405abf9d4f959c478421e4efd"},+ {file = "MarkupSafe-3.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f8b3d067f2e40fe93e1ccdd6b2e1d16c43140e76f02fb1319a05cf2b79d99430"},+ {file = "MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:569511d3b58c8791ab4c2e1285575265991e6d8f8700c7be0e88f86cb0672094"},+ {file = "MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:15ab75ef81add55874e7ab7055e9c397312385bd9ced94920f2802310c930396"},+ {file = "MarkupSafe-3.0.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f3818cb119498c0678015754eba762e0d61e5b52d34c8b13d770f0719f7b1d79"},+ {file = "MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:cdb82a876c47801bb54a690c5ae105a46b392ac6099881cdfb9f6e95e4014c6a"},+ {file = "MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:cabc348d87e913db6ab4aa100f01b08f481097838bdddf7c7a84b7575b7309ca"},+ {file = "MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:444dcda765c8a838eaae23112db52f1efaf750daddb2d9ca300bcae1039adc5c"},+ {file = "MarkupSafe-3.0.2-cp313-cp313-win32.whl", hash = "sha256:bcf3e58998965654fdaff38e58584d8937aa3096ab5354d493c77d1fdd66d7a1"},+ {file = "MarkupSafe-3.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:e6a2a455bd412959b57a172ce6328d2dd1f01cb2135efda2e4576e8a23fa3b0f"},+ {file = "MarkupSafe-3.0.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:b5a6b3ada725cea8a5e634536b1b01c30bcdcd7f9c6fff4151548d5bf6b3a36c"},+ {file = "MarkupSafe-3.0.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:a904af0a6162c73e3edcb969eeeb53a63ceeb5d8cf642fade7d39e7963a22ddb"},+ {file = "MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4aa4e5faecf353ed117801a068ebab7b7e09ffb6e1d5e412dc852e0da018126c"},+ {file = "MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0ef13eaeee5b615fb07c9a7dadb38eac06a0608b41570d8ade51c56539e509d"},+ {file = "MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d16a81a06776313e817c951135cf7340a3e91e8c1ff2fac444cfd75fffa04afe"},+ {file = "MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6381026f158fdb7c72a168278597a5e3a5222e83ea18f543112b2662a9b699c5"},+ {file = "MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:3d79d162e7be8f996986c064d1c7c817f6df3a77fe3d6859f6f9e7be4b8c213a"},+ {file = "MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:131a3c7689c85f5ad20f9f6fb1b866f402c445b220c19fe4308c0b147ccd2ad9"},+ {file = "MarkupSafe-3.0.2-cp313-cp313t-win32.whl", hash = "sha256:ba8062ed2cf21c07a9e295d5b8a2a5ce678b913b45fdf68c32d95d6c1291e0b6"},+ {file = "MarkupSafe-3.0.2-cp313-cp313t-win_amd64.whl", hash = "sha256:e444a31f8db13eb18ada366ab3cf45fd4b31e4db1236a4448f68778c1d1a5a2f"},+ {file = "markupsafe-3.0.2.tar.gz", hash = "sha256:ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0"},+]++[[package]]+name = "marshmallow"+version = "3.26.1"+requires_python = ">=3.9"+summary = "A lightweight library for converting complex datatypes to and from native Python datatypes."+groups = ["default"]+dependencies = [+ "packaging>=17.0",+]+files = [+ {file = "marshmallow-3.26.1-py3-none-any.whl", hash = "sha256:3350409f20a70a7e4e11a27661187b77cdcaeb20abca41c1454fe33636bea09c"},+ {file = "marshmallow-3.26.1.tar.gz", hash = "sha256:e6d8affb6cb61d39d26402096dc0aee12d5a26d490a121f118d2e81dc0719dc6"},+]++[[package]]+name = "mccabe"+version = "0.7.0"+requires_python = ">=3.6"+summary = "McCabe checker, plugin for flake8"+groups = ["dev"]+files = [+ {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"},+ {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"},+]++[[package]]+name = "mpmath"+version = "1.3.0"+summary = "Python library for arbitrary-precision floating-point arithmetic"+groups = ["default"]+marker = "python_version >= \"3.9\""+files = [+ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},+ {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},+]++[[package]]+name = "multidict"+version = "6.2.0"+requires_python = ">=3.9"+summary = "multidict implementation"+groups = ["default"]+dependencies = [+ "typing-extensions>=4.1.0; python_version < \"3.11\"",+]+files = [+ {file = "multidict-6.2.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:b9f6392d98c0bd70676ae41474e2eecf4c7150cb419237a41f8f96043fcb81d1"},+ {file = "multidict-6.2.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3501621d5e86f1a88521ea65d5cad0a0834c77b26f193747615b7c911e5422d2"},+ {file = "multidict-6.2.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:32ed748ff9ac682eae7859790d3044b50e3076c7d80e17a44239683769ff485e"},+ {file = "multidict-6.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cc826b9a8176e686b67aa60fd6c6a7047b0461cae5591ea1dc73d28f72332a8a"},+ {file = "multidict-6.2.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:214207dcc7a6221d9942f23797fe89144128a71c03632bf713d918db99bd36de"},+ {file = "multidict-6.2.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:05fefbc3cddc4e36da209a5e49f1094bbece9a581faa7f3589201fd95df40e5d"},+ {file = "multidict-6.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e851e6363d0dbe515d8de81fd544a2c956fdec6f8a049739562286727d4a00c3"},+ {file = "multidict-6.2.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:32c9b4878f48be3e75808ea7e499d6223b1eea6d54c487a66bc10a1871e3dc6a"},+ {file = "multidict-6.2.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:7243c5a6523c5cfeca76e063efa5f6a656d1d74c8b1fc64b2cd1e84e507f7e2a"},+ {file = "multidict-6.2.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:0e5a644e50ef9fb87878d4d57907f03a12410d2aa3b93b3acdf90a741df52c49"},+ {file = "multidict-6.2.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:0dc25a3293c50744796e87048de5e68996104d86d940bb24bc3ec31df281b191"},+ {file = "multidict-6.2.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:a49994481b99cd7dedde07f2e7e93b1d86c01c0fca1c32aded18f10695ae17eb"},+ {file = "multidict-6.2.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:641cf2e3447c9ecff2f7aa6e9eee9eaa286ea65d57b014543a4911ff2799d08a"},+ {file = "multidict-6.2.0-cp310-cp310-win32.whl", hash = "sha256:0c383d28857f66f5aebe3e91d6cf498da73af75fbd51cedbe1adfb85e90c0460"},+ {file = "multidict-6.2.0-cp310-cp310-win_amd64.whl", hash = "sha256:a33273a541f1e1a8219b2a4ed2de355848ecc0254264915b9290c8d2de1c74e1"},+ {file = "multidict-6.2.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:84e87a7d75fa36839a3a432286d719975362d230c70ebfa0948549cc38bd5b46"},+ {file = "multidict-6.2.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:8de4d42dffd5ced9117af2ce66ba8722402541a3aa98ffdf78dde92badb68932"},+ {file = "multidict-6.2.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e7d91a230c7f8af86c904a5a992b8c064b66330544693fd6759c3d6162382ecf"},+ {file = "multidict-6.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9f6cad071960ba1914fa231677d21b1b4a3acdcce463cee41ea30bc82e6040cf"},+ {file = "multidict-6.2.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0f74f2fc51555f4b037ef278efc29a870d327053aba5cb7d86ae572426c7cccc"},+ {file = "multidict-6.2.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:14ed9ed1bfedd72a877807c71113deac292bf485159a29025dfdc524c326f3e1"},+ {file = "multidict-6.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4ac3fcf9a2d369bd075b2c2965544036a27ccd277fc3c04f708338cc57533081"},+ {file = "multidict-6.2.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2fc6af8e39f7496047c7876314f4317736eac82bf85b54c7c76cf1a6f8e35d98"},+ {file = "multidict-6.2.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:5f8cb1329f42fadfb40d6211e5ff568d71ab49be36e759345f91c69d1033d633"},+ {file = "multidict-6.2.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:5389445f0173c197f4a3613713b5fb3f3879df1ded2a1a2e4bc4b5b9c5441b7e"},+ {file = "multidict-6.2.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:94a7bb972178a8bfc4055db80c51efd24baefaced5e51c59b0d598a004e8305d"},+ {file = "multidict-6.2.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:da51d8928ad8b4244926fe862ba1795f0b6e68ed8c42cd2f822d435db9c2a8f4"},+ {file = "multidict-6.2.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:063be88bd684782a0715641de853e1e58a2f25b76388538bd62d974777ce9bc2"},+ {file = "multidict-6.2.0-cp311-cp311-win32.whl", hash = "sha256:52b05e21ff05729fbea9bc20b3a791c3c11da61649ff64cce8257c82a020466d"},+ {file = "multidict-6.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:1e2a2193d3aa5cbf5758f6d5680a52aa848e0cf611da324f71e5e48a9695cc86"},+ {file = "multidict-6.2.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:437c33561edb6eb504b5a30203daf81d4a9b727e167e78b0854d9a4e18e8950b"},+ {file = "multidict-6.2.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:9f49585f4abadd2283034fc605961f40c638635bc60f5162276fec075f2e37a4"},+ {file = "multidict-6.2.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:5dd7106d064d05896ce28c97da3f46caa442fe5a43bc26dfb258e90853b39b44"},+ {file = "multidict-6.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e25b11a0417475f093d0f0809a149aff3943c2c56da50fdf2c3c88d57fe3dfbd"},+ {file = "multidict-6.2.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ac380cacdd3b183338ba63a144a34e9044520a6fb30c58aa14077157a033c13e"},+ {file = "multidict-6.2.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:61d5541f27533f803a941d3a3f8a3d10ed48c12cf918f557efcbf3cd04ef265c"},+ {file = "multidict-6.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:facaf11f21f3a4c51b62931feb13310e6fe3475f85e20d9c9fdce0d2ea561b87"},+ {file = "multidict-6.2.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:095a2eabe8c43041d3e6c2cb8287a257b5f1801c2d6ebd1dd877424f1e89cf29"},+ {file = "multidict-6.2.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a0cc398350ef31167e03f3ca7c19313d4e40a662adcb98a88755e4e861170bdd"},+ {file = "multidict-6.2.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:7c611345bbe7cb44aabb877cb94b63e86f2d0db03e382667dbd037866d44b4f8"},+ {file = "multidict-6.2.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:8cd1a0644ccaf27e9d2f6d9c9474faabee21f0578fe85225cc5af9a61e1653df"},+ {file = "multidict-6.2.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:89b3857652183b8206a891168af47bac10b970d275bba1f6ee46565a758c078d"},+ {file = "multidict-6.2.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:125dd82b40f8c06d08d87b3510beaccb88afac94e9ed4a6f6c71362dc7dbb04b"},+ {file = "multidict-6.2.0-cp312-cp312-win32.whl", hash = "sha256:76b34c12b013d813e6cb325e6bd4f9c984db27758b16085926bbe7ceeaace626"},+ {file = "multidict-6.2.0-cp312-cp312-win_amd64.whl", hash = "sha256:0b183a959fb88ad1be201de2c4bdf52fa8e46e6c185d76201286a97b6f5ee65c"},+ {file = "multidict-6.2.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:5c5e7d2e300d5cb3b2693b6d60d3e8c8e7dd4ebe27cd17c9cb57020cac0acb80"},+ {file = "multidict-6.2.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:256d431fe4583c5f1e0f2e9c4d9c22f3a04ae96009b8cfa096da3a8723db0a16"},+ {file = "multidict-6.2.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a3c0ff89fe40a152e77b191b83282c9664357dce3004032d42e68c514ceff27e"},+ {file = "multidict-6.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ef7d48207926edbf8b16b336f779c557dd8f5a33035a85db9c4b0febb0706817"},+ {file = "multidict-6.2.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1f3c099d3899b14e1ce52262eb82a5f5cb92157bb5106bf627b618c090a0eadc"},+ {file = "multidict-6.2.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e16e7297f29a544f49340012d6fc08cf14de0ab361c9eb7529f6a57a30cbfda1"},+ {file = "multidict-6.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:042028348dc5a1f2be6c666437042a98a5d24cee50380f4c0902215e5ec41844"},+ {file = "multidict-6.2.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:08549895e6a799bd551cf276f6e59820aa084f0f90665c0f03dd3a50db5d3c48"},+ {file = "multidict-6.2.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4ccfd74957ef53fa7380aaa1c961f523d582cd5e85a620880ffabd407f8202c0"},+ {file = "multidict-6.2.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:83b78c680d4b15d33042d330c2fa31813ca3974197bddb3836a5c635a5fd013f"},+ {file = "multidict-6.2.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:b4c153863dd6569f6511845922c53e39c8d61f6e81f228ad5443e690fca403de"},+ {file = "multidict-6.2.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:98aa8325c7f47183b45588af9c434533196e241be0a4e4ae2190b06d17675c02"},+ {file = "multidict-6.2.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9e658d1373c424457ddf6d55ec1db93c280b8579276bebd1f72f113072df8a5d"},+ {file = "multidict-6.2.0-cp313-cp313-win32.whl", hash = "sha256:3157126b028c074951839233647bd0e30df77ef1fedd801b48bdcad242a60f4e"},+ {file = "multidict-6.2.0-cp313-cp313-win_amd64.whl", hash = "sha256:2e87f1926e91855ae61769ba3e3f7315120788c099677e0842e697b0bfb659f2"},+ {file = "multidict-6.2.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:2529ddbdaa424b2c6c2eb668ea684dd6b75b839d0ad4b21aad60c168269478d7"},+ {file = "multidict-6.2.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:13551d0e2d7201f0959725a6a769b6f7b9019a168ed96006479c9ac33fe4096b"},+ {file = "multidict-6.2.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:d1996ee1330e245cd3aeda0887b4409e3930524c27642b046e4fae88ffa66c5e"},+ {file = "multidict-6.2.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c537da54ce4ff7c15e78ab1292e5799d0d43a2108e006578a57f531866f64025"},+ {file = "multidict-6.2.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0f249badb360b0b4d694307ad40f811f83df4da8cef7b68e429e4eea939e49dd"},+ {file = "multidict-6.2.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:48d39b1824b8d6ea7de878ef6226efbe0773f9c64333e1125e0efcfdd18a24c7"},+ {file = "multidict-6.2.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b99aac6bb2c37db336fa03a39b40ed4ef2818bf2dfb9441458165ebe88b793af"},+ {file = "multidict-6.2.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:07bfa8bc649783e703263f783f73e27fef8cd37baaad4389816cf6a133141331"},+ {file = "multidict-6.2.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b2c00ad31fbc2cbac85d7d0fcf90853b2ca2e69d825a2d3f3edb842ef1544a2c"},+ {file = "multidict-6.2.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:0d57a01a2a9fa00234aace434d8c131f0ac6e0ac6ef131eda5962d7e79edfb5b"},+ {file = "multidict-6.2.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:abf5b17bc0cf626a8a497d89ac691308dbd825d2ac372aa990b1ca114e470151"},+ {file = "multidict-6.2.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:f7716f7e7138252d88607228ce40be22660d6608d20fd365d596e7ca0738e019"},+ {file = "multidict-6.2.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:d5a36953389f35f0a4e88dc796048829a2f467c9197265504593f0e420571547"},+ {file = "multidict-6.2.0-cp313-cp313t-win32.whl", hash = "sha256:e653d36b1bf48fa78c7fcebb5fa679342e025121ace8c87ab05c1cefd33b34fc"},+ {file = "multidict-6.2.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ca23db5fb195b5ef4fd1f77ce26cadefdf13dba71dab14dadd29b34d457d7c44"},+ {file = "multidict-6.2.0-py3-none-any.whl", hash = "sha256:5d26547423e5e71dcc562c4acdc134b900640a39abd9066d7326a7cc2324c530"},+ {file = "multidict-6.2.0.tar.gz", hash = "sha256:0085b0afb2446e57050140240a8595846ed64d1cbd26cef936bfab3192c673b8"},+]++[[package]]+name = "mypy-extensions"+version = "1.0.0"+requires_python = ">=3.5"+summary = "Type system extensions for programs checked with the mypy type checker."+groups = ["default", "dev"]+files = [+ {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"},+ {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"},+]++[[package]]+name = "nest-asyncio"+version = "1.6.0"+requires_python = ">=3.5"+summary = "Patch asyncio to allow nested event loops"+groups = ["default"]+files = [+ {file = "nest_asyncio-1.6.0-py3-none-any.whl", hash = "sha256:87af6efd6b5e897c81050477ef65c62e2b2f35d51703cae01aff2905b1852e1c"},+ {file = "nest_asyncio-1.6.0.tar.gz", hash = "sha256:6f172d5449aca15afd6c646851f4e31e02c598d553a667e38cafa997cfec55fe"},+]++[[package]]+name = "networkx"+version = "3.4.2"+requires_python = ">=3.10"+summary = "Python package for creating and manipulating graphs and networks"+groups = ["default"]+files = [+ {file = "networkx-3.4.2-py3-none-any.whl", hash = "sha256:df5d4365b724cf81b8c6a7312509d0c22386097011ad1abe274afd5e9d3bbc5f"},+ {file = "networkx-3.4.2.tar.gz", hash = "sha256:307c3669428c5362aab27c8a1260aa8f47c4e91d3891f48be0141738d8d053e1"},+]++[[package]]+name = "nltk"+version = "3.9.1"+requires_python = ">=3.8"+summary = "Natural Language Toolkit"+groups = ["default"]+dependencies = [+ "click",+ "joblib",+ "regex>=2021.8.3",+ "tqdm",+]+files = [+ {file = "nltk-3.9.1-py3-none-any.whl", hash = "sha256:4fa26829c5b00715afe3061398a8989dc643b92ce7dd93fb4585a70930d168a1"},+ {file = "nltk-3.9.1.tar.gz", hash = "sha256:87d127bd3de4bd89a4f81265e5fa59cb1b199b27440175370f7417d2bc7ae868"},+]++[[package]]+name = "nodeenv"+version = "1.9.1"+requires_python = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"+summary = "Node.js virtual environment builder"+groups = ["dev"]+files = [+ {file = "nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9"},+ {file = "nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f"},+]++[[package]]+name = "numpy"+version = "2.2.4"+requires_python = ">=3.10"+summary = "Fundamental package for array computing in Python"+groups = ["default"]+files = [+ {file = "numpy-2.2.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:8146f3550d627252269ac42ae660281d673eb6f8b32f113538e0cc2a9aed42b9"},+ {file = "numpy-2.2.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e642d86b8f956098b564a45e6f6ce68a22c2c97a04f5acd3f221f57b8cb850ae"},+ {file = "numpy-2.2.4-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:a84eda42bd12edc36eb5b53bbcc9b406820d3353f1994b6cfe453a33ff101775"},+ {file = "numpy-2.2.4-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:4ba5054787e89c59c593a4169830ab362ac2bee8a969249dc56e5d7d20ff8df9"},+ {file = "numpy-2.2.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7716e4a9b7af82c06a2543c53ca476fa0b57e4d760481273e09da04b74ee6ee2"},+ {file = "numpy-2.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:adf8c1d66f432ce577d0197dceaac2ac00c0759f573f28516246351c58a85020"},+ {file = "numpy-2.2.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:218f061d2faa73621fa23d6359442b0fc658d5b9a70801373625d958259eaca3"},+ {file = "numpy-2.2.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:df2f57871a96bbc1b69733cd4c51dc33bea66146b8c63cacbfed73eec0883017"},+ {file = "numpy-2.2.4-cp310-cp310-win32.whl", hash = "sha256:a0258ad1f44f138b791327961caedffbf9612bfa504ab9597157806faa95194a"},+ {file = "numpy-2.2.4-cp310-cp310-win_amd64.whl", hash = "sha256:0d54974f9cf14acf49c60f0f7f4084b6579d24d439453d5fc5805d46a165b542"},+ {file = "numpy-2.2.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e9e0a277bb2eb5d8a7407e14688b85fd8ad628ee4e0c7930415687b6564207a4"},+ {file = "numpy-2.2.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:9eeea959168ea555e556b8188da5fa7831e21d91ce031e95ce23747b7609f8a4"},+ {file = "numpy-2.2.4-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:bd3ad3b0a40e713fc68f99ecfd07124195333f1e689387c180813f0e94309d6f"},+ {file = "numpy-2.2.4-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:cf28633d64294969c019c6df4ff37f5698e8326db68cc2b66576a51fad634880"},+ {file = "numpy-2.2.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2fa8fa7697ad1646b5c93de1719965844e004fcad23c91228aca1cf0800044a1"},+ {file = "numpy-2.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f4162988a360a29af158aeb4a2f4f09ffed6a969c9776f8f3bdee9b06a8ab7e5"},+ {file = "numpy-2.2.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:892c10d6a73e0f14935c31229e03325a7b3093fafd6ce0af704be7f894d95687"},+ {file = "numpy-2.2.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:db1f1c22173ac1c58db249ae48aa7ead29f534b9a948bc56828337aa84a32ed6"},+ {file = "numpy-2.2.4-cp311-cp311-win32.whl", hash = "sha256:ea2bb7e2ae9e37d96835b3576a4fa4b3a97592fbea8ef7c3587078b0068b8f09"},+ {file = "numpy-2.2.4-cp311-cp311-win_amd64.whl", hash = "sha256:f7de08cbe5551911886d1ab60de58448c6df0f67d9feb7d1fb21e9875ef95e91"},+ {file = "numpy-2.2.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:a7b9084668aa0f64e64bd00d27ba5146ef1c3a8835f3bd912e7a9e01326804c4"},+ {file = "numpy-2.2.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:dbe512c511956b893d2dacd007d955a3f03d555ae05cfa3ff1c1ff6df8851854"},+ {file = "numpy-2.2.4-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:bb649f8b207ab07caebba230d851b579a3c8711a851d29efe15008e31bb4de24"},+ {file = "numpy-2.2.4-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:f34dc300df798742b3d06515aa2a0aee20941c13579d7a2f2e10af01ae4901ee"},+ {file = "numpy-2.2.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c3f7ac96b16955634e223b579a3e5798df59007ca43e8d451a0e6a50f6bfdfba"},+ {file = "numpy-2.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4f92084defa704deadd4e0a5ab1dc52d8ac9e8a8ef617f3fbb853e79b0ea3592"},+ {file = "numpy-2.2.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:7a4e84a6283b36632e2a5b56e121961f6542ab886bc9e12f8f9818b3c266bfbb"},+ {file = "numpy-2.2.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:11c43995255eb4127115956495f43e9343736edb7fcdb0d973defd9de14cd84f"},+ {file = "numpy-2.2.4-cp312-cp312-win32.whl", hash = "sha256:65ef3468b53269eb5fdb3a5c09508c032b793da03251d5f8722b1194f1790c00"},+ {file = "numpy-2.2.4-cp312-cp312-win_amd64.whl", hash = "sha256:2aad3c17ed2ff455b8eaafe06bcdae0062a1db77cb99f4b9cbb5f4ecb13c5146"},+ {file = "numpy-2.2.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1cf4e5c6a278d620dee9ddeb487dc6a860f9b199eadeecc567f777daace1e9e7"},+ {file = "numpy-2.2.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1974afec0b479e50438fc3648974268f972e2d908ddb6d7fb634598cdb8260a0"},+ {file = "numpy-2.2.4-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:79bd5f0a02aa16808fcbc79a9a376a147cc1045f7dfe44c6e7d53fa8b8a79392"},+ {file = "numpy-2.2.4-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:3387dd7232804b341165cedcb90694565a6015433ee076c6754775e85d86f1fc"},+ {file = "numpy-2.2.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6f527d8fdb0286fd2fd97a2a96c6be17ba4232da346931d967a0630050dfd298"},+ {file = "numpy-2.2.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bce43e386c16898b91e162e5baaad90c4b06f9dcbe36282490032cec98dc8ae7"},+ {file = "numpy-2.2.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:31504f970f563d99f71a3512d0c01a645b692b12a63630d6aafa0939e52361e6"},+ {file = "numpy-2.2.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:81413336ef121a6ba746892fad881a83351ee3e1e4011f52e97fba79233611fd"},+ {file = "numpy-2.2.4-cp313-cp313-win32.whl", hash = "sha256:f486038e44caa08dbd97275a9a35a283a8f1d2f0ee60ac260a1790e76660833c"},+ {file = "numpy-2.2.4-cp313-cp313-win_amd64.whl", hash = "sha256:207a2b8441cc8b6a2a78c9ddc64d00d20c303d79fba08c577752f080c4007ee3"},+ {file = "numpy-2.2.4-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:8120575cb4882318c791f839a4fd66161a6fa46f3f0a5e613071aae35b5dd8f8"},+ {file = "numpy-2.2.4-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:a761ba0fa886a7bb33c6c8f6f20213735cb19642c580a931c625ee377ee8bd39"},+ {file = "numpy-2.2.4-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:ac0280f1ba4a4bfff363a99a6aceed4f8e123f8a9b234c89140f5e894e452ecd"},+ {file = "numpy-2.2.4-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:879cf3a9a2b53a4672a168c21375166171bc3932b7e21f622201811c43cdd3b0"},+ {file = "numpy-2.2.4-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f05d4198c1bacc9124018109c5fba2f3201dbe7ab6e92ff100494f236209c960"},+ {file = "numpy-2.2.4-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e2f085ce2e813a50dfd0e01fbfc0c12bbe5d2063d99f8b29da30e544fb6483b8"},+ {file = "numpy-2.2.4-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:92bda934a791c01d6d9d8e038363c50918ef7c40601552a58ac84c9613a665bc"},+ {file = "numpy-2.2.4-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:ee4d528022f4c5ff67332469e10efe06a267e32f4067dc76bb7e2cddf3cd25ff"},+ {file = "numpy-2.2.4-cp313-cp313t-win32.whl", hash = "sha256:05c076d531e9998e7e694c36e8b349969c56eadd2cdcd07242958489d79a7286"},+ {file = "numpy-2.2.4-cp313-cp313t-win_amd64.whl", hash = "sha256:188dcbca89834cc2e14eb2f106c96d6d46f200fe0200310fc29089657379c58d"},+ {file = "numpy-2.2.4-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:7051ee569db5fbac144335e0f3b9c2337e0c8d5c9fee015f259a5bd70772b7e8"},+ {file = "numpy-2.2.4-pp310-pypy310_pp73-macosx_14_0_x86_64.whl", hash = "sha256:ab2939cd5bec30a7430cbdb2287b63151b77cf9624de0532d629c9a1c59b1d5c"},+ {file = "numpy-2.2.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d0f35b19894a9e08639fd60a1ec1978cb7f5f7f1eace62f38dd36be8aecdef4d"},+ {file = "numpy-2.2.4-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:b4adfbbc64014976d2f91084915ca4e626fbf2057fb81af209c1a6d776d23e3d"},+ {file = "numpy-2.2.4.tar.gz", hash = "sha256:9ba03692a45d3eef66559efe1d1096c4b9b75c0986b5dff5530c378fb8331d4f"},+]++[[package]]+name = "nvidia-cublas-cu12"+version = "12.4.5.8"+requires_python = ">=3"+summary = "CUBLAS native runtime libraries"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+files = [+ {file = "nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0f8aa1706812e00b9f19dfe0cdb3999b092ccb8ca168c0db5b8ea712456fd9b3"},+ {file = "nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_x86_64.whl", hash = "sha256:2fc8da60df463fdefa81e323eef2e36489e1c94335b5358bcb38360adf75ac9b"},+ {file = "nvidia_cublas_cu12-12.4.5.8-py3-none-win_amd64.whl", hash = "sha256:5a796786da89203a0657eda402bcdcec6180254a8ac22d72213abc42069522dc"},+]++[[package]]+name = "nvidia-cuda-cupti-cu12"+version = "12.4.127"+requires_python = ">=3"+summary = "CUDA profiling tools runtime libs."+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+files = [+ {file = "nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:79279b35cf6f91da114182a5ce1864997fd52294a87a16179ce275773799458a"},+ {file = "nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:9dec60f5ac126f7bb551c055072b69d85392b13311fcc1bcda2202d172df30fb"},+ {file = "nvidia_cuda_cupti_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:5688d203301ab051449a2b1cb6690fbe90d2b372f411521c86018b950f3d7922"},+]++[[package]]+name = "nvidia-cuda-nvrtc-cu12"+version = "12.4.127"+requires_python = ">=3"+summary = "NVRTC native runtime libraries"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+files = [+ {file = "nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0eedf14185e04b76aa05b1fea04133e59f465b6f960c0cbf4e37c3cb6b0ea198"},+ {file = "nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:a178759ebb095827bd30ef56598ec182b85547f1508941a3d560eb7ea1fbf338"},+ {file = "nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:a961b2f1d5f17b14867c619ceb99ef6fcec12e46612711bcec78eb05068a60ec"},+]++[[package]]+name = "nvidia-cuda-runtime-cu12"+version = "12.4.127"+requires_python = ">=3"+summary = "CUDA Runtime native Libraries"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+files = [+ {file = "nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:961fe0e2e716a2a1d967aab7caee97512f71767f852f67432d572e36cb3a11f3"},+ {file = "nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:64403288fa2136ee8e467cdc9c9427e0434110899d07c779f25b5c068934faa5"},+ {file = "nvidia_cuda_runtime_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:09c2e35f48359752dfa822c09918211844a3d93c100a715d79b59591130c5e1e"},+]++[[package]]+name = "nvidia-cudnn-cu12"+version = "9.1.0.70"+requires_python = ">=3"+summary = "cuDNN runtime libraries"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+dependencies = [+ "nvidia-cublas-cu12",+]+files = [+ {file = "nvidia_cudnn_cu12-9.1.0.70-py3-none-manylinux2014_x86_64.whl", hash = "sha256:165764f44ef8c61fcdfdfdbe769d687e06374059fbb388b6c89ecb0e28793a6f"},+ {file = "nvidia_cudnn_cu12-9.1.0.70-py3-none-win_amd64.whl", hash = "sha256:6278562929433d68365a07a4a1546c237ba2849852c0d4b2262a486e805b977a"},+]++[[package]]+name = "nvidia-cufft-cu12"+version = "11.2.1.3"+requires_python = ">=3"+summary = "CUFFT native runtime libraries"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+dependencies = [+ "nvidia-nvjitlink-cu12",+]+files = [+ {file = "nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_aarch64.whl", hash = "sha256:5dad8008fc7f92f5ddfa2101430917ce2ffacd86824914c82e28990ad7f00399"},+ {file = "nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_x86_64.whl", hash = "sha256:f083fc24912aa410be21fa16d157fed2055dab1cc4b6934a0e03cba69eb242b9"},+ {file = "nvidia_cufft_cu12-11.2.1.3-py3-none-win_amd64.whl", hash = "sha256:d802f4954291101186078ccbe22fc285a902136f974d369540fd4a5333d1440b"},+]++[[package]]+name = "nvidia-curand-cu12"+version = "10.3.5.147"+requires_python = ">=3"+summary = "CURAND native runtime libraries"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+files = [+ {file = "nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_aarch64.whl", hash = "sha256:1f173f09e3e3c76ab084aba0de819c49e56614feae5c12f69883f4ae9bb5fad9"},+ {file = "nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_x86_64.whl", hash = "sha256:a88f583d4e0bb643c49743469964103aa59f7f708d862c3ddb0fc07f851e3b8b"},+ {file = "nvidia_curand_cu12-10.3.5.147-py3-none-win_amd64.whl", hash = "sha256:f307cc191f96efe9e8f05a87096abc20d08845a841889ef78cb06924437f6771"},+]++[[package]]+name = "nvidia-cusolver-cu12"+version = "11.6.1.9"+requires_python = ">=3"+summary = "CUDA solver native runtime libraries"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+dependencies = [+ "nvidia-cublas-cu12",+ "nvidia-cusparse-cu12",+ "nvidia-nvjitlink-cu12",+]+files = [+ {file = "nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_aarch64.whl", hash = "sha256:d338f155f174f90724bbde3758b7ac375a70ce8e706d70b018dd3375545fc84e"},+ {file = "nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_x86_64.whl", hash = "sha256:19e33fa442bcfd085b3086c4ebf7e8debc07cfe01e11513cc6d332fd918ac260"},+ {file = "nvidia_cusolver_cu12-11.6.1.9-py3-none-win_amd64.whl", hash = "sha256:e77314c9d7b694fcebc84f58989f3aa4fb4cb442f12ca1a9bde50f5e8f6d1b9c"},+]++[[package]]+name = "nvidia-cusparse-cu12"+version = "12.3.1.170"+requires_python = ">=3"+summary = "CUSPARSE native runtime libraries"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+dependencies = [+ "nvidia-nvjitlink-cu12",+]+files = [+ {file = "nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_aarch64.whl", hash = "sha256:9d32f62896231ebe0480efd8a7f702e143c98cfaa0e8a76df3386c1ba2b54df3"},+ {file = "nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_x86_64.whl", hash = "sha256:ea4f11a2904e2a8dc4b1833cc1b5181cde564edd0d5cd33e3c168eff2d1863f1"},+ {file = "nvidia_cusparse_cu12-12.3.1.170-py3-none-win_amd64.whl", hash = "sha256:9bc90fb087bc7b4c15641521f31c0371e9a612fc2ba12c338d3ae032e6b6797f"},+]++[[package]]+name = "nvidia-cusparselt-cu12"+version = "0.6.2"+summary = "NVIDIA cuSPARSELt"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+files = [+ {file = "nvidia_cusparselt_cu12-0.6.2-py3-none-manylinux2014_aarch64.whl", hash = "sha256:067a7f6d03ea0d4841c85f0c6f1991c5dda98211f6302cb83a4ab234ee95bef8"},+ {file = "nvidia_cusparselt_cu12-0.6.2-py3-none-manylinux2014_x86_64.whl", hash = "sha256:df2c24502fd76ebafe7457dbc4716b2fec071aabaed4fb7691a201cde03704d9"},+ {file = "nvidia_cusparselt_cu12-0.6.2-py3-none-win_amd64.whl", hash = "sha256:0057c91d230703924c0422feabe4ce768841f9b4b44d28586b6f6d2eb86fbe70"},+]++[[package]]+name = "nvidia-nccl-cu12"+version = "2.21.5"+requires_python = ">=3"+summary = "NVIDIA Collective Communication Library (NCCL) Runtime"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+files = [+ {file = "nvidia_nccl_cu12-2.21.5-py3-none-manylinux2014_x86_64.whl", hash = "sha256:8579076d30a8c24988834445f8d633c697d42397e92ffc3f63fa26766d25e0a0"},+]++[[package]]+name = "nvidia-nvjitlink-cu12"+version = "12.4.127"+requires_python = ">=3"+summary = "Nvidia JIT LTO Library"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+files = [+ {file = "nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:4abe7fef64914ccfa909bc2ba39739670ecc9e820c83ccc7a6ed414122599b83"},+ {file = "nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:06b3b9b25bf3f8af351d664978ca26a16d2c5127dbd53c0497e28d1fb9611d57"},+ {file = "nvidia_nvjitlink_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:fd9020c501d27d135f983c6d3e244b197a7ccad769e34df53a42e276b0e25fa1"},+]++[[package]]+name = "nvidia-nvtx-cu12"+version = "12.4.127"+requires_python = ">=3"+summary = "NVIDIA Tools Extension"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+files = [+ {file = "nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:7959ad635db13edf4fc65c06a6e9f9e55fc2f92596db928d169c0bb031e88ef3"},+ {file = "nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:781e950d9b9f60d8241ccea575b32f5105a5baf4c2351cab5256a24869f12a1a"},+ {file = "nvidia_nvtx_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:641dccaaa1139f3ffb0d3164b4b84f9d253397e38246a4f2f36728b48566d485"},+]++[[package]]+name = "olefile"+version = "0.47"+requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"+summary = "Python package to parse, read and write Microsoft OLE2 files (Structured Storage or Compound Document, Microsoft Office)"+groups = ["default"]+files = [+ {file = "olefile-0.47-py2.py3-none-any.whl", hash = "sha256:543c7da2a7adadf21214938bb79c83ea12b473a4b6ee4ad4bf854e7715e13d1f"},+ {file = "olefile-0.47.zip", hash = "sha256:599383381a0bf3dfbd932ca0ca6515acd174ed48870cbf7fee123d698c192c1c"},+]++[[package]]+name = "ollama"+version = "0.4.7"+requires_python = "<4.0,>=3.8"+summary = "The official Python client for Ollama."+groups = ["default"]+dependencies = [+ "httpx<0.29,>=0.27",+ "pydantic<3.0.0,>=2.9.0",+]+files = [+ {file = "ollama-0.4.7-py3-none-any.whl", hash = "sha256:85505663cca67a83707be5fb3aeff0ea72e67846cea5985529d8eca4366564a1"},+ {file = "ollama-0.4.7.tar.gz", hash = "sha256:891dcbe54f55397d82d289c459de0ea897e103b86a3f1fad0fdb1895922a75ff"},+]++[[package]]+name = "openai"+version = "1.69.0"+requires_python = ">=3.8"+summary = "The official Python library for the openai API"+groups = ["default"]+dependencies = [+ "anyio<5,>=3.5.0",+ "distro<2,>=1.7.0",+ "httpx<1,>=0.23.0",+ "jiter<1,>=0.4.0",+ "pydantic<3,>=1.9.0",+ "sniffio",+ "tqdm>4",+ "typing-extensions<5,>=4.11",+]+files = [+ {file = "openai-1.69.0-py3-none-any.whl", hash = "sha256:73c4b2ddfd050060f8d93c70367189bd891e70a5adb6d69c04c3571f4fea5627"},+ {file = "openai-1.69.0.tar.gz", hash = "sha256:7b8a10a8ff77e1ae827e5e4c8480410af2070fb68bc973d6c994cf8218f1f98d"},+]++[[package]]+name = "orjson"+version = "3.10.16"+requires_python = ">=3.9"+summary = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"+groups = ["default"]+marker = "platform_python_implementation != \"PyPy\""+files = [+ {file = "orjson-3.10.16-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:4cb473b8e79154fa778fb56d2d73763d977be3dcc140587e07dbc545bbfc38f8"},+ {file = "orjson-3.10.16-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:622a8e85eeec1948690409a19ca1c7d9fd8ff116f4861d261e6ae2094fe59a00"},+ {file = "orjson-3.10.16-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c682d852d0ce77613993dc967e90e151899fe2d8e71c20e9be164080f468e370"},+ {file = "orjson-3.10.16-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8c520ae736acd2e32df193bcff73491e64c936f3e44a2916b548da048a48b46b"},+ {file = "orjson-3.10.16-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:134f87c76bfae00f2094d85cfab261b289b76d78c6da8a7a3b3c09d362fd1e06"},+ {file = "orjson-3.10.16-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b59afde79563e2cf37cfe62ee3b71c063fd5546c8e662d7fcfc2a3d5031a5c4c"},+ {file = "orjson-3.10.16-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:113602f8241daaff05d6fad25bd481d54c42d8d72ef4c831bb3ab682a54d9e15"},+ {file = "orjson-3.10.16-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:4fc0077d101f8fab4031e6554fc17b4c2ad8fdbc56ee64a727f3c95b379e31da"},+ {file = "orjson-3.10.16-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:9c6bf6ff180cd69e93f3f50380224218cfab79953a868ea3908430bcfaf9cb5e"},+ {file = "orjson-3.10.16-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:5673eadfa952f95a7cd76418ff189df11b0a9c34b1995dff43a6fdbce5d63bf4"},+ {file = "orjson-3.10.16-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:5fe638a423d852b0ae1e1a79895851696cb0d9fa0946fdbfd5da5072d9bb9551"},+ {file = "orjson-3.10.16-cp310-cp310-win32.whl", hash = "sha256:33af58f479b3c6435ab8f8b57999874b4b40c804c7a36b5cc6b54d8f28e1d3dd"},+ {file = "orjson-3.10.16-cp310-cp310-win_amd64.whl", hash = "sha256:0338356b3f56d71293c583350af26f053017071836b07e064e92819ecf1aa055"},+ {file = "orjson-3.10.16-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:44fcbe1a1884f8bc9e2e863168b0f84230c3d634afe41c678637d2728ea8e739"},+ {file = "orjson-3.10.16-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:78177bf0a9d0192e0b34c3d78bcff7fe21d1b5d84aeb5ebdfe0dbe637b885225"},+ {file = "orjson-3.10.16-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:12824073a010a754bb27330cad21d6e9b98374f497f391b8707752b96f72e741"},+ {file = "orjson-3.10.16-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ddd41007e56284e9867864aa2f29f3136bb1dd19a49ca43c0b4eda22a579cf53"},+ {file = "orjson-3.10.16-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0877c4d35de639645de83666458ca1f12560d9fa7aa9b25d8bb8f52f61627d14"},+ {file = "orjson-3.10.16-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9a09a539e9cc3beead3e7107093b4ac176d015bec64f811afb5965fce077a03c"},+ {file = "orjson-3.10.16-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:31b98bc9b40610fec971d9a4d67bb2ed02eec0a8ae35f8ccd2086320c28526ca"},+ {file = "orjson-3.10.16-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0ce243f5a8739f3a18830bc62dc2e05b69a7545bafd3e3249f86668b2bcd8e50"},+ {file = "orjson-3.10.16-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:64792c0025bae049b3074c6abe0cf06f23c8e9f5a445f4bab31dc5ca23dbf9e1"},+ {file = "orjson-3.10.16-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:ea53f7e68eec718b8e17e942f7ca56c6bd43562eb19db3f22d90d75e13f0431d"},+ {file = "orjson-3.10.16-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:a741ba1a9488c92227711bde8c8c2b63d7d3816883268c808fbeada00400c164"},+ {file = "orjson-3.10.16-cp311-cp311-win32.whl", hash = "sha256:c7ed2c61bb8226384c3fdf1fb01c51b47b03e3f4536c985078cccc2fd19f1619"},+ {file = "orjson-3.10.16-cp311-cp311-win_amd64.whl", hash = "sha256:cd67d8b3e0e56222a2e7b7f7da9031e30ecd1fe251c023340b9f12caca85ab60"},+ {file = "orjson-3.10.16-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:6d3444abbfa71ba21bb042caa4b062535b122248259fdb9deea567969140abca"},+ {file = "orjson-3.10.16-cp312-cp312-macosx_15_0_arm64.whl", hash = "sha256:30245c08d818fdcaa48b7d5b81499b8cae09acabb216fe61ca619876b128e184"},+ {file = "orjson-3.10.16-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a0ba1d0baa71bf7579a4ccdcf503e6f3098ef9542106a0eca82395898c8a500a"},+ {file = "orjson-3.10.16-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:eb0beefa5ef3af8845f3a69ff2a4aa62529b5acec1cfe5f8a6b4141033fd46ef"},+ {file = "orjson-3.10.16-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6daa0e1c9bf2e030e93c98394de94506f2a4d12e1e9dadd7c53d5e44d0f9628e"},+ {file = "orjson-3.10.16-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9da9019afb21e02410ef600e56666652b73eb3e4d213a0ec919ff391a7dd52aa"},+ {file = "orjson-3.10.16-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:daeb3a1ee17b69981d3aae30c3b4e786b0f8c9e6c71f2b48f1aef934f63f38f4"},+ {file = "orjson-3.10.16-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80fed80eaf0e20a31942ae5d0728849862446512769692474be5e6b73123a23b"},+ {file = "orjson-3.10.16-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:73390ed838f03764540a7bdc4071fe0123914c2cc02fb6abf35182d5fd1b7a42"},+ {file = "orjson-3.10.16-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:a22bba012a0c94ec02a7768953020ab0d3e2b884760f859176343a36c01adf87"},+ {file = "orjson-3.10.16-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:5385bbfdbc90ff5b2635b7e6bebf259652db00a92b5e3c45b616df75b9058e88"},+ {file = "orjson-3.10.16-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:02c6279016346e774dd92625d46c6c40db687b8a0d685aadb91e26e46cc33e1e"},+ {file = "orjson-3.10.16-cp312-cp312-win32.whl", hash = "sha256:7ca55097a11426db80f79378e873a8c51f4dde9ffc22de44850f9696b7eb0e8c"},+ {file = "orjson-3.10.16-cp312-cp312-win_amd64.whl", hash = "sha256:86d127efdd3f9bf5f04809b70faca1e6836556ea3cc46e662b44dab3fe71f3d6"},+ {file = "orjson-3.10.16-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:148a97f7de811ba14bc6dbc4a433e0341ffd2cc285065199fb5f6a98013744bd"},+ {file = "orjson-3.10.16-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:1d960c1bf0e734ea36d0adc880076de3846aaec45ffad29b78c7f1b7962516b8"},+ {file = "orjson-3.10.16-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a318cd184d1269f68634464b12871386808dc8b7c27de8565234d25975a7a137"},+ {file = "orjson-3.10.16-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:df23f8df3ef9223d1d6748bea63fca55aae7da30a875700809c500a05975522b"},+ {file = "orjson-3.10.16-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b94dda8dd6d1378f1037d7f3f6b21db769ef911c4567cbaa962bb6dc5021cf90"},+ {file = "orjson-3.10.16-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f12970a26666a8775346003fd94347d03ccb98ab8aa063036818381acf5f523e"},+ {file = "orjson-3.10.16-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:15a1431a245d856bd56e4d29ea0023eb4d2c8f71efe914beb3dee8ab3f0cd7fb"},+ {file = "orjson-3.10.16-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c83655cfc247f399a222567d146524674a7b217af7ef8289c0ff53cfe8db09f0"},+ {file = "orjson-3.10.16-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:fa59ae64cb6ddde8f09bdbf7baf933c4cd05734ad84dcf4e43b887eb24e37652"},+ {file = "orjson-3.10.16-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:ca5426e5aacc2e9507d341bc169d8af9c3cbe88f4cd4c1cf2f87e8564730eb56"},+ {file = "orjson-3.10.16-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:6fd5da4edf98a400946cd3a195680de56f1e7575109b9acb9493331047157430"},+ {file = "orjson-3.10.16-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:980ecc7a53e567169282a5e0ff078393bac78320d44238da4e246d71a4e0e8f5"},+ {file = "orjson-3.10.16-cp313-cp313-win32.whl", hash = "sha256:28f79944dd006ac540a6465ebd5f8f45dfdf0948ff998eac7a908275b4c1add6"},+ {file = "orjson-3.10.16-cp313-cp313-win_amd64.whl", hash = "sha256:fe0a145e96d51971407cb8ba947e63ead2aa915db59d6631a355f5f2150b56b7"},+ {file = "orjson-3.10.16.tar.gz", hash = "sha256:d2aaa5c495e11d17b9b93205f5fa196737ee3202f000aaebf028dc9a73750f10"},+]++[[package]]+name = "packaging"+version = "24.2"+requires_python = ">=3.8"+summary = "Core utilities for Python packages"+groups = ["default", "dev"]+files = [+ {file = "packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759"},+ {file = "packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f"},+]++[[package]]+name = "pathspec"+version = "0.12.1"+requires_python = ">=3.8"+summary = "Utility library for gitignore style pattern matching of file paths."+groups = ["dev"]+files = [+ {file = "pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08"},+ {file = "pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712"},+]++[[package]]+name = "pdfminer-six"+version = "20250327"+requires_python = ">=3.9"+summary = "PDF parser and analyzer"+groups = ["default"]+dependencies = [+ "charset-normalizer>=2.0.0",+ "cryptography>=36.0.0",+]+files = [+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},+]++[[package]]+name = "pdfplumber"+version = "0.11.6"+requires_python = ">=3.8"+summary = "Plumb a PDF for detailed information about each char, rectangle, and line."+groups = ["default"]+dependencies = [+ "Pillow>=9.1",+ "pdfminer-six==20250327",+ "pypdfium2>=4.18.0",+]+files = [+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},+]++[[package]]+name = "pillow"+version = "11.1.0"+requires_python = ">=3.9"+summary = "Python Imaging Library (Fork)"+groups = ["default"]+files = [+ {file = "pillow-11.1.0-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:e1abe69aca89514737465752b4bcaf8016de61b3be1397a8fc260ba33321b3a8"},+ {file = "pillow-11.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c640e5a06869c75994624551f45e5506e4256562ead981cce820d5ab39ae2192"},+ {file = "pillow-11.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a07dba04c5e22824816b2615ad7a7484432d7f540e6fa86af60d2de57b0fcee2"},+ {file = "pillow-11.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e267b0ed063341f3e60acd25c05200df4193e15a4a5807075cd71225a2386e26"},+ {file = "pillow-11.1.0-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:bd165131fd51697e22421d0e467997ad31621b74bfc0b75956608cb2906dda07"},+ {file = "pillow-11.1.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:abc56501c3fd148d60659aae0af6ddc149660469082859fa7b066a298bde9482"},+ {file = "pillow-11.1.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:54ce1c9a16a9561b6d6d8cb30089ab1e5eb66918cb47d457bd996ef34182922e"},+ {file = "pillow-11.1.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:73ddde795ee9b06257dac5ad42fcb07f3b9b813f8c1f7f870f402f4dc54b5269"},+ {file = "pillow-11.1.0-cp310-cp310-win32.whl", hash = "sha256:3a5fe20a7b66e8135d7fd617b13272626a28278d0e578c98720d9ba4b2439d49"},+ {file = "pillow-11.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:b6123aa4a59d75f06e9dd3dac5bf8bc9aa383121bb3dd9a7a612e05eabc9961a"},+ {file = "pillow-11.1.0-cp310-cp310-win_arm64.whl", hash = "sha256:a76da0a31da6fcae4210aa94fd779c65c75786bc9af06289cd1c184451ef7a65"},+ {file = "pillow-11.1.0-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:e06695e0326d05b06833b40b7ef477e475d0b1ba3a6d27da1bb48c23209bf457"},+ {file = "pillow-11.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:96f82000e12f23e4f29346e42702b6ed9a2f2fea34a740dd5ffffcc8c539eb35"},+ {file = "pillow-11.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a3cd561ded2cf2bbae44d4605837221b987c216cff94f49dfeed63488bb228d2"},+ {file = "pillow-11.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f189805c8be5ca5add39e6f899e6ce2ed824e65fb45f3c28cb2841911da19070"},+ {file = "pillow-11.1.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:dd0052e9db3474df30433f83a71b9b23bd9e4ef1de13d92df21a52c0303b8ab6"},+ {file = "pillow-11.1.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:837060a8599b8f5d402e97197d4924f05a2e0d68756998345c829c33186217b1"},+ {file = "pillow-11.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:aa8dd43daa836b9a8128dbe7d923423e5ad86f50a7a14dc688194b7be5c0dea2"},+ {file = "pillow-11.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0a2f91f8a8b367e7a57c6e91cd25af510168091fb89ec5146003e424e1558a96"},+ {file = "pillow-11.1.0-cp311-cp311-win32.whl", hash = "sha256:c12fc111ef090845de2bb15009372175d76ac99969bdf31e2ce9b42e4b8cd88f"},+ {file = "pillow-11.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:fbd43429d0d7ed6533b25fc993861b8fd512c42d04514a0dd6337fb3ccf22761"},+ {file = "pillow-11.1.0-cp311-cp311-win_arm64.whl", hash = "sha256:f7955ecf5609dee9442cbface754f2c6e541d9e6eda87fad7f7a989b0bdb9d71"},+ {file = "pillow-11.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:2062ffb1d36544d42fcaa277b069c88b01bb7298f4efa06731a7fd6cc290b81a"},+ {file = "pillow-11.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a85b653980faad27e88b141348707ceeef8a1186f75ecc600c395dcac19f385b"},+ {file = "pillow-11.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9409c080586d1f683df3f184f20e36fb647f2e0bc3988094d4fd8c9f4eb1b3b3"},+ {file = "pillow-11.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7fdadc077553621911f27ce206ffcbec7d3f8d7b50e0da39f10997e8e2bb7f6a"},+ {file = "pillow-11.1.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:93a18841d09bcdd774dcdc308e4537e1f867b3dec059c131fde0327899734aa1"},+ {file = "pillow-11.1.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:9aa9aeddeed452b2f616ff5507459e7bab436916ccb10961c4a382cd3e03f47f"},+ {file = "pillow-11.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3cdcdb0b896e981678eee140d882b70092dac83ac1cdf6b3a60e2216a73f2b91"},+ {file = "pillow-11.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:36ba10b9cb413e7c7dfa3e189aba252deee0602c86c309799da5a74009ac7a1c"},+ {file = "pillow-11.1.0-cp312-cp312-win32.whl", hash = "sha256:cfd5cd998c2e36a862d0e27b2df63237e67273f2fc78f47445b14e73a810e7e6"},+ {file = "pillow-11.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:a697cd8ba0383bba3d2d3ada02b34ed268cb548b369943cd349007730c92bddf"},+ {file = "pillow-11.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:4dd43a78897793f60766563969442020e90eb7847463eca901e41ba186a7d4a5"},+ {file = "pillow-11.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ae98e14432d458fc3de11a77ccb3ae65ddce70f730e7c76140653048c71bfcbc"},+ {file = "pillow-11.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:cc1331b6d5a6e144aeb5e626f4375f5b7ae9934ba620c0ac6b3e43d5e683a0f0"},+ {file = "pillow-11.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:758e9d4ef15d3560214cddbc97b8ef3ef86ce04d62ddac17ad39ba87e89bd3b1"},+ {file = "pillow-11.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b523466b1a31d0dcef7c5be1f20b942919b62fd6e9a9be199d035509cbefc0ec"},+ {file = "pillow-11.1.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:9044b5e4f7083f209c4e35aa5dd54b1dd5b112b108648f5c902ad586d4f945c5"},+ {file = "pillow-11.1.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:3764d53e09cdedd91bee65c2527815d315c6b90d7b8b79759cc48d7bf5d4f114"},+ {file = "pillow-11.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:31eba6bbdd27dde97b0174ddf0297d7a9c3a507a8a1480e1e60ef914fe23d352"},+ {file = "pillow-11.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:b5d658fbd9f0d6eea113aea286b21d3cd4d3fd978157cbf2447a6035916506d3"},+ {file = "pillow-11.1.0-cp313-cp313-win32.whl", hash = "sha256:f86d3a7a9af5d826744fabf4afd15b9dfef44fe69a98541f666f66fbb8d3fef9"},+ {file = "pillow-11.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:593c5fd6be85da83656b93ffcccc2312d2d149d251e98588b14fbc288fd8909c"},+ {file = "pillow-11.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:11633d58b6ee5733bde153a8dafd25e505ea3d32e261accd388827ee987baf65"},+ {file = "pillow-11.1.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:70ca5ef3b3b1c4a0812b5c63c57c23b63e53bc38e758b37a951e5bc466449861"},+ {file = "pillow-11.1.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:8000376f139d4d38d6851eb149b321a52bb8893a88dae8ee7d95840431977081"},+ {file = "pillow-11.1.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9ee85f0696a17dd28fbcfceb59f9510aa71934b483d1f5601d1030c3c8304f3c"},+ {file = "pillow-11.1.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:dd0e081319328928531df7a0e63621caf67652c8464303fd102141b785ef9547"},+ {file = "pillow-11.1.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:e63e4e5081de46517099dc30abe418122f54531a6ae2ebc8680bcd7096860eab"},+ {file = "pillow-11.1.0-cp313-cp313t-win32.whl", hash = "sha256:dda60aa465b861324e65a78c9f5cf0f4bc713e4309f83bc387be158b077963d9"},+ {file = "pillow-11.1.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ad5db5781c774ab9a9b2c4302bbf0c1014960a0a7be63278d13ae6fdf88126fe"},+ {file = "pillow-11.1.0-cp313-cp313t-win_arm64.whl", hash = "sha256:67cd427c68926108778a9005f2a04adbd5e67c442ed21d95389fe1d595458756"},+ {file = "pillow-11.1.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:8c730dc3a83e5ac137fbc92dfcfe1511ce3b2b5d7578315b63dbbb76f7f51d90"},+ {file = "pillow-11.1.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:7d33d2fae0e8b170b6a6c57400e077412240f6f5bb2a342cf1ee512a787942bb"},+ {file = "pillow-11.1.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a8d65b38173085f24bc07f8b6c505cbb7418009fa1a1fcb111b1f4961814a442"},+ {file = "pillow-11.1.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:015c6e863faa4779251436db398ae75051469f7c903b043a48f078e437656f83"},+ {file = "pillow-11.1.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:d44ff19eea13ae4acdaaab0179fa68c0c6f2f45d66a4d8ec1eda7d6cecbcc15f"},+ {file = "pillow-11.1.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:d3d8da4a631471dfaf94c10c85f5277b1f8e42ac42bade1ac67da4b4a7359b73"},+ {file = "pillow-11.1.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:4637b88343166249fe8aa94e7c4a62a180c4b3898283bb5d3d2fd5fe10d8e4e0"},+ {file = "pillow-11.1.0.tar.gz", hash = "sha256:368da70808b36d73b4b390a8ffac11069f8a5c85f29eff1f1b01bcf3ef5b2a20"},+]++[[package]]+name = "platformdirs"+version = "4.3.7"+requires_python = ">=3.9"+summary = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`."+groups = ["default", "dev"]+files = [+ {file = "platformdirs-4.3.7-py3-none-any.whl", hash = "sha256:a03875334331946f13c549dbd8f4bac7a13a50a895a0eb1e8c6a8ace80d40a94"},+ {file = "platformdirs-4.3.7.tar.gz", hash = "sha256:eb437d586b6a0986388f0d6f74aa0cde27b48d0e3d66843640bfb6bdcdb6e351"},+]++[[package]]+name = "playwright"+version = "1.51.0"+requires_python = ">=3.9"+summary = "A high-level API to automate web browsers"+groups = ["default"]+dependencies = [+ "greenlet<4.0.0,>=3.1.1",+ "pyee<13,>=12",+]+files = [+ {file = "playwright-1.51.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:bcaaa3d5d73bda659bfb9ff2a288b51e85a91bd89eda86eaf8186550973e416a"},+ {file = "playwright-1.51.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:2e0ae6eb44297b24738e1a6d9c580ca4243b4e21b7e65cf936a71492c08dd0d4"},+ {file = "playwright-1.51.0-py3-none-macosx_11_0_universal2.whl", hash = "sha256:ab4c0ff00bded52c946be60734868febc964c8a08a9b448d7c20cb3811c6521c"},+ {file = "playwright-1.51.0-py3-none-manylinux1_x86_64.whl", hash = "sha256:d5c9f67bc6ef49094618991c78a1466c5bac5ed09157660d78b8510b77f92746"},+ {file = "playwright-1.51.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:814e4ec2a1a0d6f6221f075622c06b31ceb2bdc6d622258cfefed900c01569ae"},+ {file = "playwright-1.51.0-py3-none-win32.whl", hash = "sha256:4cef804991867ea27f608b70fa288ee52a57651e22d02ab287f98f8620b9408c"},+ {file = "playwright-1.51.0-py3-none-win_amd64.whl", hash = "sha256:9ece9316c5d383aed1a207f079fc2d552fff92184f0ecf37cc596e912d00a8c3"},+]++[[package]]+name = "pre-commit"+version = "4.2.0"+requires_python = ">=3.9"+summary = "A framework for managing and maintaining multi-language pre-commit hooks."+groups = ["dev"]+dependencies = [+ "cfgv>=2.0.0",+ "identify>=1.0.0",+ "nodeenv>=0.11.1",+ "pyyaml>=5.1",+ "virtualenv>=20.10.0",+]+files = [+ {file = "pre_commit-4.2.0-py2.py3-none-any.whl", hash = "sha256:a009ca7205f1eb497d10b845e52c838a98b6cdd2102a6c8e4540e94ee75c58bd"},+ {file = "pre_commit-4.2.0.tar.gz", hash = "sha256:601283b9757afd87d40c4c4a9b2b5de9637a8ea02eaff7adc2d0fb4e04841146"},+]++[[package]]+name = "primp"+version = "0.14.0"+requires_python = ">=3.8"+summary = "HTTP client that can impersonate web browsers, mimicking their headers and `TLS/JA3/JA4/HTTP2` fingerprints"+groups = ["default"]+files = [+ {file = "primp-0.14.0-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:bd2dfb57feeba21a77a1128b6c6f17856605c4e73edcc05764fb134de4ff014f"},+ {file = "primp-0.14.0-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:31eecb5316f9bd732a7994530b85eb698bf6500d2f6c5c3382dac0353f77084e"},+ {file = "primp-0.14.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:11229e65aa5755fdfb535cc03fd64259a06764ad7c22e650fb3bea51400f1d09"},+ {file = "primp-0.14.0-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:8f56ca2cd63f9ac75b33bf48129b7e79ade29cf280bc253b17b052afb27d2b9e"},+ {file = "primp-0.14.0-cp38-abi3-manylinux_2_34_armv7l.whl", hash = "sha256:3fb204f67a4b58dc53f3452143121317b474437812662ac0149d332a77ecbe1a"},+ {file = "primp-0.14.0-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:b0b21e6a599f580137774623009c7f895afab49d6c3d6c9a28344fd2586ebe8a"},+ {file = "primp-0.14.0-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:6549766ece3c7be19e1c16fa9029d3e50fa73628149d88601fcd964af8b44a8d"},+ {file = "primp-0.14.0-cp38-abi3-win_amd64.whl", hash = "sha256:d3ae1ba954ec8d07abb527ccce7bb36633525c86496950ba0178e44a0ea5c891"},+ {file = "primp-0.14.0.tar.gz", hash = "sha256:b6f23b2b694118a9d0443b3760698b90afb6f867f8447e71972530f48297992e"},+]++[[package]]+name = "propcache"+version = "0.3.1"+requires_python = ">=3.9"+summary = "Accelerated property cache"+groups = ["default"]+files = [+ {file = "propcache-0.3.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:f27785888d2fdd918bc36de8b8739f2d6c791399552333721b58193f68ea3e98"},+ {file = "propcache-0.3.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d4e89cde74154c7b5957f87a355bb9c8ec929c167b59c83d90654ea36aeb6180"},+ {file = "propcache-0.3.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:730178f476ef03d3d4d255f0c9fa186cb1d13fd33ffe89d39f2cda4da90ceb71"},+ {file = "propcache-0.3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:967a8eec513dbe08330f10137eacb427b2ca52118769e82ebcfcab0fba92a649"},+ {file = "propcache-0.3.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5b9145c35cc87313b5fd480144f8078716007656093d23059e8993d3a8fa730f"},+ {file = "propcache-0.3.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9e64e948ab41411958670f1093c0a57acfdc3bee5cf5b935671bbd5313bcf229"},+ {file = "propcache-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:319fa8765bfd6a265e5fa661547556da381e53274bc05094fc9ea50da51bfd46"},+ {file = "propcache-0.3.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c66d8ccbc902ad548312b96ed8d5d266d0d2c6d006fd0f66323e9d8f2dd49be7"},+ {file = "propcache-0.3.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:2d219b0dbabe75e15e581fc1ae796109b07c8ba7d25b9ae8d650da582bed01b0"},+ {file = "propcache-0.3.1-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:cd6a55f65241c551eb53f8cf4d2f4af33512c39da5d9777694e9d9c60872f519"},+ {file = "propcache-0.3.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:9979643ffc69b799d50d3a7b72b5164a2e97e117009d7af6dfdd2ab906cb72cd"},+ {file = "propcache-0.3.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:4cf9e93a81979f1424f1a3d155213dc928f1069d697e4353edb8a5eba67c6259"},+ {file = "propcache-0.3.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:2fce1df66915909ff6c824bbb5eb403d2d15f98f1518e583074671a30fe0c21e"},+ {file = "propcache-0.3.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:4d0dfdd9a2ebc77b869a0b04423591ea8823f791293b527dc1bb896c1d6f1136"},+ {file = "propcache-0.3.1-cp310-cp310-win32.whl", hash = "sha256:1f6cc0ad7b4560e5637eb2c994e97b4fa41ba8226069c9277eb5ea7101845b42"},+ {file = "propcache-0.3.1-cp310-cp310-win_amd64.whl", hash = "sha256:47ef24aa6511e388e9894ec16f0fbf3313a53ee68402bc428744a367ec55b833"},+ {file = "propcache-0.3.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:7f30241577d2fef2602113b70ef7231bf4c69a97e04693bde08ddab913ba0ce5"},+ {file = "propcache-0.3.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:43593c6772aa12abc3af7784bff4a41ffa921608dd38b77cf1dfd7f5c4e71371"},+ {file = "propcache-0.3.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a75801768bbe65499495660b777e018cbe90c7980f07f8aa57d6be79ea6f71da"},+ {file = "propcache-0.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f6f1324db48f001c2ca26a25fa25af60711e09b9aaf4b28488602776f4f9a744"},+ {file = "propcache-0.3.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5cdb0f3e1eb6dfc9965d19734d8f9c481b294b5274337a8cb5cb01b462dcb7e0"},+ {file = "propcache-0.3.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1eb34d90aac9bfbced9a58b266f8946cb5935869ff01b164573a7634d39fbcb5"},+ {file = "propcache-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f35c7070eeec2cdaac6fd3fe245226ed2a6292d3ee8c938e5bb645b434c5f256"},+ {file = "propcache-0.3.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b23c11c2c9e6d4e7300c92e022046ad09b91fd00e36e83c44483df4afa990073"},+ {file = "propcache-0.3.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:3e19ea4ea0bf46179f8a3652ac1426e6dcbaf577ce4b4f65be581e237340420d"},+ {file = "propcache-0.3.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:bd39c92e4c8f6cbf5f08257d6360123af72af9f4da75a690bef50da77362d25f"},+ {file = "propcache-0.3.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:b0313e8b923b3814d1c4a524c93dfecea5f39fa95601f6a9b1ac96cd66f89ea0"},+ {file = "propcache-0.3.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:e861ad82892408487be144906a368ddbe2dc6297074ade2d892341b35c59844a"},+ {file = "propcache-0.3.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:61014615c1274df8da5991a1e5da85a3ccb00c2d4701ac6f3383afd3ca47ab0a"},+ {file = "propcache-0.3.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:71ebe3fe42656a2328ab08933d420df5f3ab121772eef78f2dc63624157f0ed9"},+ {file = "propcache-0.3.1-cp311-cp311-win32.whl", hash = "sha256:58aa11f4ca8b60113d4b8e32d37e7e78bd8af4d1a5b5cb4979ed856a45e62005"},+ {file = "propcache-0.3.1-cp311-cp311-win_amd64.whl", hash = "sha256:9532ea0b26a401264b1365146c440a6d78269ed41f83f23818d4b79497aeabe7"},+ {file = "propcache-0.3.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:f78eb8422acc93d7b69964012ad7048764bb45a54ba7a39bb9e146c72ea29723"},+ {file = "propcache-0.3.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:89498dd49c2f9a026ee057965cdf8192e5ae070ce7d7a7bd4b66a8e257d0c976"},+ {file = "propcache-0.3.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:09400e98545c998d57d10035ff623266927cb784d13dd2b31fd33b8a5316b85b"},+ {file = "propcache-0.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aa8efd8c5adc5a2c9d3b952815ff8f7710cefdcaf5f2c36d26aff51aeca2f12f"},+ {file = "propcache-0.3.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c2fe5c910f6007e716a06d269608d307b4f36e7babee5f36533722660e8c4a70"},+ {file = "propcache-0.3.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a0ab8cf8cdd2194f8ff979a43ab43049b1df0b37aa64ab7eca04ac14429baeb7"},+ {file = "propcache-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:563f9d8c03ad645597b8d010ef4e9eab359faeb11a0a2ac9f7b4bc8c28ebef25"},+ {file = "propcache-0.3.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fb6e0faf8cb6b4beea5d6ed7b5a578254c6d7df54c36ccd3d8b3eb00d6770277"},+ {file = "propcache-0.3.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1c5c7ab7f2bb3f573d1cb921993006ba2d39e8621019dffb1c5bc94cdbae81e8"},+ {file = "propcache-0.3.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:050b571b2e96ec942898f8eb46ea4bfbb19bd5502424747e83badc2d4a99a44e"},+ {file = "propcache-0.3.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:e1c4d24b804b3a87e9350f79e2371a705a188d292fd310e663483af6ee6718ee"},+ {file = "propcache-0.3.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:e4fe2a6d5ce975c117a6bb1e8ccda772d1e7029c1cca1acd209f91d30fa72815"},+ {file = "propcache-0.3.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:feccd282de1f6322f56f6845bf1207a537227812f0a9bf5571df52bb418d79d5"},+ {file = "propcache-0.3.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ec314cde7314d2dd0510c6787326bbffcbdc317ecee6b7401ce218b3099075a7"},+ {file = "propcache-0.3.1-cp312-cp312-win32.whl", hash = "sha256:7d2d5a0028d920738372630870e7d9644ce437142197f8c827194fca404bf03b"},+ {file = "propcache-0.3.1-cp312-cp312-win_amd64.whl", hash = "sha256:88c423efef9d7a59dae0614eaed718449c09a5ac79a5f224a8b9664d603f04a3"},+ {file = "propcache-0.3.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:f1528ec4374617a7a753f90f20e2f551121bb558fcb35926f99e3c42367164b8"},+ {file = "propcache-0.3.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:dc1915ec523b3b494933b5424980831b636fe483d7d543f7afb7b3bf00f0c10f"},+ {file = "propcache-0.3.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a110205022d077da24e60b3df8bcee73971be9575dec5573dd17ae5d81751111"},+ {file = "propcache-0.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d249609e547c04d190e820d0d4c8ca03ed4582bcf8e4e160a6969ddfb57b62e5"},+ {file = "propcache-0.3.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5ced33d827625d0a589e831126ccb4f5c29dfdf6766cac441d23995a65825dcb"},+ {file = "propcache-0.3.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4114c4ada8f3181af20808bedb250da6bae56660e4b8dfd9cd95d4549c0962f7"},+ {file = "propcache-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:975af16f406ce48f1333ec5e912fe11064605d5c5b3f6746969077cc3adeb120"},+ {file = "propcache-0.3.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a34aa3a1abc50740be6ac0ab9d594e274f59960d3ad253cd318af76b996dd654"},+ {file = "propcache-0.3.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:9cec3239c85ed15bfaded997773fdad9fb5662b0a7cbc854a43f291eb183179e"},+ {file = "propcache-0.3.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:05543250deac8e61084234d5fc54f8ebd254e8f2b39a16b1dce48904f45b744b"},+ {file = "propcache-0.3.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:5cb5918253912e088edbf023788de539219718d3b10aef334476b62d2b53de53"},+ {file = "propcache-0.3.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:f3bbecd2f34d0e6d3c543fdb3b15d6b60dd69970c2b4c822379e5ec8f6f621d5"},+ {file = "propcache-0.3.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:aca63103895c7d960a5b9b044a83f544b233c95e0dcff114389d64d762017af7"},+ {file = "propcache-0.3.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5a0a9898fdb99bf11786265468571e628ba60af80dc3f6eb89a3545540c6b0ef"},+ {file = "propcache-0.3.1-cp313-cp313-win32.whl", hash = "sha256:3a02a28095b5e63128bcae98eb59025924f121f048a62393db682f049bf4ac24"},+ {file = "propcache-0.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:813fbb8b6aea2fc9659815e585e548fe706d6f663fa73dff59a1677d4595a037"},+ {file = "propcache-0.3.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:a444192f20f5ce8a5e52761a031b90f5ea6288b1eef42ad4c7e64fef33540b8f"},+ {file = "propcache-0.3.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0fbe94666e62ebe36cd652f5fc012abfbc2342de99b523f8267a678e4dfdee3c"},+ {file = "propcache-0.3.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:f011f104db880f4e2166bcdcf7f58250f7a465bc6b068dc84c824a3d4a5c94dc"},+ {file = "propcache-0.3.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e584b6d388aeb0001d6d5c2bd86b26304adde6d9bb9bfa9c4889805021b96de"},+ {file = "propcache-0.3.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8a17583515a04358b034e241f952f1715243482fc2c2945fd99a1b03a0bd77d6"},+ {file = "propcache-0.3.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5aed8d8308215089c0734a2af4f2e95eeb360660184ad3912686c181e500b2e7"},+ {file = "propcache-0.3.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d8e309ff9a0503ef70dc9a0ebd3e69cf7b3894c9ae2ae81fc10943c37762458"},+ {file = "propcache-0.3.1-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b655032b202028a582d27aeedc2e813299f82cb232f969f87a4fde491a233f11"},+ {file = "propcache-0.3.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9f64d91b751df77931336b5ff7bafbe8845c5770b06630e27acd5dbb71e1931c"},+ {file = "propcache-0.3.1-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:19a06db789a4bd896ee91ebc50d059e23b3639c25d58eb35be3ca1cbe967c3bf"},+ {file = "propcache-0.3.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:bef100c88d8692864651b5f98e871fb090bd65c8a41a1cb0ff2322db39c96c27"},+ {file = "propcache-0.3.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:87380fb1f3089d2a0b8b00f006ed12bd41bd858fabfa7330c954c70f50ed8757"},+ {file = "propcache-0.3.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:e474fc718e73ba5ec5180358aa07f6aded0ff5f2abe700e3115c37d75c947e18"},+ {file = "propcache-0.3.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:17d1c688a443355234f3c031349da69444be052613483f3e4158eef751abcd8a"},+ {file = "propcache-0.3.1-cp313-cp313t-win32.whl", hash = "sha256:359e81a949a7619802eb601d66d37072b79b79c2505e6d3fd8b945538411400d"},+ {file = "propcache-0.3.1-cp313-cp313t-win_amd64.whl", hash = "sha256:e7fb9a84c9abbf2b2683fa3e7b0d7da4d8ecf139a1c635732a8bda29c5214b0e"},+ {file = "propcache-0.3.1-py3-none-any.whl", hash = "sha256:9a8ecf38de50a7f518c21568c80f985e776397b902f1ce0b01f799aba1608b40"},+ {file = "propcache-0.3.1.tar.gz", hash = "sha256:40d980c33765359098837527e18eddefc9a24cea5b45e078a7f3bb5b032c6ecf"},+]++[[package]]+name = "psutil"+version = "7.0.0"+requires_python = ">=3.6"+summary = "Cross-platform lib for process and system monitoring in Python. NOTE: the syntax of this script MUST be kept compatible with Python 2.7."+groups = ["default"]+files = [+ {file = "psutil-7.0.0-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:101d71dc322e3cffd7cea0650b09b3d08b8e7c4109dd6809fe452dfd00e58b25"},+ {file = "psutil-7.0.0-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:39db632f6bb862eeccf56660871433e111b6ea58f2caea825571951d4b6aa3da"},+ {file = "psutil-7.0.0-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1fcee592b4c6f146991ca55919ea3d1f8926497a713ed7faaf8225e174581e91"},+ {file = "psutil-7.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4b1388a4f6875d7e2aff5c4ca1cc16c545ed41dd8bb596cefea80111db353a34"},+ {file = "psutil-7.0.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5f098451abc2828f7dc6b58d44b532b22f2088f4999a937557b603ce72b1993"},+ {file = "psutil-7.0.0-cp37-abi3-win32.whl", hash = "sha256:ba3fcef7523064a6c9da440fc4d6bd07da93ac726b5733c29027d7dc95b39d99"},+ {file = "psutil-7.0.0-cp37-abi3-win_amd64.whl", hash = "sha256:4cf3d4eb1aa9b348dec30105c55cd9b7d4629285735a102beb4441e38db90553"},+ {file = "psutil-7.0.0.tar.gz", hash = "sha256:7be9c3eba38beccb6495ea33afd982a44074b78f28c434a1f51cc07fd315c456"},+]++[[package]]+name = "pycodestyle"+version = "2.12.1"+requires_python = ">=3.8"+summary = "Python style guide checker"+groups = ["dev"]+files = [+ {file = "pycodestyle-2.12.1-py2.py3-none-any.whl", hash = "sha256:46f0fb92069a7c28ab7bb558f05bfc0110dac69a0cd23c61ea0040283a9d78b3"},+ {file = "pycodestyle-2.12.1.tar.gz", hash = "sha256:6838eae08bbce4f6accd5d5572075c63626a15ee3e6f842df996bf62f6d73521"},+]++[[package]]+name = "pycparser"+version = "2.22"+requires_python = ">=3.8"+summary = "C parser in Python"+groups = ["default"]+files = [+ {file = "pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"},+ {file = "pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"},+]++[[package]]+name = "pydantic"+version = "2.11.0"+requires_python = ">=3.9"+summary = "Data validation using Python type hints"+groups = ["default"]+dependencies = [+ "annotated-types>=0.6.0",+ "pydantic-core==2.33.0",+ "typing-extensions>=4.12.2",+ "typing-inspection>=0.4.0",+]+files = [+ {file = "pydantic-2.11.0-py3-none-any.whl", hash = "sha256:d52535bb7aba33c2af820eaefd866f3322daf39319d03374921cd17fbbdf28f9"},+ {file = "pydantic-2.11.0.tar.gz", hash = "sha256:d6a287cd6037dee72f0597229256dfa246c4d61567a250e99f86b7b4626e2f41"},+]++[[package]]+name = "pydantic-core"+version = "2.33.0"+requires_python = ">=3.9"+summary = "Core functionality for Pydantic validation and serialization"+groups = ["default"]+dependencies = [+ "typing-extensions!=4.7.0,>=4.6.0",+]+files = [+ {file = "pydantic_core-2.33.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:71dffba8fe9ddff628c68f3abd845e91b028361d43c5f8e7b3f8b91d7d85413e"},+ {file = "pydantic_core-2.33.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:abaeec1be6ed535a5d7ffc2e6c390083c425832b20efd621562fbb5bff6dc518"},+ {file = "pydantic_core-2.33.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:759871f00e26ad3709efc773ac37b4d571de065f9dfb1778012908bcc36b3a73"},+ {file = "pydantic_core-2.33.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:dcfebee69cd5e1c0b76a17e17e347c84b00acebb8dd8edb22d4a03e88e82a207"},+ {file = "pydantic_core-2.33.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1b1262b912435a501fa04cd213720609e2cefa723a07c92017d18693e69bf00b"},+ {file = "pydantic_core-2.33.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4726f1f3f42d6a25678c67da3f0b10f148f5655813c5aca54b0d1742ba821b8f"},+ {file = "pydantic_core-2.33.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e790954b5093dff1e3a9a2523fddc4e79722d6f07993b4cd5547825c3cbf97b5"},+ {file = "pydantic_core-2.33.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:34e7fb3abe375b5c4e64fab75733d605dda0f59827752debc99c17cb2d5f3276"},+ {file = "pydantic_core-2.33.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:ecb158fb9b9091b515213bed3061eb7deb1d3b4e02327c27a0ea714ff46b0760"},+ {file = "pydantic_core-2.33.0-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:4d9149e7528af8bbd76cc055967e6e04617dcb2a2afdaa3dea899406c5521faa"},+ {file = "pydantic_core-2.33.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:e81a295adccf73477220e15ff79235ca9dcbcee4be459eb9d4ce9a2763b8386c"},+ {file = "pydantic_core-2.33.0-cp310-cp310-win32.whl", hash = "sha256:f22dab23cdbce2005f26a8f0c71698457861f97fc6318c75814a50c75e87d025"},+ {file = "pydantic_core-2.33.0-cp310-cp310-win_amd64.whl", hash = "sha256:9cb2390355ba084c1ad49485d18449b4242da344dea3e0fe10babd1f0db7dcfc"},+ {file = "pydantic_core-2.33.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:a608a75846804271cf9c83e40bbb4dab2ac614d33c6fd5b0c6187f53f5c593ef"},+ {file = "pydantic_core-2.33.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e1c69aa459f5609dec2fa0652d495353accf3eda5bdb18782bc5a2ae45c9273a"},+ {file = "pydantic_core-2.33.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b9ec80eb5a5f45a2211793f1c4aeddff0c3761d1c70d684965c1807e923a588b"},+ {file = "pydantic_core-2.33.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e925819a98318d17251776bd3d6aa9f3ff77b965762155bdad15d1a9265c4cfd"},+ {file = "pydantic_core-2.33.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5bf68bb859799e9cec3d9dd8323c40c00a254aabb56fe08f907e437005932f2b"},+ {file = "pydantic_core-2.33.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1b2ea72dea0825949a045fa4071f6d5b3d7620d2a208335207793cf29c5a182d"},+ {file = "pydantic_core-2.33.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1583539533160186ac546b49f5cde9ffc928062c96920f58bd95de32ffd7bffd"},+ {file = "pydantic_core-2.33.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:23c3e77bf8a7317612e5c26a3b084c7edeb9552d645742a54a5867635b4f2453"},+ {file = "pydantic_core-2.33.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:a7a7f2a3f628d2f7ef11cb6188bcf0b9e1558151d511b974dfea10a49afe192b"},+ {file = "pydantic_core-2.33.0-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:f1fb026c575e16f673c61c7b86144517705865173f3d0907040ac30c4f9f5915"},+ {file = "pydantic_core-2.33.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:635702b2fed997e0ac256b2cfbdb4dd0bf7c56b5d8fba8ef03489c03b3eb40e2"},+ {file = "pydantic_core-2.33.0-cp311-cp311-win32.whl", hash = "sha256:07b4ced28fccae3f00626eaa0c4001aa9ec140a29501770a88dbbb0966019a86"},+ {file = "pydantic_core-2.33.0-cp311-cp311-win_amd64.whl", hash = "sha256:4927564be53239a87770a5f86bdc272b8d1fbb87ab7783ad70255b4ab01aa25b"},+ {file = "pydantic_core-2.33.0-cp311-cp311-win_arm64.whl", hash = "sha256:69297418ad644d521ea3e1aa2e14a2a422726167e9ad22b89e8f1130d68e1e9a"},+ {file = "pydantic_core-2.33.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:6c32a40712e3662bebe524abe8abb757f2fa2000028d64cc5a1006016c06af43"},+ {file = "pydantic_core-2.33.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8ec86b5baa36f0a0bfb37db86c7d52652f8e8aa076ab745ef7725784183c3fdd"},+ {file = "pydantic_core-2.33.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4deac83a8cc1d09e40683be0bc6d1fa4cde8df0a9bf0cda5693f9b0569ac01b6"},+ {file = "pydantic_core-2.33.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:175ab598fb457a9aee63206a1993874badf3ed9a456e0654273e56f00747bbd6"},+ {file = "pydantic_core-2.33.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5f36afd0d56a6c42cf4e8465b6441cf546ed69d3a4ec92724cc9c8c61bd6ecf4"},+ {file = "pydantic_core-2.33.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0a98257451164666afafc7cbf5fb00d613e33f7e7ebb322fbcd99345695a9a61"},+ {file = "pydantic_core-2.33.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ecc6d02d69b54a2eb83ebcc6f29df04957f734bcf309d346b4f83354d8376862"},+ {file = "pydantic_core-2.33.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1a69b7596c6603afd049ce7f3835bcf57dd3892fc7279f0ddf987bebed8caa5a"},+ {file = "pydantic_core-2.33.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:ea30239c148b6ef41364c6f51d103c2988965b643d62e10b233b5efdca8c0099"},+ {file = "pydantic_core-2.33.0-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:abfa44cf2f7f7d7a199be6c6ec141c9024063205545aa09304349781b9a125e6"},+ {file = "pydantic_core-2.33.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:20d4275f3c4659d92048c70797e5fdc396c6e4446caf517ba5cad2db60cd39d3"},+ {file = "pydantic_core-2.33.0-cp312-cp312-win32.whl", hash = "sha256:918f2013d7eadea1d88d1a35fd4a1e16aaf90343eb446f91cb091ce7f9b431a2"},+ {file = "pydantic_core-2.33.0-cp312-cp312-win_amd64.whl", hash = "sha256:aec79acc183865bad120b0190afac467c20b15289050648b876b07777e67ea48"},+ {file = "pydantic_core-2.33.0-cp312-cp312-win_arm64.whl", hash = "sha256:5461934e895968655225dfa8b3be79e7e927e95d4bd6c2d40edd2fa7052e71b6"},+ {file = "pydantic_core-2.33.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:f00e8b59e1fc8f09d05594aa7d2b726f1b277ca6155fc84c0396db1b373c4555"},+ {file = "pydantic_core-2.33.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1a73be93ecef45786d7d95b0c5e9b294faf35629d03d5b145b09b81258c7cd6d"},+ {file = "pydantic_core-2.33.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ff48a55be9da6930254565ff5238d71d5e9cd8c5487a191cb85df3bdb8c77365"},+ {file = "pydantic_core-2.33.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:26a4ea04195638dcd8c53dadb545d70badba51735b1594810e9768c2c0b4a5da"},+ {file = "pydantic_core-2.33.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:41d698dcbe12b60661f0632b543dbb119e6ba088103b364ff65e951610cb7ce0"},+ {file = "pydantic_core-2.33.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ae62032ef513fe6281ef0009e30838a01057b832dc265da32c10469622613885"},+ {file = "pydantic_core-2.33.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f225f3a3995dbbc26affc191d0443c6c4aa71b83358fd4c2b7d63e2f6f0336f9"},+ {file = "pydantic_core-2.33.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5bdd36b362f419c78d09630cbaebc64913f66f62bda6d42d5fbb08da8cc4f181"},+ {file = "pydantic_core-2.33.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:2a0147c0bef783fd9abc9f016d66edb6cac466dc54a17ec5f5ada08ff65caf5d"},+ {file = "pydantic_core-2.33.0-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:c860773a0f205926172c6644c394e02c25421dc9a456deff16f64c0e299487d3"},+ {file = "pydantic_core-2.33.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:138d31e3f90087f42aa6286fb640f3c7a8eb7bdae829418265e7e7474bd2574b"},+ {file = "pydantic_core-2.33.0-cp313-cp313-win32.whl", hash = "sha256:d20cbb9d3e95114325780f3cfe990f3ecae24de7a2d75f978783878cce2ad585"},+ {file = "pydantic_core-2.33.0-cp313-cp313-win_amd64.whl", hash = "sha256:ca1103d70306489e3d006b0f79db8ca5dd3c977f6f13b2c59ff745249431a606"},+ {file = "pydantic_core-2.33.0-cp313-cp313-win_arm64.whl", hash = "sha256:6291797cad239285275558e0a27872da735b05c75d5237bbade8736f80e4c225"},+ {file = "pydantic_core-2.33.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:7b79af799630af263eca9ec87db519426d8c9b3be35016eddad1832bac812d87"},+ {file = "pydantic_core-2.33.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eabf946a4739b5237f4f56d77fa6668263bc466d06a8036c055587c130a46f7b"},+ {file = "pydantic_core-2.33.0-cp313-cp313t-win_amd64.whl", hash = "sha256:8a1d581e8cdbb857b0e0e81df98603376c1a5c34dc5e54039dcc00f043df81e7"},+ {file = "pydantic_core-2.33.0-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:e2762c568596332fdab56b07060c8ab8362c56cf2a339ee54e491cd503612c50"},+ {file = "pydantic_core-2.33.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:5bf637300ff35d4f59c006fff201c510b2b5e745b07125458a5389af3c0dff8c"},+ {file = "pydantic_core-2.33.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:62c151ce3d59ed56ebd7ce9ce5986a409a85db697d25fc232f8e81f195aa39a1"},+ {file = "pydantic_core-2.33.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9ee65f0cc652261744fd07f2c6e6901c914aa6c5ff4dcfaf1136bc394d0dd26b"},+ {file = "pydantic_core-2.33.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:024d136ae44d233e6322027bbf356712b3940bee816e6c948ce4b90f18471b3d"},+ {file = "pydantic_core-2.33.0-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:e37f10f6d4bc67c58fbd727108ae1d8b92b397355e68519f1e4a7babb1473442"},+ {file = "pydantic_core-2.33.0-pp310-pypy310_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:502ed542e0d958bd12e7c3e9a015bce57deaf50eaa8c2e1c439b512cb9db1e3a"},+ {file = "pydantic_core-2.33.0-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:715c62af74c236bf386825c0fdfa08d092ab0f191eb5b4580d11c3189af9d330"},+ {file = "pydantic_core-2.33.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:bccc06fa0372151f37f6b69834181aa9eb57cf8665ed36405fb45fbf6cac3bae"},+ {file = "pydantic_core-2.33.0-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:5d8dc9f63a26f7259b57f46a7aab5af86b2ad6fbe48487500bb1f4b27e051e4c"},+ {file = "pydantic_core-2.33.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:30369e54d6d0113d2aa5aee7a90d17f225c13d87902ace8fcd7bbf99b19124db"},+ {file = "pydantic_core-2.33.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f3eb479354c62067afa62f53bb387827bee2f75c9c79ef25eef6ab84d4b1ae3b"},+ {file = "pydantic_core-2.33.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0310524c833d91403c960b8a3cf9f46c282eadd6afd276c8c5edc617bd705dc9"},+ {file = "pydantic_core-2.33.0-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:eddb18a00bbb855325db27b4c2a89a4ba491cd6a0bd6d852b225172a1f54b36c"},+ {file = "pydantic_core-2.33.0-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:ade5dbcf8d9ef8f4b28e682d0b29f3008df9842bb5ac48ac2c17bc55771cc976"},+ {file = "pydantic_core-2.33.0-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:2c0afd34f928383e3fd25740f2050dbac9d077e7ba5adbaa2227f4d4f3c8da5c"},+ {file = "pydantic_core-2.33.0-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:7da333f21cd9df51d5731513a6d39319892947604924ddf2e24a4612975fb936"},+ {file = "pydantic_core-2.33.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:4b6d77c75a57f041c5ee915ff0b0bb58eabb78728b69ed967bc5b780e8f701b8"},+ {file = "pydantic_core-2.33.0.tar.gz", hash = "sha256:40eb8af662ba409c3cbf4a8150ad32ae73514cd7cb1f1a2113af39763dd616b3"},+]++[[package]]+name = "pydantic-settings"+version = "2.8.1"+requires_python = ">=3.8"+summary = "Settings management using Pydantic"+groups = ["default"]+dependencies = [+ "pydantic>=2.7.0",+ "python-dotenv>=0.21.0",+]+files = [+ {file = "pydantic_settings-2.8.1-py3-none-any.whl", hash = "sha256:81942d5ac3d905f7f3ee1a70df5dfb62d5569c12f51a5a647defc1c3d9ee2e9c"},+ {file = "pydantic_settings-2.8.1.tar.gz", hash = "sha256:d5c663dfbe9db9d5e1c646b2e161da12f0d734d422ee56f567d0ea2cee4e8585"},+]++[[package]]+name = "pyee"+version = "12.1.1"+requires_python = ">=3.8"+summary = "A rough port of Node.js's EventEmitter to Python with a few tricks of its own"+groups = ["default"]+dependencies = [+ "typing-extensions",+]+files = [+ {file = "pyee-12.1.1-py3-none-any.whl", hash = "sha256:18a19c650556bb6b32b406d7f017c8f513aceed1ef7ca618fb65de7bd2d347ef"},+ {file = "pyee-12.1.1.tar.gz", hash = "sha256:bbc33c09e2ff827f74191e3e5bbc6be7da02f627b7ec30d86f5ce1a6fb2424a3"},+]++[[package]]+name = "pyflakes"+version = "3.2.0"+requires_python = ">=3.8"+summary = "passive checker of Python programs"+groups = ["dev"]+files = [+ {file = "pyflakes-3.2.0-py2.py3-none-any.whl", hash = "sha256:84b5be138a2dfbb40689ca07e2152deb896a65c3a3e24c251c5c62489568074a"},+ {file = "pyflakes-3.2.0.tar.gz", hash = "sha256:1c61603ff154621fb2a9172037d84dca3500def8c8b630657d1701f026f8af3f"},+]++[[package]]+name = "pypdf"+version = "5.4.0"+requires_python = ">=3.8"+summary = "A pure-python PDF library capable of splitting, merging, cropping, and transforming PDF files"+groups = ["default"]+dependencies = [+ "typing-extensions>=4.0; python_version < \"3.11\"",+]+files = [+ {file = "pypdf-5.4.0-py3-none-any.whl", hash = "sha256:db994ab47cadc81057ea1591b90e5b543e2b7ef2d0e31ef41a9bfe763c119dab"},+ {file = "pypdf-5.4.0.tar.gz", hash = "sha256:9af476a9dc30fcb137659b0dec747ea94aa954933c52cf02ee33e39a16fe9175"},+]++[[package]]+name = "pypdfium2"+version = "4.30.1"+requires_python = ">=3.6"+summary = "Python bindings to PDFium"+groups = ["default"]+files = [+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},+]++[[package]]+name = "python-dateutil"+version = "2.9.0.post0"+requires_python = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"+summary = "Extensions to the standard Python datetime module"+groups = ["default"]+dependencies = [+ "six>=1.5",+]+files = [+ {file = "python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3"},+ {file = "python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427"},+]++[[package]]+name = "python-dotenv"+version = "1.1.0"+requires_python = ">=3.9"+summary = "Read key-value pairs from a .env file and set them as environment variables"+groups = ["default"]+files = [+ {file = "python_dotenv-1.1.0-py3-none-any.whl", hash = "sha256:d7c01d9e2293916c18baf562d95698754b0dbbb5e74d457c45d4f6561fb9d55d"},+ {file = "python_dotenv-1.1.0.tar.gz", hash = "sha256:41f90bc6f5f177fb41f53e87666db362025010eb28f60a01c9143bfa33a2b2d5"},+]++[[package]]+name = "python-engineio"+version = "4.11.2"+requires_python = ">=3.6"+summary = "Engine.IO server and client for Python"+groups = ["default"]+dependencies = [+ "simple-websocket>=0.10.0",+]+files = [+ {file = "python_engineio-4.11.2-py3-none-any.whl", hash = "sha256:f0971ac4c65accc489154fe12efd88f53ca8caf04754c46a66e85f5102ef22ad"},+ {file = "python_engineio-4.11.2.tar.gz", hash = "sha256:145bb0daceb904b4bb2d3eb2d93f7dbb7bb87a6a0c4f20a94cc8654dec977129"},+]++[[package]]+name = "python-iso639"+version = "2025.2.18"+requires_python = ">=3.9"+summary = "ISO 639 language codes, names, and other associated information"+groups = ["default"]+files = [+ {file = "python_iso639-2025.2.18-py3-none-any.whl", hash = "sha256:b2d471c37483a26f19248458b20e7bd96492e15368b01053b540126bcc23152f"},+ {file = "python_iso639-2025.2.18.tar.gz", hash = "sha256:34e31e8e76eb3fc839629e257b12bcfd957c6edcbd486bbf66ba5185d1f566e8"},+]++[[package]]+name = "python-magic"+version = "0.4.27"+requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"+summary = "File type identification using libmagic"+groups = ["default"]+files = [+ {file = "python-magic-0.4.27.tar.gz", hash = "sha256:c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b"},+ {file = "python_magic-0.4.27-py2.py3-none-any.whl", hash = "sha256:c212960ad306f700aa0d01e5d7a325d20548ff97eb9920dcd29513174f0294d3"},+]++[[package]]+name = "python-oxmsg"+version = "0.0.2"+requires_python = ">=3.9"+summary = "Extract attachments from Outlook .msg files."+groups = ["default"]+dependencies = [+ "click",+ "olefile",+ "typing-extensions>=4.9.0",+]+files = [+ {file = "python_oxmsg-0.0.2-py3-none-any.whl", hash = "sha256:22be29b14c46016bcd05e34abddfd8e05ee82082f53b82753d115da3fc7d0355"},+ {file = "python_oxmsg-0.0.2.tar.gz", hash = "sha256:a6aff4deb1b5975d44d49dab1d9384089ffeec819e19c6940bc7ffbc84775fad"},+]++[[package]]+name = "python-socketio"+version = "5.12.1"+requires_python = ">=3.8"+summary = "Socket.IO server and client for Python"+groups = ["default"]+dependencies = [+ "bidict>=0.21.0",+ "python-engineio>=4.11.0",+]+files = [+ {file = "python_socketio-5.12.1-py3-none-any.whl", hash = "sha256:24a0ea7cfff0e021eb28c68edbf7914ee4111bdf030b95e4d250c4dc9af7a386"},+ {file = "python_socketio-5.12.1.tar.gz", hash = "sha256:0299ff1f470b676c09c1bfab1dead25405077d227b2c13cf217a34dadc68ba9c"},+]++[[package]]+name = "pyyaml"+version = "6.0.2"+requires_python = ">=3.8"+summary = "YAML parser and emitter for Python"+groups = ["default", "dev"]+files = [+ {file = "PyYAML-6.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0a9a2848a5b7feac301353437eb7d5957887edbf81d56e903999a75a3d743086"},+ {file = "PyYAML-6.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:29717114e51c84ddfba879543fb232a6ed60086602313ca38cce623c1d62cfbf"},+ {file = "PyYAML-6.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8824b5a04a04a047e72eea5cec3bc266db09e35de6bdfe34c9436ac5ee27d237"},+ {file = "PyYAML-6.0.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7c36280e6fb8385e520936c3cb3b8042851904eba0e58d277dca80a5cfed590b"},+ {file = "PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec031d5d2feb36d1d1a24380e4db6d43695f3748343d99434e6f5f9156aaa2ed"},+ {file = "PyYAML-6.0.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:936d68689298c36b53b29f23c6dbb74de12b4ac12ca6cfe0e047bedceea56180"},+ {file = "PyYAML-6.0.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:23502f431948090f597378482b4812b0caae32c22213aecf3b55325e049a6c68"},+ {file = "PyYAML-6.0.2-cp310-cp310-win32.whl", hash = "sha256:2e99c6826ffa974fe6e27cdb5ed0021786b03fc98e5ee3c5bfe1fd5015f42b99"},+ {file = "PyYAML-6.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:a4d3091415f010369ae4ed1fc6b79def9416358877534caf6a0fdd2146c87a3e"},+ {file = "PyYAML-6.0.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:cc1c1159b3d456576af7a3e4d1ba7e6924cb39de8f67111c735f6fc832082774"},+ {file = "PyYAML-6.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1e2120ef853f59c7419231f3bf4e7021f1b936f6ebd222406c3b60212205d2ee"},+ {file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d225db5a45f21e78dd9358e58a98702a0302f2659a3c6cd320564b75b86f47c"},+ {file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5ac9328ec4831237bec75defaf839f7d4564be1e6b25ac710bd1a96321cc8317"},+ {file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85"},+ {file = "PyYAML-6.0.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ff3824dc5261f50c9b0dfb3be22b4567a6f938ccce4587b38952d85fd9e9afe4"},+ {file = "PyYAML-6.0.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:797b4f722ffa07cc8d62053e4cff1486fa6dc094105d13fea7b1de7d8bf71c9e"},+ {file = "PyYAML-6.0.2-cp311-cp311-win32.whl", hash = "sha256:11d8f3dd2b9c1207dcaf2ee0bbbfd5991f571186ec9cc78427ba5bd32afae4b5"},+ {file = "PyYAML-6.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:e10ce637b18caea04431ce14fabcf5c64a1c61ec9c56b071a4b7ca131ca52d44"},+ {file = "PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c70c95198c015b85feafc136515252a261a84561b7b1d51e3384e0655ddf25ab"},+ {file = "PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ce826d6ef20b1bc864f0a68340c8b3287705cae2f8b4b1d932177dcc76721725"},+ {file = "PyYAML-6.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5"},+ {file = "PyYAML-6.0.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9b22676e8097e9e22e36d6b7bda33190d0d400f345f23d4065d48f4ca7ae0425"},+ {file = "PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476"},+ {file = "PyYAML-6.0.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48"},+ {file = "PyYAML-6.0.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8b9c7197f7cb2738065c481a0461e50ad02f18c78cd75775628afb4d7137fb3b"},+ {file = "PyYAML-6.0.2-cp312-cp312-win32.whl", hash = "sha256:ef6107725bd54b262d6dedcc2af448a266975032bc85ef0172c5f059da6325b4"},+ {file = "PyYAML-6.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:7e7401d0de89a9a855c839bc697c079a4af81cf878373abd7dc625847d25cbd8"},+ {file = "PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba"},+ {file = "PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:50187695423ffe49e2deacb8cd10510bc361faac997de9efef88badc3bb9e2d1"},+ {file = "PyYAML-6.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0ffe8360bab4910ef1b9e87fb812d8bc0a308b0d0eef8c8f44e0254ab3b07133"},+ {file = "PyYAML-6.0.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:17e311b6c678207928d649faa7cb0d7b4c26a0ba73d41e99c4fff6b6c3276484"},+ {file = "PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5"},+ {file = "PyYAML-6.0.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc"},+ {file = "PyYAML-6.0.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652"},+ {file = "PyYAML-6.0.2-cp313-cp313-win32.whl", hash = "sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183"},+ {file = "PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563"},+ {file = "pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e"},+]++[[package]]+name = "rapidfuzz"+version = "3.12.2"+requires_python = ">=3.9"+summary = "rapid fuzzy string matching"+groups = ["default"]+files = [+ {file = "rapidfuzz-3.12.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0b9a75e0385a861178adf59e86d6616cbd0d5adca7228dc9eeabf6f62cf5b0b1"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:6906a7eb458731e3dd2495af1d0410e23a21a2a2b7ced535e6d5cd15cb69afc5"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f4b3334a8958b689f292d5ce8a928140ac98919b51e084f04bf0c14276e4c6ba"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:85a54ce30345cff2c79cbcffa063f270ad1daedd0d0c3ff6e541d3c3ba4288cf"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:acb63c5072c08058f8995404201a52fc4e1ecac105548a4d03c6c6934bda45a3"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5385398d390c6571f0f2a7837e6ddde0c8b912dac096dc8c87208ce9aaaa7570"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5032cbffa245b4beba0067f8ed17392ef2501b346ae3c1f1d14b950edf4b6115"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:195adbb384d89d6c55e2fd71e7fb262010f3196e459aa2f3f45f31dd7185fe72"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:f43b773a4d4950606fb25568ecde5f25280daf8f97b87eb323e16ecd8177b328"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:55a43be0e0fa956a919043c19d19bd988991d15c59f179d413fe5145ed9deb43"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:71cf1ea16acdebe9e2fb62ee7a77f8f70e877bebcbb33b34e660af2eb6d341d9"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:a3692d4ab36d44685f61326dca539975a4eda49b2a76f0a3df177d8a2c0de9d2"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-win32.whl", hash = "sha256:09227bd402caa4397ba1d6e239deea635703b042dd266a4092548661fb22b9c6"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-win_amd64.whl", hash = "sha256:0f05b7b95f9f87254b53fa92048367a8232c26cee7fc8665e4337268c3919def"},+ {file = "rapidfuzz-3.12.2-cp310-cp310-win_arm64.whl", hash = "sha256:6938738e00d9eb6e04097b3f565097e20b0c398f9c58959a2bc64f7f6be3d9da"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e9c4d984621ae17404c58f8d06ed8b025e167e52c0e6a511dfec83c37e9220cd"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:9f9132c55d330f0a1d34ce6730a76805323a6250d97468a1ca766a883d6a9a25"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:39b343b6cb4b2c3dbc8d2d4c5ee915b6088e3b144ddf8305a57eaab16cf9fc74"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:24081077b571ec4ee6d5d7ea0e49bc6830bf05b50c1005028523b9cd356209f3"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c988a4fc91856260355773bf9d32bebab2083d4c6df33fafeddf4330e5ae9139"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:780b4469ee21cf62b1b2e8ada042941fd2525e45d5fb6a6901a9798a0e41153c"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:edd84b0a323885493c893bad16098c5e3b3005d7caa995ae653da07373665d97"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:efa22059c765b3d8778083805b199deaaf643db070f65426f87d274565ddf36a"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:095776b11bb45daf7c2973dd61cc472d7ea7f2eecfa454aef940b4675659b92f"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:7e2574cf4aa86065600b664a1ac7b8b8499107d102ecde836aaaa403fc4f1784"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:d5a3425a6c50fd8fbd991d8f085ddb504791dae6ef9cc3ab299fea2cb5374bef"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:97fb05e1ddb7b71a054040af588b0634214ee87cea87900d309fafc16fd272a4"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-win32.whl", hash = "sha256:b4c5a0413589aef936892fbfa94b7ff6f7dd09edf19b5a7b83896cc9d4e8c184"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-win_amd64.whl", hash = "sha256:58d9ae5cf9246d102db2a2558b67fe7e73c533e5d769099747921232d88b9be2"},+ {file = "rapidfuzz-3.12.2-cp311-cp311-win_arm64.whl", hash = "sha256:7635fe34246cd241c8e35eb83084e978b01b83d5ef7e5bf72a704c637f270017"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:1d982a651253ffe8434d9934ff0c1089111d60502228464721a2a4587435e159"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:02e6466caa0222d5233b1f05640873671cd99549a5c5ba4c29151634a1e56080"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e956b3f053e474abae69ac693a52742109d860ac2375fe88e9387d3277f4c96c"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2dee7d740a2d5418d4f964f39ab8d89923e6b945850db833e798a1969b19542a"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a057cdb0401e42c84b6516c9b1635f7aedd5e430c6e388bd5f6bcd1d6a0686bb"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:dccf8d4fb5b86d39c581a59463c596b1d09df976da26ff04ae219604223d502f"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:21d5b3793c6f5aecca595cd24164bf9d3c559e315ec684f912146fc4e769e367"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:46a616c0e13cff2de1761b011e0b14bb73b110182f009223f1453d505c9a975c"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:19fa5bc4301a1ee55400d4a38a8ecf9522b0391fc31e6da5f4d68513fe5c0026"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:544a47190a0d25971658a9365dba7095397b4ce3e897f7dd0a77ca2cf6fa984e"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:f21af27c5e001f0ba1b88c36a0936437dfe034c452548d998891c21125eb640f"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b63170d9db00629b5b3f2862114d8d6ee19127eaba0eee43762d62a25817dbe0"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-win32.whl", hash = "sha256:6c7152d77b2eb6bfac7baa11f2a9c45fd5a2d848dbb310acd0953b3b789d95c9"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-win_amd64.whl", hash = "sha256:1a314d170ee272ac87579f25a6cf8d16a031e1f7a7b07663434b41a1473bc501"},+ {file = "rapidfuzz-3.12.2-cp312-cp312-win_arm64.whl", hash = "sha256:d41e8231326e94fd07c4d8f424f6bed08fead6f5e6688d1e6e787f1443ae7631"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:941f31038dba5d3dedcfcceba81d61570ad457c873a24ceb13f4f44fcb574260"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:fe2dfc454ee51ba168a67b1e92b72aad251e45a074972cef13340bbad2fd9438"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:78fafaf7f5a48ee35ccd7928339080a0136e27cf97396de45259eca1d331b714"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e0c7989ff32c077bb8fd53253fd6ca569d1bfebc80b17557e60750e6909ba4fe"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:96fa00bc105caa34b6cd93dca14a29243a3a7f0c336e4dcd36348d38511e15ac"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bccfb30c668620c5bc3490f2dc7d7da1cca0ead5a9da8b755e2e02e2ef0dff14"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2f9b0adc3d894beb51f5022f64717b6114a6fabaca83d77e93ac7675911c8cc5"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:32691aa59577f42864d5535cb6225d0f47e2c7bff59cf4556e5171e96af68cc1"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:758b10380ad34c1f51753a070d7bb278001b5e6fcf544121c6df93170952d705"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:50a9c54c0147b468363119132d514c5024fbad1ed8af12bd8bd411b0119f9208"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:e3ceb87c11d2d0fbe8559bb795b0c0604b84cfc8bb7b8720b5c16e9e31e00f41"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:f7c9a003002434889255ff5676ca0f8934a478065ab5e702f75dc42639505bba"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-win32.whl", hash = "sha256:cf165a76870cd875567941cf861dfd361a0a6e6a56b936c5d30042ddc9def090"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-win_amd64.whl", hash = "sha256:55bcc003541f5f16ec0a73bf6de758161973f9e8d75161954380738dd147f9f2"},+ {file = "rapidfuzz-3.12.2-cp313-cp313-win_arm64.whl", hash = "sha256:69f6ecdf1452139f2b947d0c169a605de578efdb72cbb2373cb0a94edca1fd34"},+ {file = "rapidfuzz-3.12.2-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:e5fd3ce849b27d063755829cda27a9dab6dbd63be3801f2a40c60ec563a4c90f"},+ {file = "rapidfuzz-3.12.2-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:54e53662d71ed660c83c5109127c8e30b9e607884b7c45d2aff7929bbbd00589"},+ {file = "rapidfuzz-3.12.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2b9e43cf2213e524f3309d329f1ad8dbf658db004ed44f6ae1cd2919aa997da5"},+ {file = "rapidfuzz-3.12.2-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:29ca445e320e5a8df3bd1d75b4fa4ecfa7c681942b9ac65b55168070a1a1960e"},+ {file = "rapidfuzz-3.12.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:83eb7ef732c2f8533c6b5fbe69858a722c218acc3e1fc190ab6924a8af7e7e0e"},+ {file = "rapidfuzz-3.12.2-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:648adc2dd2cf873efc23befcc6e75754e204a409dfa77efd0fea30d08f22ef9d"},+ {file = "rapidfuzz-3.12.2-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:9b1e6f48e1ffa0749261ee23a1c6462bdd0be5eac83093f4711de17a42ae78ad"},+ {file = "rapidfuzz-3.12.2-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:1ae9ded463f2ca4ba1eb762913c5f14c23d2e120739a62b7f4cc102eab32dc90"},+ {file = "rapidfuzz-3.12.2-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dda45f47b559be72ecbce45c7f71dc7c97b9772630ab0f3286d97d2c3025ab71"},+ {file = "rapidfuzz-3.12.2-pp311-pypy311_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b3745c6443890265513a3c8777f2de4cb897aeb906a406f97741019be8ad5bcc"},+ {file = "rapidfuzz-3.12.2-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:36d3ef4f047ed1bc96fa29289f9e67a637ddca5e4f4d3dc7cb7f50eb33ec1664"},+ {file = "rapidfuzz-3.12.2-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:54bb69ebe5ca0bd7527357e348f16a4c0c52fe0c2fcc8a041010467dcb8385f7"},+ {file = "rapidfuzz-3.12.2.tar.gz", hash = "sha256:b0ba1ccc22fff782e7152a3d3d0caca44ec4e32dc48ba01c560b8593965b5aa3"},+]++[[package]]+name = "regex"+version = "2024.11.6"+requires_python = ">=3.8"+summary = "Alternative regular expression module, to replace re."+groups = ["default"]+files = [+ {file = "regex-2024.11.6-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:ff590880083d60acc0433f9c3f713c51f7ac6ebb9adf889c79a261ecf541aa91"},+ {file = "regex-2024.11.6-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:658f90550f38270639e83ce492f27d2c8d2cd63805c65a13a14d36ca126753f0"},+ {file = "regex-2024.11.6-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:164d8b7b3b4bcb2068b97428060b2a53be050085ef94eca7f240e7947f1b080e"},+ {file = "regex-2024.11.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d3660c82f209655a06b587d55e723f0b813d3a7db2e32e5e7dc64ac2a9e86fde"},+ {file = "regex-2024.11.6-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d22326fcdef5e08c154280b71163ced384b428343ae16a5ab2b3354aed12436e"},+ {file = "regex-2024.11.6-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f1ac758ef6aebfc8943560194e9fd0fa18bcb34d89fd8bd2af18183afd8da3a2"},+ {file = "regex-2024.11.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:997d6a487ff00807ba810e0f8332c18b4eb8d29463cfb7c820dc4b6e7562d0cf"},+ {file = "regex-2024.11.6-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:02a02d2bb04fec86ad61f3ea7f49c015a0681bf76abb9857f945d26159d2968c"},+ {file = "regex-2024.11.6-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f02f93b92358ee3f78660e43b4b0091229260c5d5c408d17d60bf26b6c900e86"},+ {file = "regex-2024.11.6-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:06eb1be98df10e81ebaded73fcd51989dcf534e3c753466e4b60c4697a003b67"},+ {file = "regex-2024.11.6-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:040df6fe1a5504eb0f04f048e6d09cd7c7110fef851d7c567a6b6e09942feb7d"},+ {file = "regex-2024.11.6-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:fdabbfc59f2c6edba2a6622c647b716e34e8e3867e0ab975412c5c2f79b82da2"},+ {file = "regex-2024.11.6-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:8447d2d39b5abe381419319f942de20b7ecd60ce86f16a23b0698f22e1b70008"},+ {file = "regex-2024.11.6-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:da8f5fc57d1933de22a9e23eec290a0d8a5927a5370d24bda9a6abe50683fe62"},+ {file = "regex-2024.11.6-cp310-cp310-win32.whl", hash = "sha256:b489578720afb782f6ccf2840920f3a32e31ba28a4b162e13900c3e6bd3f930e"},+ {file = "regex-2024.11.6-cp310-cp310-win_amd64.whl", hash = "sha256:5071b2093e793357c9d8b2929dfc13ac5f0a6c650559503bb81189d0a3814519"},+ {file = "regex-2024.11.6-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:5478c6962ad548b54a591778e93cd7c456a7a29f8eca9c49e4f9a806dcc5d638"},+ {file = "regex-2024.11.6-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2c89a8cc122b25ce6945f0423dc1352cb9593c68abd19223eebbd4e56612c5b7"},+ {file = "regex-2024.11.6-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:94d87b689cdd831934fa3ce16cc15cd65748e6d689f5d2b8f4f4df2065c9fa20"},+ {file = "regex-2024.11.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1062b39a0a2b75a9c694f7a08e7183a80c63c0d62b301418ffd9c35f55aaa114"},+ {file = "regex-2024.11.6-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:167ed4852351d8a750da48712c3930b031f6efdaa0f22fa1933716bfcd6bf4a3"},+ {file = "regex-2024.11.6-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2d548dafee61f06ebdb584080621f3e0c23fff312f0de1afc776e2a2ba99a74f"},+ {file = "regex-2024.11.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f2a19f302cd1ce5dd01a9099aaa19cae6173306d1302a43b627f62e21cf18ac0"},+ {file = "regex-2024.11.6-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bec9931dfb61ddd8ef2ebc05646293812cb6b16b60cf7c9511a832b6f1854b55"},+ {file = "regex-2024.11.6-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:9714398225f299aa85267fd222f7142fcb5c769e73d7733344efc46f2ef5cf89"},+ {file = "regex-2024.11.6-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:202eb32e89f60fc147a41e55cb086db2a3f8cb82f9a9a88440dcfc5d37faae8d"},+ {file = "regex-2024.11.6-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:4181b814e56078e9b00427ca358ec44333765f5ca1b45597ec7446d3a1ef6e34"},+ {file = "regex-2024.11.6-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:068376da5a7e4da51968ce4c122a7cd31afaaec4fccc7856c92f63876e57b51d"},+ {file = "regex-2024.11.6-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ac10f2c4184420d881a3475fb2c6f4d95d53a8d50209a2500723d831036f7c45"},+ {file = "regex-2024.11.6-cp311-cp311-win32.whl", hash = "sha256:c36f9b6f5f8649bb251a5f3f66564438977b7ef8386a52460ae77e6070d309d9"},+ {file = "regex-2024.11.6-cp311-cp311-win_amd64.whl", hash = "sha256:02e28184be537f0e75c1f9b2f8847dc51e08e6e171c6bde130b2687e0c33cf60"},+ {file = "regex-2024.11.6-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:52fb28f528778f184f870b7cf8f225f5eef0a8f6e3778529bdd40c7b3920796a"},+ {file = "regex-2024.11.6-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:fdd6028445d2460f33136c55eeb1f601ab06d74cb3347132e1c24250187500d9"},+ {file = "regex-2024.11.6-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:805e6b60c54bf766b251e94526ebad60b7de0c70f70a4e6210ee2891acb70bf2"},+ {file = "regex-2024.11.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b85c2530be953a890eaffde05485238f07029600e8f098cdf1848d414a8b45e4"},+ {file = "regex-2024.11.6-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bb26437975da7dc36b7efad18aa9dd4ea569d2357ae6b783bf1118dabd9ea577"},+ {file = "regex-2024.11.6-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:abfa5080c374a76a251ba60683242bc17eeb2c9818d0d30117b4486be10c59d3"},+ {file = "regex-2024.11.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70b7fa6606c2881c1db9479b0eaa11ed5dfa11c8d60a474ff0e095099f39d98e"},+ {file = "regex-2024.11.6-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0c32f75920cf99fe6b6c539c399a4a128452eaf1af27f39bce8909c9a3fd8cbe"},+ {file = "regex-2024.11.6-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:982e6d21414e78e1f51cf595d7f321dcd14de1f2881c5dc6a6e23bbbbd68435e"},+ {file = "regex-2024.11.6-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a7c2155f790e2fb448faed6dd241386719802296ec588a8b9051c1f5c481bc29"},+ {file = "regex-2024.11.6-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:149f5008d286636e48cd0b1dd65018548944e495b0265b45e1bffecce1ef7f39"},+ {file = "regex-2024.11.6-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:e5364a4502efca094731680e80009632ad6624084aff9a23ce8c8c6820de3e51"},+ {file = "regex-2024.11.6-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0a86e7eeca091c09e021db8eb72d54751e527fa47b8d5787caf96d9831bd02ad"},+ {file = "regex-2024.11.6-cp312-cp312-win32.whl", hash = "sha256:32f9a4c643baad4efa81d549c2aadefaeba12249b2adc5af541759237eee1c54"},+ {file = "regex-2024.11.6-cp312-cp312-win_amd64.whl", hash = "sha256:a93c194e2df18f7d264092dc8539b8ffb86b45b899ab976aa15d48214138e81b"},+ {file = "regex-2024.11.6-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:a6ba92c0bcdf96cbf43a12c717eae4bc98325ca3730f6b130ffa2e3c3c723d84"},+ {file = "regex-2024.11.6-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:525eab0b789891ac3be914d36893bdf972d483fe66551f79d3e27146191a37d4"},+ {file = "regex-2024.11.6-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:086a27a0b4ca227941700e0b31425e7a28ef1ae8e5e05a33826e17e47fbfdba0"},+ {file = "regex-2024.11.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bde01f35767c4a7899b7eb6e823b125a64de314a8ee9791367c9a34d56af18d0"},+ {file = "regex-2024.11.6-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b583904576650166b3d920d2bcce13971f6f9e9a396c673187f49811b2769dc7"},+ {file = "regex-2024.11.6-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1c4de13f06a0d54fa0d5ab1b7138bfa0d883220965a29616e3ea61b35d5f5fc7"},+ {file = "regex-2024.11.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3cde6e9f2580eb1665965ce9bf17ff4952f34f5b126beb509fee8f4e994f143c"},+ {file = "regex-2024.11.6-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0d7f453dca13f40a02b79636a339c5b62b670141e63efd511d3f8f73fba162b3"},+ {file = "regex-2024.11.6-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:59dfe1ed21aea057a65c6b586afd2a945de04fc7db3de0a6e3ed5397ad491b07"},+ {file = "regex-2024.11.6-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:b97c1e0bd37c5cd7902e65f410779d39eeda155800b65fc4d04cc432efa9bc6e"},+ {file = "regex-2024.11.6-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:f9d1e379028e0fc2ae3654bac3cbbef81bf3fd571272a42d56c24007979bafb6"},+ {file = "regex-2024.11.6-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:13291b39131e2d002a7940fb176e120bec5145f3aeb7621be6534e46251912c4"},+ {file = "regex-2024.11.6-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4f51f88c126370dcec4908576c5a627220da6c09d0bff31cfa89f2523843316d"},+ {file = "regex-2024.11.6-cp313-cp313-win32.whl", hash = "sha256:63b13cfd72e9601125027202cad74995ab26921d8cd935c25f09c630436348ff"},+ {file = "regex-2024.11.6-cp313-cp313-win_amd64.whl", hash = "sha256:2b3361af3198667e99927da8b84c1b010752fa4b1115ee30beaa332cabc3ef1a"},+ {file = "regex-2024.11.6.tar.gz", hash = "sha256:7ab159b063c52a0333c884e4679f8d7a85112ee3078fe3d9004b2dd875585519"},+]++[[package]]+name = "requests"+version = "2.32.3"+requires_python = ">=3.8"+summary = "Python HTTP for Humans."+groups = ["default"]+dependencies = [+ "certifi>=2017.4.17",+ "charset-normalizer<4,>=2",+ "idna<4,>=2.5",+ "urllib3<3,>=1.21.1",+]+files = [+ {file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"},+ {file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"},+]++[[package]]+name = "requests-toolbelt"+version = "1.0.0"+requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"+summary = "A utility belt for advanced users of python-requests"+groups = ["default"]+dependencies = [+ "requests<3.0.0,>=2.0.1",+]+files = [+ {file = "requests-toolbelt-1.0.0.tar.gz", hash = "sha256:7681a0a3d047012b5bdc0ee37d7f8f07ebe76ab08caeccfc3921ce23c88d5bc6"},+ {file = "requests_toolbelt-1.0.0-py2.py3-none-any.whl", hash = "sha256:cccfdd665f0a24fcf4726e690f65639d272bb0637b9b92dfd91a5568ccf6bd06"},+]++[[package]]+name = "safetensors"+version = "0.5.3"+requires_python = ">=3.7"+summary = ""+groups = ["default"]+files = [+ {file = "safetensors-0.5.3-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:bd20eb133db8ed15b40110b7c00c6df51655a2998132193de2f75f72d99c7073"},+ {file = "safetensors-0.5.3-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:21d01c14ff6c415c485616b8b0bf961c46b3b343ca59110d38d744e577f9cce7"},+ {file = "safetensors-0.5.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:11bce6164887cd491ca75c2326a113ba934be596e22b28b1742ce27b1d076467"},+ {file = "safetensors-0.5.3-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4a243be3590bc3301c821da7a18d87224ef35cbd3e5f5727e4e0728b8172411e"},+ {file = "safetensors-0.5.3-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8bd84b12b1670a6f8e50f01e28156422a2bc07fb16fc4e98bded13039d688a0d"},+ {file = "safetensors-0.5.3-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:391ac8cab7c829452175f871fcaf414aa1e292b5448bd02620f675a7f3e7abb9"},+ {file = "safetensors-0.5.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cead1fa41fc54b1e61089fa57452e8834f798cb1dc7a09ba3524f1eb08e0317a"},+ {file = "safetensors-0.5.3-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1077f3e94182d72618357b04b5ced540ceb71c8a813d3319f1aba448e68a770d"},+ {file = "safetensors-0.5.3-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:799021e78287bac619c7b3f3606730a22da4cda27759ddf55d37c8db7511c74b"},+ {file = "safetensors-0.5.3-cp38-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:df26da01aaac504334644e1b7642fa000bfec820e7cef83aeac4e355e03195ff"},+ {file = "safetensors-0.5.3-cp38-abi3-musllinux_1_2_i686.whl", hash = "sha256:32c3ef2d7af8b9f52ff685ed0bc43913cdcde135089ae322ee576de93eae5135"},+ {file = "safetensors-0.5.3-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:37f1521be045e56fc2b54c606d4455573e717b2d887c579ee1dbba5f868ece04"},+ {file = "safetensors-0.5.3-cp38-abi3-win32.whl", hash = "sha256:cfc0ec0846dcf6763b0ed3d1846ff36008c6e7290683b61616c4b040f6a54ace"},+ {file = "safetensors-0.5.3-cp38-abi3-win_amd64.whl", hash = "sha256:836cbbc320b47e80acd40e44c8682db0e8ad7123209f69b093def21ec7cafd11"},+ {file = "safetensors-0.5.3.tar.gz", hash = "sha256:b6b0d6ecacec39a4fdd99cc19f4576f5219ce858e6fd8dbe7609df0b8dc56965"},+]++[[package]]+name = "scikit-learn"+version = "1.6.1"+requires_python = ">=3.9"+summary = "A set of python modules for machine learning and data mining"+groups = ["default"]+dependencies = [+ "joblib>=1.2.0",+ "numpy>=1.19.5",+ "scipy>=1.6.0",+ "threadpoolctl>=3.1.0",+]+files = [+ {file = "scikit_learn-1.6.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d056391530ccd1e501056160e3c9673b4da4805eb67eb2bdf4e983e1f9c9204e"},+ {file = "scikit_learn-1.6.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:0c8d036eb937dbb568c6242fa598d551d88fb4399c0344d95c001980ec1c7d36"},+ {file = "scikit_learn-1.6.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8634c4bd21a2a813e0a7e3900464e6d593162a29dd35d25bdf0103b3fce60ed5"},+ {file = "scikit_learn-1.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:775da975a471c4f6f467725dff0ced5c7ac7bda5e9316b260225b48475279a1b"},+ {file = "scikit_learn-1.6.1-cp310-cp310-win_amd64.whl", hash = "sha256:8a600c31592bd7dab31e1c61b9bbd6dea1b3433e67d264d17ce1017dbdce8002"},+ {file = "scikit_learn-1.6.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:72abc587c75234935e97d09aa4913a82f7b03ee0b74111dcc2881cba3c5a7b33"},+ {file = "scikit_learn-1.6.1-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:b3b00cdc8f1317b5f33191df1386c0befd16625f49d979fe77a8d44cae82410d"},+ {file = "scikit_learn-1.6.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dc4765af3386811c3ca21638f63b9cf5ecf66261cc4815c1db3f1e7dc7b79db2"},+ {file = "scikit_learn-1.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:25fc636bdaf1cc2f4a124a116312d837148b5e10872147bdaf4887926b8c03d8"},+ {file = "scikit_learn-1.6.1-cp311-cp311-win_amd64.whl", hash = "sha256:fa909b1a36e000a03c382aade0bd2063fd5680ff8b8e501660c0f59f021a6415"},+ {file = "scikit_learn-1.6.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:926f207c804104677af4857b2c609940b743d04c4c35ce0ddc8ff4f053cddc1b"},+ {file = "scikit_learn-1.6.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:2c2cae262064e6a9b77eee1c8e768fc46aa0b8338c6a8297b9b6759720ec0ff2"},+ {file = "scikit_learn-1.6.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1061b7c028a8663fb9a1a1baf9317b64a257fcb036dae5c8752b2abef31d136f"},+ {file = "scikit_learn-1.6.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2e69fab4ebfc9c9b580a7a80111b43d214ab06250f8a7ef590a4edf72464dd86"},+ {file = "scikit_learn-1.6.1-cp312-cp312-win_amd64.whl", hash = "sha256:70b1d7e85b1c96383f872a519b3375f92f14731e279a7b4c6cfd650cf5dffc52"},+ {file = "scikit_learn-1.6.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:2ffa1e9e25b3d93990e74a4be2c2fc61ee5af85811562f1288d5d055880c4322"},+ {file = "scikit_learn-1.6.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:dc5cf3d68c5a20ad6d571584c0750ec641cc46aeef1c1507be51300e6003a7e1"},+ {file = "scikit_learn-1.6.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c06beb2e839ecc641366000ca84f3cf6fa9faa1777e29cf0c04be6e4d096a348"},+ {file = "scikit_learn-1.6.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e8ca8cb270fee8f1f76fa9bfd5c3507d60c6438bbee5687f81042e2bb98e5a97"},+ {file = "scikit_learn-1.6.1-cp313-cp313-win_amd64.whl", hash = "sha256:7a1c43c8ec9fde528d664d947dc4c0789be4077a3647f232869f41d9bf50e0fb"},+ {file = "scikit_learn-1.6.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:a17c1dea1d56dcda2fac315712f3651a1fea86565b64b48fa1bc090249cbf236"},+ {file = "scikit_learn-1.6.1-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:6a7aa5f9908f0f28f4edaa6963c0a6183f1911e63a69aa03782f0d924c830a35"},+ {file = "scikit_learn-1.6.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0650e730afb87402baa88afbf31c07b84c98272622aaba002559b614600ca691"},+ {file = "scikit_learn-1.6.1-cp313-cp313t-win_amd64.whl", hash = "sha256:3f59fe08dc03ea158605170eb52b22a105f238a5d512c4470ddeca71feae8e5f"},+ {file = "scikit_learn-1.6.1.tar.gz", hash = "sha256:b4fc2525eca2c69a59260f583c56a7557c6ccdf8deafdba6e060f94c1c59738e"},+]++[[package]]+name = "scipy"+version = "1.15.2"+requires_python = ">=3.10"+summary = "Fundamental algorithms for scientific computing in Python"+groups = ["default"]+dependencies = [+ "numpy<2.5,>=1.23.5",+]+files = [+ {file = "scipy-1.15.2-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:a2ec871edaa863e8213ea5df811cd600734f6400b4af272e1c011e69401218e9"},+ {file = "scipy-1.15.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6f223753c6ea76983af380787611ae1291e3ceb23917393079dcc746ba60cfb5"},+ {file = "scipy-1.15.2-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:ecf797d2d798cf7c838c6d98321061eb3e72a74710e6c40540f0e8087e3b499e"},+ {file = "scipy-1.15.2-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:9b18aa747da280664642997e65aab1dd19d0c3d17068a04b3fe34e2559196cb9"},+ {file = "scipy-1.15.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:87994da02e73549dfecaed9e09a4f9d58a045a053865679aeb8d6d43747d4df3"},+ {file = "scipy-1.15.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:69ea6e56d00977f355c0f84eba69877b6df084516c602d93a33812aa04d90a3d"},+ {file = "scipy-1.15.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:888307125ea0c4466287191e5606a2c910963405ce9671448ff9c81c53f85f58"},+ {file = "scipy-1.15.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:9412f5e408b397ff5641080ed1e798623dbe1ec0d78e72c9eca8992976fa65aa"},+ {file = "scipy-1.15.2-cp310-cp310-win_amd64.whl", hash = "sha256:b5e025e903b4f166ea03b109bb241355b9c42c279ea694d8864d033727205e65"},+ {file = "scipy-1.15.2-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:92233b2df6938147be6fa8824b8136f29a18f016ecde986666be5f4d686a91a4"},+ {file = "scipy-1.15.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:62ca1ff3eb513e09ed17a5736929429189adf16d2d740f44e53270cc800ecff1"},+ {file = "scipy-1.15.2-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:4c6676490ad76d1c2894d77f976144b41bd1a4052107902238047fb6a473e971"},+ {file = "scipy-1.15.2-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:a8bf5cb4a25046ac61d38f8d3c3426ec11ebc350246a4642f2f315fe95bda655"},+ {file = "scipy-1.15.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6a8e34cf4c188b6dd004654f88586d78f95639e48a25dfae9c5e34a6dc34547e"},+ {file = "scipy-1.15.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:28a0d2c2075946346e4408b211240764759e0fabaeb08d871639b5f3b1aca8a0"},+ {file = "scipy-1.15.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:42dabaaa798e987c425ed76062794e93a243be8f0f20fff6e7a89f4d61cb3d40"},+ {file = "scipy-1.15.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:6f5e296ec63c5da6ba6fa0343ea73fd51b8b3e1a300b0a8cae3ed4b1122c7462"},+ {file = "scipy-1.15.2-cp311-cp311-win_amd64.whl", hash = "sha256:597a0c7008b21c035831c39927406c6181bcf8f60a73f36219b69d010aa04737"},+ {file = "scipy-1.15.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c4697a10da8f8765bb7c83e24a470da5797e37041edfd77fd95ba3811a47c4fd"},+ {file = "scipy-1.15.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:869269b767d5ee7ea6991ed7e22b3ca1f22de73ab9a49c44bad338b725603301"},+ {file = "scipy-1.15.2-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:bad78d580270a4d32470563ea86c6590b465cb98f83d760ff5b0990cb5518a93"},+ {file = "scipy-1.15.2-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:b09ae80010f52efddb15551025f9016c910296cf70adbf03ce2a8704f3a5ad20"},+ {file = "scipy-1.15.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5a6fd6eac1ce74a9f77a7fc724080d507c5812d61e72bd5e4c489b042455865e"},+ {file = "scipy-1.15.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2b871df1fe1a3ba85d90e22742b93584f8d2b8e6124f8372ab15c71b73e428b8"},+ {file = "scipy-1.15.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:03205d57a28e18dfd39f0377d5002725bf1f19a46f444108c29bdb246b6c8a11"},+ {file = "scipy-1.15.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:601881dfb761311045b03114c5fe718a12634e5608c3b403737ae463c9885d53"},+ {file = "scipy-1.15.2-cp312-cp312-win_amd64.whl", hash = "sha256:e7c68b6a43259ba0aab737237876e5c2c549a031ddb7abc28c7b47f22e202ded"},+ {file = "scipy-1.15.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:01edfac9f0798ad6b46d9c4c9ca0e0ad23dbf0b1eb70e96adb9fa7f525eff0bf"},+ {file = "scipy-1.15.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:08b57a9336b8e79b305a143c3655cc5bdbe6d5ece3378578888d2afbb51c4e37"},+ {file = "scipy-1.15.2-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:54c462098484e7466362a9f1672d20888f724911a74c22ae35b61f9c5919183d"},+ {file = "scipy-1.15.2-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:cf72ff559a53a6a6d77bd8eefd12a17995ffa44ad86c77a5df96f533d4e6c6bb"},+ {file = "scipy-1.15.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9de9d1416b3d9e7df9923ab23cd2fe714244af10b763975bea9e4f2e81cebd27"},+ {file = "scipy-1.15.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fb530e4794fc8ea76a4a21ccb67dea33e5e0e60f07fc38a49e821e1eae3b71a0"},+ {file = "scipy-1.15.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5ea7ed46d437fc52350b028b1d44e002646e28f3e8ddc714011aaf87330f2f32"},+ {file = "scipy-1.15.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:11e7ad32cf184b74380f43d3c0a706f49358b904fa7d5345f16ddf993609184d"},+ {file = "scipy-1.15.2-cp313-cp313-win_amd64.whl", hash = "sha256:a5080a79dfb9b78b768cebf3c9dcbc7b665c5875793569f48bf0e2b1d7f68f6f"},+ {file = "scipy-1.15.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:447ce30cee6a9d5d1379087c9e474628dab3db4a67484be1b7dc3196bfb2fac9"},+ {file = "scipy-1.15.2-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:c90ebe8aaa4397eaefa8455a8182b164a6cc1d59ad53f79943f266d99f68687f"},+ {file = "scipy-1.15.2-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:def751dd08243934c884a3221156d63e15234a3155cf25978b0a668409d45eb6"},+ {file = "scipy-1.15.2-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:302093e7dfb120e55515936cb55618ee0b895f8bcaf18ff81eca086c17bd80af"},+ {file = "scipy-1.15.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7cd5b77413e1855351cdde594eca99c1f4a588c2d63711388b6a1f1c01f62274"},+ {file = "scipy-1.15.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d0194c37037707b2afa7a2f2a924cf7bac3dc292d51b6a925e5fcb89bc5c776"},+ {file = "scipy-1.15.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:bae43364d600fdc3ac327db99659dcb79e6e7ecd279a75fe1266669d9a652828"},+ {file = "scipy-1.15.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f031846580d9acccd0044efd1a90e6f4df3a6e12b4b6bd694a7bc03a89892b28"},+ {file = "scipy-1.15.2-cp313-cp313t-win_amd64.whl", hash = "sha256:fe8a9eb875d430d81755472c5ba75e84acc980e4a8f6204d402849234d3017db"},+ {file = "scipy-1.15.2.tar.gz", hash = "sha256:cd58a314d92838f7e6f755c8a2167ead4f27e1fd5c1251fd54289569ef3495ec"},+]++[[package]]+name = "sentence-transformers"+version = "4.0.1"+requires_python = ">=3.9"+summary = "Embeddings, Retrieval, and Reranking"+groups = ["default"]+dependencies = [+ "Pillow",+ "huggingface-hub>=0.20.0",+ "scikit-learn",+ "scipy",+ "torch>=1.11.0",+ "tqdm",+ "transformers<5.0.0,>=4.41.0",+ "typing-extensions>=4.5.0",+]+files = [+ {file = "sentence_transformers-4.0.1-py3-none-any.whl", hash = "sha256:bb037b22d2766b94fa60f5c4fb9a876679b2311b509ae266259434d6de0875fd"},+ {file = "sentence_transformers-4.0.1.tar.gz", hash = "sha256:0c0080a08dc5670b17c0c88791d15b06c0fa1a598d26714732760d1832bc7d88"},+]++[[package]]+name = "setuptools"+version = "78.1.0"+requires_python = ">=3.9"+summary = "Easily download, build, install, upgrade, and uninstall Python packages"+groups = ["default"]+marker = "python_version >= \"3.12\""+files = [+ {file = "setuptools-78.1.0-py3-none-any.whl", hash = "sha256:3e386e96793c8702ae83d17b853fb93d3e09ef82ec62722e61da5cd22376dcd8"},+ {file = "setuptools-78.1.0.tar.gz", hash = "sha256:18fd474d4a82a5f83dac888df697af65afa82dec7323d09c3e37d1f14288da54"},+]++[[package]]+name = "sgmllib3k"+version = "1.0.0"+summary = "Py3k port of sgmllib."+groups = ["default"]+files = [+ {file = "sgmllib3k-1.0.0.tar.gz", hash = "sha256:7868fb1c8bfa764c1ac563d3cf369c381d1325d36124933a726f29fcdaa812e9"},+]++[[package]]+name = "simple-websocket"+version = "1.1.0"+requires_python = ">=3.6"+summary = "Simple WebSocket server and client for Python"+groups = ["default"]+dependencies = [+ "wsproto",+]+files = [+ {file = "simple_websocket-1.1.0-py3-none-any.whl", hash = "sha256:4af6069630a38ed6c561010f0e11a5bc0d4ca569b36306eb257cd9a192497c8c"},+ {file = "simple_websocket-1.1.0.tar.gz", hash = "sha256:7939234e7aa067c534abdab3a9ed933ec9ce4691b0713c78acb195560aa52ae4"},+]++[[package]]+name = "six"+version = "1.17.0"+requires_python = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"+summary = "Python 2 and 3 compatibility utilities"+groups = ["default"]+files = [+ {file = "six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274"},+ {file = "six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81"},+]++[[package]]+name = "sniffio"+version = "1.3.1"+requires_python = ">=3.7"+summary = "Sniff out which async library your code is running under"+groups = ["default"]+files = [+ {file = "sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2"},+ {file = "sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc"},+]++[[package]]+name = "soupsieve"+version = "2.6"+requires_python = ">=3.8"+summary = "A modern CSS selector implementation for Beautiful Soup."+groups = ["default"]+files = [+ {file = "soupsieve-2.6-py3-none-any.whl", hash = "sha256:e72c4ff06e4fb6e4b5a9f0f55fe6e81514581fca1515028625d0f299c602ccc9"},+ {file = "soupsieve-2.6.tar.gz", hash = "sha256:e2e68417777af359ec65daac1057404a3c8a5455bb8abc36f1a9866ab1a51abb"},+]++[[package]]+name = "sqlalchemy"+version = "2.0.40"+requires_python = ">=3.7"+summary = "Database Abstraction Library"+groups = ["default"]+dependencies = [+ "greenlet>=1; (platform_machine == \"win32\" or platform_machine == \"WIN32\" or platform_machine == \"AMD64\" or platform_machine == \"amd64\" or platform_machine == \"x86_64\" or platform_machine == \"ppc64le\" or platform_machine == \"aarch64\") and python_version < \"3.14\"",+ "importlib-metadata; python_version < \"3.8\"",+ "typing-extensions>=4.6.0",+]+files = [+ {file = "sqlalchemy-2.0.40-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f1ea21bef99c703f44444ad29c2c1b6bd55d202750b6de8e06a955380f4725d7"},+ {file = "sqlalchemy-2.0.40-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:afe63b208153f3a7a2d1a5b9df452b0673082588933e54e7c8aac457cf35e758"},+ {file = "sqlalchemy-2.0.40-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a8aae085ea549a1eddbc9298b113cffb75e514eadbb542133dd2b99b5fb3b6af"},+ {file = "sqlalchemy-2.0.40-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5ea9181284754d37db15156eb7be09c86e16e50fbe77610e9e7bee09291771a1"},+ {file = "sqlalchemy-2.0.40-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:5434223b795be5c5ef8244e5ac98056e290d3a99bdcc539b916e282b160dda00"},+ {file = "sqlalchemy-2.0.40-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:15d08d5ef1b779af6a0909b97be6c1fd4298057504eb6461be88bd1696cb438e"},+ {file = "sqlalchemy-2.0.40-cp310-cp310-win32.whl", hash = "sha256:cd2f75598ae70bcfca9117d9e51a3b06fe29edd972fdd7fd57cc97b4dbf3b08a"},+ {file = "sqlalchemy-2.0.40-cp310-cp310-win_amd64.whl", hash = "sha256:2cbafc8d39ff1abdfdda96435f38fab141892dc759a2165947d1a8fffa7ef596"},+ {file = "sqlalchemy-2.0.40-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f6bacab7514de6146a1976bc56e1545bee247242fab030b89e5f70336fc0003e"},+ {file = "sqlalchemy-2.0.40-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:5654d1ac34e922b6c5711631f2da497d3a7bffd6f9f87ac23b35feea56098011"},+ {file = "sqlalchemy-2.0.40-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:35904d63412db21088739510216e9349e335f142ce4a04b69e2528020ee19ed4"},+ {file = "sqlalchemy-2.0.40-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c7a80ed86d6aaacb8160a1caef6680d4ddd03c944d985aecee940d168c411d1"},+ {file = "sqlalchemy-2.0.40-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:519624685a51525ddaa7d8ba8265a1540442a2ec71476f0e75241eb8263d6f51"},+ {file = "sqlalchemy-2.0.40-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:2ee5f9999a5b0e9689bed96e60ee53c3384f1a05c2dd8068cc2e8361b0df5b7a"},+ {file = "sqlalchemy-2.0.40-cp311-cp311-win32.whl", hash = "sha256:c0cae71e20e3c02c52f6b9e9722bca70e4a90a466d59477822739dc31ac18b4b"},+ {file = "sqlalchemy-2.0.40-cp311-cp311-win_amd64.whl", hash = "sha256:574aea2c54d8f1dd1699449f332c7d9b71c339e04ae50163a3eb5ce4c4325ee4"},+ {file = "sqlalchemy-2.0.40-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:9d3b31d0a1c44b74d3ae27a3de422dfccd2b8f0b75e51ecb2faa2bf65ab1ba0d"},+ {file = "sqlalchemy-2.0.40-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:37f7a0f506cf78c80450ed1e816978643d3969f99c4ac6b01104a6fe95c5490a"},+ {file = "sqlalchemy-2.0.40-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0bb933a650323e476a2e4fbef8997a10d0003d4da996aad3fd7873e962fdde4d"},+ {file = "sqlalchemy-2.0.40-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6959738971b4745eea16f818a2cd086fb35081383b078272c35ece2b07012716"},+ {file = "sqlalchemy-2.0.40-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:110179728e442dae85dd39591beb74072ae4ad55a44eda2acc6ec98ead80d5f2"},+ {file = "sqlalchemy-2.0.40-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e8040680eaacdce4d635f12c55c714f3d4c7f57da2bc47a01229d115bd319191"},+ {file = "sqlalchemy-2.0.40-cp312-cp312-win32.whl", hash = "sha256:650490653b110905c10adac69408380688cefc1f536a137d0d69aca1069dc1d1"},+ {file = "sqlalchemy-2.0.40-cp312-cp312-win_amd64.whl", hash = "sha256:2be94d75ee06548d2fc591a3513422b873490efb124048f50556369a834853b0"},+ {file = "sqlalchemy-2.0.40-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:915866fd50dd868fdcc18d61d8258db1bf9ed7fbd6dfec960ba43365952f3b01"},+ {file = "sqlalchemy-2.0.40-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:4a4c5a2905a9ccdc67a8963e24abd2f7afcd4348829412483695c59e0af9a705"},+ {file = "sqlalchemy-2.0.40-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:55028d7a3ebdf7ace492fab9895cbc5270153f75442a0472d8516e03159ab364"},+ {file = "sqlalchemy-2.0.40-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6cfedff6878b0e0d1d0a50666a817ecd85051d12d56b43d9d425455e608b5ba0"},+ {file = "sqlalchemy-2.0.40-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bb19e30fdae77d357ce92192a3504579abe48a66877f476880238a962e5b96db"},+ {file = "sqlalchemy-2.0.40-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:16d325ea898f74b26ffcd1cf8c593b0beed8714f0317df2bed0d8d1de05a8f26"},+ {file = "sqlalchemy-2.0.40-cp313-cp313-win32.whl", hash = "sha256:a669cbe5be3c63f75bcbee0b266779706f1a54bcb1000f302685b87d1b8c1500"},+ {file = "sqlalchemy-2.0.40-cp313-cp313-win_amd64.whl", hash = "sha256:641ee2e0834812d657862f3a7de95e0048bdcb6c55496f39c6fa3d435f6ac6ad"},+ {file = "sqlalchemy-2.0.40-py3-none-any.whl", hash = "sha256:32587e2e1e359276957e6fe5dad089758bc042a971a8a09ae8ecf7a8fe23d07a"},+ {file = "sqlalchemy-2.0.40.tar.gz", hash = "sha256:d827099289c64589418ebbcaead0145cd19f4e3e8a93919a0100247af245fa00"},+]++[[package]]+name = "sympy"+version = "1.13.1"+requires_python = ">=3.8"+summary = "Computer algebra system (CAS) in Python"+groups = ["default"]+marker = "python_version >= \"3.9\""+dependencies = [+ "mpmath<1.4,>=1.1.0",+]+files = [+ {file = "sympy-1.13.1-py3-none-any.whl", hash = "sha256:db36cdc64bf61b9b24578b6f7bab1ecdd2452cf008f34faa33776680c26d66f8"},+ {file = "sympy-1.13.1.tar.gz", hash = "sha256:9cebf7e04ff162015ce31c9c6c9144daa34a93bd082f54fd8f12deca4f47515f"},+]++[[package]]+name = "tenacity"+version = "9.0.0"+requires_python = ">=3.8"+summary = "Retry code until it succeeds"+groups = ["default"]+files = [+ {file = "tenacity-9.0.0-py3-none-any.whl", hash = "sha256:93de0c98785b27fcf659856aa9f54bfbd399e29969b0621bc7f762bd441b4539"},+ {file = "tenacity-9.0.0.tar.gz", hash = "sha256:807f37ca97d62aa361264d497b0e31e92b8027044942bfa756160d908320d73b"},+]++[[package]]+name = "threadpoolctl"+version = "3.6.0"+requires_python = ">=3.9"+summary = "threadpoolctl"+groups = ["default"]+files = [+ {file = "threadpoolctl-3.6.0-py3-none-any.whl", hash = "sha256:43a0b8fd5a2928500110039e43a5eed8480b918967083ea48dc3ab9f13c4a7fb"},+ {file = "threadpoolctl-3.6.0.tar.gz", hash = "sha256:8ab8b4aa3491d812b623328249fab5302a68d2d71745c8a4c719a2fcaba9f44e"},+]++[[package]]+name = "tiktoken"+version = "0.9.0"+requires_python = ">=3.9"+summary = "tiktoken is a fast BPE tokeniser for use with OpenAI's models"+groups = ["default"]+dependencies = [+ "regex>=2022.1.18",+ "requests>=2.26.0",+]+files = [+ {file = "tiktoken-0.9.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:586c16358138b96ea804c034b8acf3f5d3f0258bd2bc3b0227af4af5d622e382"},+ {file = "tiktoken-0.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d9c59ccc528c6c5dd51820b3474402f69d9a9e1d656226848ad68a8d5b2e5108"},+ {file = "tiktoken-0.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f0968d5beeafbca2a72c595e8385a1a1f8af58feaebb02b227229b69ca5357fd"},+ {file = "tiktoken-0.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:92a5fb085a6a3b7350b8fc838baf493317ca0e17bd95e8642f95fc69ecfed1de"},+ {file = "tiktoken-0.9.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:15a2752dea63d93b0332fb0ddb05dd909371ededa145fe6a3242f46724fa7990"},+ {file = "tiktoken-0.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:26113fec3bd7a352e4b33dbaf1bd8948de2507e30bd95a44e2b1156647bc01b4"},+ {file = "tiktoken-0.9.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:f32cc56168eac4851109e9b5d327637f15fd662aa30dd79f964b7c39fbadd26e"},+ {file = "tiktoken-0.9.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:45556bc41241e5294063508caf901bf92ba52d8ef9222023f83d2483a3055348"},+ {file = "tiktoken-0.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:03935988a91d6d3216e2ec7c645afbb3d870b37bcb67ada1943ec48678e7ee33"},+ {file = "tiktoken-0.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8b3d80aad8d2c6b9238fc1a5524542087c52b860b10cbf952429ffb714bc1136"},+ {file = "tiktoken-0.9.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b2a21133be05dc116b1d0372af051cd2c6aa1d2188250c9b553f9fa49301b336"},+ {file = "tiktoken-0.9.0-cp311-cp311-win_amd64.whl", hash = "sha256:11a20e67fdf58b0e2dea7b8654a288e481bb4fc0289d3ad21291f8d0849915fb"},+ {file = "tiktoken-0.9.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:e88f121c1c22b726649ce67c089b90ddda8b9662545a8aeb03cfef15967ddd03"},+ {file = "tiktoken-0.9.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a6600660f2f72369acb13a57fb3e212434ed38b045fd8cc6cdd74947b4b5d210"},+ {file = "tiktoken-0.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:95e811743b5dfa74f4b227927ed86cbc57cad4df859cb3b643be797914e41794"},+ {file = "tiktoken-0.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:99376e1370d59bcf6935c933cb9ba64adc29033b7e73f5f7569f3aad86552b22"},+ {file = "tiktoken-0.9.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:badb947c32739fb6ddde173e14885fb3de4d32ab9d8c591cbd013c22b4c31dd2"},+ {file = "tiktoken-0.9.0-cp312-cp312-win_amd64.whl", hash = "sha256:5a62d7a25225bafed786a524c1b9f0910a1128f4232615bf3f8257a73aaa3b16"},+ {file = "tiktoken-0.9.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:2b0e8e05a26eda1249e824156d537015480af7ae222ccb798e5234ae0285dbdb"},+ {file = "tiktoken-0.9.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:27d457f096f87685195eea0165a1807fae87b97b2161fe8c9b1df5bd74ca6f63"},+ {file = "tiktoken-0.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2cf8ded49cddf825390e36dd1ad35cd49589e8161fdcb52aa25f0583e90a3e01"},+ {file = "tiktoken-0.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cc156cb314119a8bb9748257a2eaebd5cc0753b6cb491d26694ed42fc7cb3139"},+ {file = "tiktoken-0.9.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:cd69372e8c9dd761f0ab873112aba55a0e3e506332dd9f7522ca466e817b1b7a"},+ {file = "tiktoken-0.9.0-cp313-cp313-win_amd64.whl", hash = "sha256:5ea0edb6f83dc56d794723286215918c1cde03712cbbafa0348b33448faf5b95"},+ {file = "tiktoken-0.9.0.tar.gz", hash = "sha256:d02a5ca6a938e0490e1ff957bc48c8b078c88cb83977be1625b1fd8aac792c5d"},+]++[[package]]+name = "tokenizers"+version = "0.21.1"+requires_python = ">=3.9"+summary = ""+groups = ["default"]+dependencies = [+ "huggingface-hub<1.0,>=0.16.4",+]+files = [+ {file = "tokenizers-0.21.1-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:e78e413e9e668ad790a29456e677d9d3aa50a9ad311a40905d6861ba7692cf41"},+ {file = "tokenizers-0.21.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:cd51cd0a91ecc801633829fcd1fda9cf8682ed3477c6243b9a095539de4aecf3"},+ {file = "tokenizers-0.21.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:28da6b72d4fb14ee200a1bd386ff74ade8992d7f725f2bde2c495a9a98cf4d9f"},+ {file = "tokenizers-0.21.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:34d8cfde551c9916cb92014e040806122295a6800914bab5865deb85623931cf"},+ {file = "tokenizers-0.21.1-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:aaa852d23e125b73d283c98f007e06d4595732104b65402f46e8ef24b588d9f8"},+ {file = "tokenizers-0.21.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a21a15d5c8e603331b8a59548bbe113564136dc0f5ad8306dd5033459a226da0"},+ {file = "tokenizers-0.21.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2fdbd4c067c60a0ac7eca14b6bd18a5bebace54eb757c706b47ea93204f7a37c"},+ {file = "tokenizers-0.21.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2dd9a0061e403546f7377df940e866c3e678d7d4e9643d0461ea442b4f89e61a"},+ {file = "tokenizers-0.21.1-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:db9484aeb2e200c43b915a1a0150ea885e35f357a5a8fabf7373af333dcc8dbf"},+ {file = "tokenizers-0.21.1-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:ed248ab5279e601a30a4d67bdb897ecbe955a50f1e7bb62bd99f07dd11c2f5b6"},+ {file = "tokenizers-0.21.1-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:9ac78b12e541d4ce67b4dfd970e44c060a2147b9b2a21f509566d556a509c67d"},+ {file = "tokenizers-0.21.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:e5a69c1a4496b81a5ee5d2c1f3f7fbdf95e90a0196101b0ee89ed9956b8a168f"},+ {file = "tokenizers-0.21.1-cp39-abi3-win32.whl", hash = "sha256:1039a3a5734944e09de1d48761ade94e00d0fa760c0e0551151d4dd851ba63e3"},+ {file = "tokenizers-0.21.1-cp39-abi3-win_amd64.whl", hash = "sha256:0f0dcbcc9f6e13e675a66d7a5f2f225a736745ce484c1a4e07476a89ccdad382"},+ {file = "tokenizers-0.21.1.tar.gz", hash = "sha256:a1bb04dc5b448985f86ecd4b05407f5a8d97cb2c0532199b2a302a604a0165ab"},+]++[[package]]+name = "toml"+version = "0.10.2"+requires_python = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"+summary = "Python Library for Tom's Obvious, Minimal Language"+groups = ["default"]+files = [+ {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"},+ {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"},+]++[[package]]+name = "tomli"+version = "2.2.1"+requires_python = ">=3.8"+summary = "A lil' TOML parser"+groups = ["dev"]+marker = "python_version < \"3.11\""+files = [+ {file = "tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249"},+ {file = "tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6"},+ {file = "tomli-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a"},+ {file = "tomli-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6972ca9c9cc9f0acaa56a8ca1ff51e7af152a9f87fb64623e31d5c83700080ee"},+ {file = "tomli-2.2.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c954d2250168d28797dd4e3ac5cf812a406cd5a92674ee4c8f123c889786aa8e"},+ {file = "tomli-2.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8dd28b3e155b80f4d54beb40a441d366adcfe740969820caf156c019fb5c7ec4"},+ {file = "tomli-2.2.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e59e304978767a54663af13c07b3d1af22ddee3bb2fb0618ca1593e4f593a106"},+ {file = "tomli-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:33580bccab0338d00994d7f16f4c4ec25b776af3ffaac1ed74e0b3fc95e885a8"},+ {file = "tomli-2.2.1-cp311-cp311-win32.whl", hash = "sha256:465af0e0875402f1d226519c9904f37254b3045fc5084697cefb9bdde1ff99ff"},+ {file = "tomli-2.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2d0f2fdd22b02c6d81637a3c95f8cd77f995846af7414c5c4b8d0545afa1bc4b"},+ {file = "tomli-2.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4a8f6e44de52d5e6c657c9fe83b562f5f4256d8ebbfe4ff922c495620a7f6cea"},+ {file = "tomli-2.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8d57ca8095a641b8237d5b079147646153d22552f1c637fd3ba7f4b0b29167a8"},+ {file = "tomli-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e340144ad7ae1533cb897d406382b4b6fede8890a03738ff1683af800d54192"},+ {file = "tomli-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2b95f9de79181805df90bedc5a5ab4c165e6ec3fe99f970d0e302f384ad222"},+ {file = "tomli-2.2.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40741994320b232529c802f8bc86da4e1aa9f413db394617b9a256ae0f9a7f77"},+ {file = "tomli-2.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:400e720fe168c0f8521520190686ef8ef033fb19fc493da09779e592861b78c6"},+ {file = "tomli-2.2.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:02abe224de6ae62c19f090f68da4e27b10af2b93213d36cf44e6e1c5abd19fdd"},+ {file = "tomli-2.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b82ebccc8c8a36f2094e969560a1b836758481f3dc360ce9a3277c65f374285e"},+ {file = "tomli-2.2.1-cp312-cp312-win32.whl", hash = "sha256:889f80ef92701b9dbb224e49ec87c645ce5df3fa2cc548664eb8a25e03127a98"},+ {file = "tomli-2.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:7fc04e92e1d624a4a63c76474610238576942d6b8950a2d7f908a340494e67e4"},+ {file = "tomli-2.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7"},+ {file = "tomli-2.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c"},+ {file = "tomli-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13"},+ {file = "tomli-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281"},+ {file = "tomli-2.2.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272"},+ {file = "tomli-2.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140"},+ {file = "tomli-2.2.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2"},+ {file = "tomli-2.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744"},+ {file = "tomli-2.2.1-cp313-cp313-win32.whl", hash = "sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec"},+ {file = "tomli-2.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69"},+ {file = "tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc"},+ {file = "tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff"},+]++[[package]]+name = "torch"+version = "2.6.0"+requires_python = ">=3.9.0"+summary = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"+groups = ["default"]+dependencies = [+ "filelock",+ "fsspec",+ "jinja2",+ "networkx",+ "nvidia-cublas-cu12==12.4.5.8; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "nvidia-cuda-cupti-cu12==12.4.127; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "nvidia-cuda-nvrtc-cu12==12.4.127; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "nvidia-cuda-runtime-cu12==12.4.127; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "nvidia-cudnn-cu12==9.1.0.70; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "nvidia-cufft-cu12==11.2.1.3; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "nvidia-curand-cu12==10.3.5.147; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "nvidia-cusolver-cu12==11.6.1.9; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "nvidia-cusparse-cu12==12.3.1.170; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "nvidia-cusparselt-cu12==0.6.2; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "nvidia-nccl-cu12==2.21.5; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "nvidia-nvjitlink-cu12==12.4.127; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "nvidia-nvtx-cu12==12.4.127; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "setuptools; python_version >= \"3.12\"",+ "sympy==1.13.1; python_version >= \"3.9\"",+ "triton==3.2.0; platform_system == \"Linux\" and platform_machine == \"x86_64\"",+ "typing-extensions>=4.10.0",+]+files = [+ {file = "torch-2.6.0-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:6860df13d9911ac158f4c44031609700e1eba07916fff62e21e6ffa0a9e01961"},+ {file = "torch-2.6.0-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:c4f103a49830ce4c7561ef4434cc7926e5a5fe4e5eb100c19ab36ea1e2b634ab"},+ {file = "torch-2.6.0-cp310-cp310-win_amd64.whl", hash = "sha256:56eeaf2ecac90da5d9e35f7f35eb286da82673ec3c582e310a8d1631a1c02341"},+ {file = "torch-2.6.0-cp310-none-macosx_11_0_arm64.whl", hash = "sha256:09e06f9949e1a0518c5b09fe95295bc9661f219d9ecb6f9893e5123e10696628"},+ {file = "torch-2.6.0-cp311-cp311-manylinux1_x86_64.whl", hash = "sha256:7979834102cd5b7a43cc64e87f2f3b14bd0e1458f06e9f88ffa386d07c7446e1"},+ {file = "torch-2.6.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:ccbd0320411fe1a3b3fec7b4d3185aa7d0c52adac94480ab024b5c8f74a0bf1d"},+ {file = "torch-2.6.0-cp311-cp311-win_amd64.whl", hash = "sha256:46763dcb051180ce1ed23d1891d9b1598e07d051ce4c9d14307029809c4d64f7"},+ {file = "torch-2.6.0-cp311-none-macosx_11_0_arm64.whl", hash = "sha256:94fc63b3b4bedd327af588696559f68c264440e2503cc9e6954019473d74ae21"},+ {file = "torch-2.6.0-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:2bb8987f3bb1ef2675897034402373ddfc8f5ef0e156e2d8cfc47cacafdda4a9"},+ {file = "torch-2.6.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:b789069020c5588c70d5c2158ac0aa23fd24a028f34a8b4fcb8fcb4d7efcf5fb"},+ {file = "torch-2.6.0-cp312-cp312-win_amd64.whl", hash = "sha256:7e1448426d0ba3620408218b50aa6ada88aeae34f7a239ba5431f6c8774b1239"},+ {file = "torch-2.6.0-cp312-none-macosx_11_0_arm64.whl", hash = "sha256:9a610afe216a85a8b9bc9f8365ed561535c93e804c2a317ef7fabcc5deda0989"},+ {file = "torch-2.6.0-cp313-cp313-manylinux1_x86_64.whl", hash = "sha256:4874a73507a300a5d089ceaff616a569e7bb7c613c56f37f63ec3ffac65259cf"},+ {file = "torch-2.6.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:a0d5e1b9874c1a6c25556840ab8920569a7a4137afa8a63a32cee0bc7d89bd4b"},+ {file = "torch-2.6.0-cp313-cp313-win_amd64.whl", hash = "sha256:510c73251bee9ba02ae1cb6c9d4ee0907b3ce6020e62784e2d7598e0cfa4d6cc"},+ {file = "torch-2.6.0-cp313-none-macosx_11_0_arm64.whl", hash = "sha256:ff96f4038f8af9f7ec4231710ed4549da1bdebad95923953a25045dcf6fd87e2"},+]++[[package]]+name = "tqdm"+version = "4.67.1"+requires_python = ">=3.7"+summary = "Fast, Extensible Progress Meter"+groups = ["default"]+dependencies = [+ "colorama; platform_system == \"Windows\"",+]+files = [+ {file = "tqdm-4.67.1-py3-none-any.whl", hash = "sha256:26445eca388f82e72884e0d580d5464cd801a3ea01e63e5601bdff9ba6a48de2"},+ {file = "tqdm-4.67.1.tar.gz", hash = "sha256:f8aef9c52c08c13a65f30ea34f4e5aac3fd1a34959879d7e59e63027286627f2"},+]++[[package]]+name = "transformers"+version = "4.50.2"+requires_python = ">=3.9.0"+summary = "State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow"+groups = ["default"]+dependencies = [+ "filelock",+ "huggingface-hub<1.0,>=0.26.0",+ "numpy>=1.17",+ "packaging>=20.0",+ "pyyaml>=5.1",+ "regex!=2019.12.17",+ "requests",+ "safetensors>=0.4.3",+ "tokenizers<0.22,>=0.21",+ "tqdm>=4.27",+]+files = [+ {file = "transformers-4.50.2-py3-none-any.whl", hash = "sha256:99bbcddd6570f080aee81f67844f4b46c8025bbdbdb86eafb82cc7d6aaafb190"},+ {file = "transformers-4.50.2.tar.gz", hash = "sha256:dac6cef0e2698fb25b57edbc0b9af3732e4ca148ed008d3e3118203c4dd25055"},+]++[[package]]+name = "triton"+version = "3.2.0"+summary = "A language and compiler for custom Deep Learning operations"+groups = ["default"]+marker = "platform_system == \"Linux\" and platform_machine == \"x86_64\""+files = [+ {file = "triton-3.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b3e54983cd51875855da7c68ec05c05cf8bb08df361b1d5b69e05e40b0c9bd62"},+ {file = "triton-3.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8009a1fb093ee8546495e96731336a33fb8856a38e45bb4ab6affd6dbc3ba220"},+ {file = "triton-3.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8d9b215efc1c26fa7eefb9a157915c92d52e000d2bf83e5f69704047e63f125c"},+ {file = "triton-3.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5dfa23ba84541d7c0a531dfce76d8bcd19159d50a4a8b14ad01e91734a5c1b0"},+]++[[package]]+name = "typing-extensions"+version = "4.13.0"+requires_python = ">=3.8"+summary = "Backported and Experimental Type Hints for Python 3.8+"+groups = ["default", "dev"]+files = [+ {file = "typing_extensions-4.13.0-py3-none-any.whl", hash = "sha256:c8dd92cc0d6425a97c18fbb9d1954e5ff92c1ca881a309c45f06ebc0b79058e5"},+ {file = "typing_extensions-4.13.0.tar.gz", hash = "sha256:0a4ac55a5820789d87e297727d229866c9650f6521b64206413c4fbada24d95b"},+]++[[package]]+name = "typing-inspect"+version = "0.9.0"+summary = "Runtime inspection utilities for typing module."+groups = ["default"]+dependencies = [+ "mypy-extensions>=0.3.0",+ "typing-extensions>=3.7.4",+ "typing>=3.7.4; python_version < \"3.5\"",+]+files = [+ {file = "typing_inspect-0.9.0-py3-none-any.whl", hash = "sha256:9ee6fc59062311ef8547596ab6b955e1b8aa46242d854bfc78f4f6b0eff35f9f"},+ {file = "typing_inspect-0.9.0.tar.gz", hash = "sha256:b23fc42ff6f6ef6954e4852c1fb512cdd18dbea03134f91f856a95ccc9461f78"},+]++[[package]]+name = "typing-inspection"+version = "0.4.0"+requires_python = ">=3.9"+summary = "Runtime typing introspection tools"+groups = ["default"]+dependencies = [+ "typing-extensions>=4.12.0",+]+files = [+ {file = "typing_inspection-0.4.0-py3-none-any.whl", hash = "sha256:50e72559fcd2a6367a19f7a7e610e6afcb9fac940c650290eed893d61386832f"},+ {file = "typing_inspection-0.4.0.tar.gz", hash = "sha256:9765c87de36671694a67904bf2c96e395be9c6439bb6c87b5142569dcdd65122"},+]++[[package]]+name = "unstructured"+version = "0.17.2"+requires_python = ">=3.9.0"+summary = "A library that prepares raw documents for downstream ML tasks."+groups = ["default"]+dependencies = [+ "backoff",+ "beautifulsoup4",+ "chardet",+ "dataclasses-json",+ "emoji",+ "filetype",+ "html5lib",+ "langdetect",+ "lxml",+ "nltk",+ "numpy",+ "psutil",+ "python-iso639",+ "python-magic",+ "python-oxmsg",+ "rapidfuzz",+ "requests",+ "tqdm",+ "typing-extensions",+ "unstructured-client",+ "wrapt",+]+files = [+ {file = "unstructured-0.17.2-py3-none-any.whl", hash = "sha256:527dd26a4b273aebef2f9119c9d4f0d0ce17640038d92296d23abe89be123840"},+ {file = "unstructured-0.17.2.tar.gz", hash = "sha256:af18c3caef0a6c562cf77e34ee8b6ff522b605031d2336ffe565df66f126aa46"},+]++[[package]]+name = "unstructured-client"+version = "0.31.6"+requires_python = ">=3.9"+summary = "Python Client SDK for Unstructured API"+groups = ["default"]+dependencies = [+ "aiofiles>=24.1.0",+ "cryptography>=3.1",+ "eval-type-backport>=0.2.0",+ "httpx>=0.27.0",+ "nest-asyncio>=1.6.0",+ "pydantic>=2.10.3",+ "pypdf>=4.0",+ "python-dateutil>=2.8.2",+ "requests-toolbelt>=1.0.0",+ "typing-inspection>=0.4.0",+]+files = [+ {file = "unstructured_client-0.31.6-py3-none-any.whl", hash = "sha256:8fb4a81b9451e61b0455f07a7915410464a195745b6359c7dbe9d022668b26a3"},+ {file = "unstructured_client-0.31.6.tar.gz", hash = "sha256:75ccc248b0fbbabbb536bea13667e4b16b5a90353fe88a6d0a72d3e9d30c2de2"},+]++[[package]]+name = "urllib3"+version = "2.3.0"+requires_python = ">=3.9"+summary = "HTTP library with thread-safe connection pooling, file post, and more."+groups = ["default"]+files = [+ {file = "urllib3-2.3.0-py3-none-any.whl", hash = "sha256:1cee9ad369867bfdbbb48b7dd50374c0967a0bb7710050facf0dd6911440e3df"},+ {file = "urllib3-2.3.0.tar.gz", hash = "sha256:f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d"},+]++[[package]]+name = "virtualenv"+version = "20.29.3"+requires_python = ">=3.8"+summary = "Virtual Python Environment builder"+groups = ["dev"]+dependencies = [+ "distlib<1,>=0.3.7",+ "filelock<4,>=3.12.2",+ "importlib-metadata>=6.6; python_version < \"3.8\"",+ "platformdirs<5,>=3.9.1",+]+files = [+ {file = "virtualenv-20.29.3-py3-none-any.whl", hash = "sha256:3e3d00f5807e83b234dfb6122bf37cfadf4be216c53a49ac059d02414f819170"},+ {file = "virtualenv-20.29.3.tar.gz", hash = "sha256:95e39403fcf3940ac45bc717597dba16110b74506131845d9b687d5e73d947ac"},+]++[[package]]+name = "webencodings"+version = "0.5.1"+summary = "Character encoding aliases for legacy web content"+groups = ["default"]+files = [+ {file = "webencodings-0.5.1-py2.py3-none-any.whl", hash = "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78"},+ {file = "webencodings-0.5.1.tar.gz", hash = "sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"},+]++[[package]]+name = "werkzeug"+version = "3.1.3"+requires_python = ">=3.9"+summary = "The comprehensive WSGI web application library."+groups = ["default"]+dependencies = [+ "MarkupSafe>=2.1.1",+]+files = [+ {file = "werkzeug-3.1.3-py3-none-any.whl", hash = "sha256:54b78bf3716d19a65be4fceccc0d1d7b89e608834989dfae50ea87564639213e"},+ {file = "werkzeug-3.1.3.tar.gz", hash = "sha256:60723ce945c19328679790e3282cc758aa4a6040e4bb330f53d30fa546d44746"},+]++[[package]]+name = "wikipedia"+version = "1.4.0"+summary = "Wikipedia API for Python"+groups = ["default"]+dependencies = [+ "beautifulsoup4",+ "requests<3.0.0,>=2.0.0",+]+files = [+ {file = "wikipedia-1.4.0.tar.gz", hash = "sha256:db0fad1829fdd441b1852306e9856398204dc0786d2996dd2e0c8bb8e26133b2"},+]++[[package]]+name = "wrapt"+version = "1.17.2"+requires_python = ">=3.8"+summary = "Module for decorators, wrappers and monkey patching."+groups = ["default"]+files = [+ {file = "wrapt-1.17.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:3d57c572081fed831ad2d26fd430d565b76aa277ed1d30ff4d40670b1c0dd984"},+ {file = "wrapt-1.17.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b5e251054542ae57ac7f3fba5d10bfff615b6c2fb09abeb37d2f1463f841ae22"},+ {file = "wrapt-1.17.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:80dd7db6a7cb57ffbc279c4394246414ec99537ae81ffd702443335a61dbf3a7"},+ {file = "wrapt-1.17.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0a6e821770cf99cc586d33833b2ff32faebdbe886bd6322395606cf55153246c"},+ {file = "wrapt-1.17.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b60fb58b90c6d63779cb0c0c54eeb38941bae3ecf7a73c764c52c88c2dcb9d72"},+ {file = "wrapt-1.17.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b870b5df5b71d8c3359d21be8f0d6c485fa0ebdb6477dda51a1ea54a9b558061"},+ {file = "wrapt-1.17.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:4011d137b9955791f9084749cba9a367c68d50ab8d11d64c50ba1688c9b457f2"},+ {file = "wrapt-1.17.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:1473400e5b2733e58b396a04eb7f35f541e1fb976d0c0724d0223dd607e0f74c"},+ {file = "wrapt-1.17.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3cedbfa9c940fdad3e6e941db7138e26ce8aad38ab5fe9dcfadfed9db7a54e62"},+ {file = "wrapt-1.17.2-cp310-cp310-win32.whl", hash = "sha256:582530701bff1dec6779efa00c516496968edd851fba224fbd86e46cc6b73563"},+ {file = "wrapt-1.17.2-cp310-cp310-win_amd64.whl", hash = "sha256:58705da316756681ad3c9c73fd15499aa4d8c69f9fd38dc8a35e06c12468582f"},+ {file = "wrapt-1.17.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:ff04ef6eec3eee8a5efef2401495967a916feaa353643defcc03fc74fe213b58"},+ {file = "wrapt-1.17.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4db983e7bca53819efdbd64590ee96c9213894272c776966ca6306b73e4affda"},+ {file = "wrapt-1.17.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:9abc77a4ce4c6f2a3168ff34b1da9b0f311a8f1cfd694ec96b0603dff1c79438"},+ {file = "wrapt-1.17.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0b929ac182f5ace000d459c59c2c9c33047e20e935f8e39371fa6e3b85d56f4a"},+ {file = "wrapt-1.17.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f09b286faeff3c750a879d336fb6d8713206fc97af3adc14def0cdd349df6000"},+ {file = "wrapt-1.17.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1a7ed2d9d039bd41e889f6fb9364554052ca21ce823580f6a07c4ec245c1f5d6"},+ {file = "wrapt-1.17.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:129a150f5c445165ff941fc02ee27df65940fcb8a22a61828b1853c98763a64b"},+ {file = "wrapt-1.17.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:1fb5699e4464afe5c7e65fa51d4f99e0b2eadcc176e4aa33600a3df7801d6662"},+ {file = "wrapt-1.17.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a2bce789a5ea90e51a02dfcc39e31b7f1e662bc3317979aa7e5538e3a034f72"},+ {file = "wrapt-1.17.2-cp311-cp311-win32.whl", hash = "sha256:4afd5814270fdf6380616b321fd31435a462019d834f83c8611a0ce7484c7317"},+ {file = "wrapt-1.17.2-cp311-cp311-win_amd64.whl", hash = "sha256:acc130bc0375999da18e3d19e5a86403667ac0c4042a094fefb7eec8ebac7cf3"},+ {file = "wrapt-1.17.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:d5e2439eecc762cd85e7bd37161d4714aa03a33c5ba884e26c81559817ca0925"},+ {file = "wrapt-1.17.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:3fc7cb4c1c744f8c05cd5f9438a3caa6ab94ce8344e952d7c45a8ed59dd88392"},+ {file = "wrapt-1.17.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8fdbdb757d5390f7c675e558fd3186d590973244fab0c5fe63d373ade3e99d40"},+ {file = "wrapt-1.17.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5bb1d0dbf99411f3d871deb6faa9aabb9d4e744d67dcaaa05399af89d847a91d"},+ {file = "wrapt-1.17.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d18a4865f46b8579d44e4fe1e2bcbc6472ad83d98e22a26c963d46e4c125ef0b"},+ {file = "wrapt-1.17.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc570b5f14a79734437cb7b0500376b6b791153314986074486e0b0fa8d71d98"},+ {file = "wrapt-1.17.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6d9187b01bebc3875bac9b087948a2bccefe464a7d8f627cf6e48b1bbae30f82"},+ {file = "wrapt-1.17.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:9e8659775f1adf02eb1e6f109751268e493c73716ca5761f8acb695e52a756ae"},+ {file = "wrapt-1.17.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e8b2816ebef96d83657b56306152a93909a83f23994f4b30ad4573b00bd11bb9"},+ {file = "wrapt-1.17.2-cp312-cp312-win32.whl", hash = "sha256:468090021f391fe0056ad3e807e3d9034e0fd01adcd3bdfba977b6fdf4213ea9"},+ {file = "wrapt-1.17.2-cp312-cp312-win_amd64.whl", hash = "sha256:ec89ed91f2fa8e3f52ae53cd3cf640d6feff92ba90d62236a81e4e563ac0e991"},+ {file = "wrapt-1.17.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6ed6ffac43aecfe6d86ec5b74b06a5be33d5bb9243d055141e8cabb12aa08125"},+ {file = "wrapt-1.17.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:35621ae4c00e056adb0009f8e86e28eb4a41a4bfa8f9bfa9fca7d343fe94f998"},+ {file = "wrapt-1.17.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a604bf7a053f8362d27eb9fefd2097f82600b856d5abe996d623babd067b1ab5"},+ {file = "wrapt-1.17.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5cbabee4f083b6b4cd282f5b817a867cf0b1028c54d445b7ec7cfe6505057cf8"},+ {file = "wrapt-1.17.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:49703ce2ddc220df165bd2962f8e03b84c89fee2d65e1c24a7defff6f988f4d6"},+ {file = "wrapt-1.17.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8112e52c5822fc4253f3901b676c55ddf288614dc7011634e2719718eaa187dc"},+ {file = "wrapt-1.17.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:9fee687dce376205d9a494e9c121e27183b2a3df18037f89d69bd7b35bcf59e2"},+ {file = "wrapt-1.17.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:18983c537e04d11cf027fbb60a1e8dfd5190e2b60cc27bc0808e653e7b218d1b"},+ {file = "wrapt-1.17.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:703919b1633412ab54bcf920ab388735832fdcb9f9a00ae49387f0fe67dad504"},+ {file = "wrapt-1.17.2-cp313-cp313-win32.whl", hash = "sha256:abbb9e76177c35d4e8568e58650aa6926040d6a9f6f03435b7a522bf1c487f9a"},+ {file = "wrapt-1.17.2-cp313-cp313-win_amd64.whl", hash = "sha256:69606d7bb691b50a4240ce6b22ebb319c1cfb164e5f6569835058196e0f3a845"},+ {file = "wrapt-1.17.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:4a721d3c943dae44f8e243b380cb645a709ba5bd35d3ad27bc2ed947e9c68192"},+ {file = "wrapt-1.17.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:766d8bbefcb9e00c3ac3b000d9acc51f1b399513f44d77dfe0eb026ad7c9a19b"},+ {file = "wrapt-1.17.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e496a8ce2c256da1eb98bd15803a79bee00fc351f5dfb9ea82594a3f058309e0"},+ {file = "wrapt-1.17.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:40d615e4fe22f4ad3528448c193b218e077656ca9ccb22ce2cb20db730f8d306"},+ {file = "wrapt-1.17.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a5aaeff38654462bc4b09023918b7f21790efb807f54c000a39d41d69cf552cb"},+ {file = "wrapt-1.17.2-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9a7d15bbd2bc99e92e39f49a04653062ee6085c0e18b3b7512a4f2fe91f2d681"},+ {file = "wrapt-1.17.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:e3890b508a23299083e065f435a492b5435eba6e304a7114d2f919d400888cc6"},+ {file = "wrapt-1.17.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:8c8b293cd65ad716d13d8dd3624e42e5a19cc2a2f1acc74b30c2c13f15cb61a6"},+ {file = "wrapt-1.17.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4c82b8785d98cdd9fed4cac84d765d234ed3251bd6afe34cb7ac523cb93e8b4f"},+ {file = "wrapt-1.17.2-cp313-cp313t-win32.whl", hash = "sha256:13e6afb7fe71fe7485a4550a8844cc9ffbe263c0f1a1eea569bc7091d4898555"},+ {file = "wrapt-1.17.2-cp313-cp313t-win_amd64.whl", hash = "sha256:eaf675418ed6b3b31c7a989fd007fa7c3be66ce14e5c3b27336383604c9da85c"},+ {file = "wrapt-1.17.2-py3-none-any.whl", hash = "sha256:b18f2d1533a71f069c7f82d524a52599053d4c7166e9dd374ae2136b7f40f7c8"},+ {file = "wrapt-1.17.2.tar.gz", hash = "sha256:41388e9d4d1522446fe79d3213196bd9e3b301a336965b9e27ca2788ebd122f3"},+]++[[package]]+name = "wsproto"+version = "1.2.0"+requires_python = ">=3.7.0"+summary = "WebSockets state-machine based protocol implementation"+groups = ["default"]+dependencies = [+ "h11<1,>=0.9.0",+]+files = [+ {file = "wsproto-1.2.0-py3-none-any.whl", hash = "sha256:b9acddd652b585d75b20477888c56642fdade28bdfd3579aa24a4d2c037dd736"},+ {file = "wsproto-1.2.0.tar.gz", hash = "sha256:ad565f26ecb92588a3e43bc3d96164de84cd9902482b130d0ddbaa9664a85065"},+]++[[package]]+name = "xmltodict"+version = "0.14.2"+requires_python = ">=3.6"+summary = "Makes working with XML feel like you are working with JSON"+groups = ["default"]+files = [+ {file = "xmltodict-0.14.2-py2.py3-none-any.whl", hash = "sha256:20cc7d723ed729276e808f26fb6b3599f786cbc37e06c65e192ba77c40f20aac"},+ {file = "xmltodict-0.14.2.tar.gz", hash = "sha256:201e7c28bb210e374999d1dde6382923ab0ed1a8a5faeece48ab525b7810a553"},+]++[[package]]+name = "yarl"+version = "1.18.3"+requires_python = ">=3.9"+summary = "Yet another URL library"+groups = ["default"]+dependencies = [+ "idna>=2.0",+ "multidict>=4.0",+ "propcache>=0.2.0",+]+files = [+ {file = "yarl-1.18.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7df647e8edd71f000a5208fe6ff8c382a1de8edfbccdbbfe649d263de07d8c34"},+ {file = "yarl-1.18.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c69697d3adff5aa4f874b19c0e4ed65180ceed6318ec856ebc423aa5850d84f7"},+ {file = "yarl-1.18.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:602d98f2c2d929f8e697ed274fbadc09902c4025c5a9963bf4e9edfc3ab6f7ed"},+ {file = "yarl-1.18.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c654d5207c78e0bd6d749f6dae1dcbbfde3403ad3a4b11f3c5544d9906969dde"},+ {file = "yarl-1.18.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5094d9206c64181d0f6e76ebd8fb2f8fe274950a63890ee9e0ebfd58bf9d787b"},+ {file = "yarl-1.18.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:35098b24e0327fc4ebdc8ffe336cee0a87a700c24ffed13161af80124b7dc8e5"},+ {file = "yarl-1.18.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3236da9272872443f81fedc389bace88408f64f89f75d1bdb2256069a8730ccc"},+ {file = "yarl-1.18.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e2c08cc9b16f4f4bc522771d96734c7901e7ebef70c6c5c35dd0f10845270bcd"},+ {file = "yarl-1.18.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:80316a8bd5109320d38eef8833ccf5f89608c9107d02d2a7f985f98ed6876990"},+ {file = "yarl-1.18.3-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:c1e1cc06da1491e6734f0ea1e6294ce00792193c463350626571c287c9a704db"},+ {file = "yarl-1.18.3-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:fea09ca13323376a2fdfb353a5fa2e59f90cd18d7ca4eaa1fd31f0a8b4f91e62"},+ {file = "yarl-1.18.3-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:e3b9fd71836999aad54084906f8663dffcd2a7fb5cdafd6c37713b2e72be1760"},+ {file = "yarl-1.18.3-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:757e81cae69244257d125ff31663249b3013b5dc0a8520d73694aed497fb195b"},+ {file = "yarl-1.18.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:b1771de9944d875f1b98a745bc547e684b863abf8f8287da8466cf470ef52690"},+ {file = "yarl-1.18.3-cp310-cp310-win32.whl", hash = "sha256:8874027a53e3aea659a6d62751800cf6e63314c160fd607489ba5c2edd753cf6"},+ {file = "yarl-1.18.3-cp310-cp310-win_amd64.whl", hash = "sha256:93b2e109287f93db79210f86deb6b9bbb81ac32fc97236b16f7433db7fc437d8"},+ {file = "yarl-1.18.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:8503ad47387b8ebd39cbbbdf0bf113e17330ffd339ba1144074da24c545f0069"},+ {file = "yarl-1.18.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:02ddb6756f8f4517a2d5e99d8b2f272488e18dd0bfbc802f31c16c6c20f22193"},+ {file = "yarl-1.18.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:67a283dd2882ac98cc6318384f565bffc751ab564605959df4752d42483ad889"},+ {file = "yarl-1.18.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d980e0325b6eddc81331d3f4551e2a333999fb176fd153e075c6d1c2530aa8a8"},+ {file = "yarl-1.18.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b643562c12680b01e17239be267bc306bbc6aac1f34f6444d1bded0c5ce438ca"},+ {file = "yarl-1.18.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c017a3b6df3a1bd45b9fa49a0f54005e53fbcad16633870104b66fa1a30a29d8"},+ {file = "yarl-1.18.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:75674776d96d7b851b6498f17824ba17849d790a44d282929c42dbb77d4f17ae"},+ {file = "yarl-1.18.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ccaa3a4b521b780a7e771cc336a2dba389a0861592bbce09a476190bb0c8b4b3"},+ {file = "yarl-1.18.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2d06d3005e668744e11ed80812e61efd77d70bb7f03e33c1598c301eea20efbb"},+ {file = "yarl-1.18.3-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:9d41beda9dc97ca9ab0b9888cb71f7539124bc05df02c0cff6e5acc5a19dcc6e"},+ {file = "yarl-1.18.3-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:ba23302c0c61a9999784e73809427c9dbedd79f66a13d84ad1b1943802eaaf59"},+ {file = "yarl-1.18.3-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:6748dbf9bfa5ba1afcc7556b71cda0d7ce5f24768043a02a58846e4a443d808d"},+ {file = "yarl-1.18.3-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:0b0cad37311123211dc91eadcb322ef4d4a66008d3e1bdc404808992260e1a0e"},+ {file = "yarl-1.18.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0fb2171a4486bb075316ee754c6d8382ea6eb8b399d4ec62fde2b591f879778a"},+ {file = "yarl-1.18.3-cp311-cp311-win32.whl", hash = "sha256:61b1a825a13bef4a5f10b1885245377d3cd0bf87cba068e1d9a88c2ae36880e1"},+ {file = "yarl-1.18.3-cp311-cp311-win_amd64.whl", hash = "sha256:b9d60031cf568c627d028239693fd718025719c02c9f55df0a53e587aab951b5"},+ {file = "yarl-1.18.3-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:1dd4bdd05407ced96fed3d7f25dbbf88d2ffb045a0db60dbc247f5b3c5c25d50"},+ {file = "yarl-1.18.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7c33dd1931a95e5d9a772d0ac5e44cac8957eaf58e3c8da8c1414de7dd27c576"},+ {file = "yarl-1.18.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:25b411eddcfd56a2f0cd6a384e9f4f7aa3efee14b188de13048c25b5e91f1640"},+ {file = "yarl-1.18.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:436c4fc0a4d66b2badc6c5fc5ef4e47bb10e4fd9bf0c79524ac719a01f3607c2"},+ {file = "yarl-1.18.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e35ef8683211db69ffe129a25d5634319a677570ab6b2eba4afa860f54eeaf75"},+ {file = "yarl-1.18.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:84b2deecba4a3f1a398df819151eb72d29bfeb3b69abb145a00ddc8d30094512"},+ {file = "yarl-1.18.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:00e5a1fea0fd4f5bfa7440a47eff01d9822a65b4488f7cff83155a0f31a2ecba"},+ {file = "yarl-1.18.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d0e883008013c0e4aef84dcfe2a0b172c4d23c2669412cf5b3371003941f72bb"},+ {file = "yarl-1.18.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:5a3f356548e34a70b0172d8890006c37be92995f62d95a07b4a42e90fba54272"},+ {file = "yarl-1.18.3-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:ccd17349166b1bee6e529b4add61727d3f55edb7babbe4069b5764c9587a8cc6"},+ {file = "yarl-1.18.3-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:b958ddd075ddba5b09bb0be8a6d9906d2ce933aee81100db289badbeb966f54e"},+ {file = "yarl-1.18.3-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c7d79f7d9aabd6011004e33b22bc13056a3e3fb54794d138af57f5ee9d9032cb"},+ {file = "yarl-1.18.3-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:4891ed92157e5430874dad17b15eb1fda57627710756c27422200c52d8a4e393"},+ {file = "yarl-1.18.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ce1af883b94304f493698b00d0f006d56aea98aeb49d75ec7d98cd4a777e9285"},+ {file = "yarl-1.18.3-cp312-cp312-win32.whl", hash = "sha256:f91c4803173928a25e1a55b943c81f55b8872f0018be83e3ad4938adffb77dd2"},+ {file = "yarl-1.18.3-cp312-cp312-win_amd64.whl", hash = "sha256:7e2ee16578af3b52ac2f334c3b1f92262f47e02cc6193c598502bd46f5cd1477"},+ {file = "yarl-1.18.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:90adb47ad432332d4f0bc28f83a5963f426ce9a1a8809f5e584e704b82685dcb"},+ {file = "yarl-1.18.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:913829534200eb0f789d45349e55203a091f45c37a2674678744ae52fae23efa"},+ {file = "yarl-1.18.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:ef9f7768395923c3039055c14334ba4d926f3baf7b776c923c93d80195624782"},+ {file = "yarl-1.18.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:88a19f62ff30117e706ebc9090b8ecc79aeb77d0b1f5ec10d2d27a12bc9f66d0"},+ {file = "yarl-1.18.3-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e17c9361d46a4d5addf777c6dd5eab0715a7684c2f11b88c67ac37edfba6c482"},+ {file = "yarl-1.18.3-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1a74a13a4c857a84a845505fd2d68e54826a2cd01935a96efb1e9d86c728e186"},+ {file = "yarl-1.18.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:41f7ce59d6ee7741af71d82020346af364949314ed3d87553763a2df1829cc58"},+ {file = "yarl-1.18.3-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f52a265001d830bc425f82ca9eabda94a64a4d753b07d623a9f2863fde532b53"},+ {file = "yarl-1.18.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:82123d0c954dc58db301f5021a01854a85bf1f3bb7d12ae0c01afc414a882ca2"},+ {file = "yarl-1.18.3-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:2ec9bbba33b2d00999af4631a3397d1fd78290c48e2a3e52d8dd72db3a067ac8"},+ {file = "yarl-1.18.3-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:fbd6748e8ab9b41171bb95c6142faf068f5ef1511935a0aa07025438dd9a9bc1"},+ {file = "yarl-1.18.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:877d209b6aebeb5b16c42cbb377f5f94d9e556626b1bfff66d7b0d115be88d0a"},+ {file = "yarl-1.18.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:b464c4ab4bfcb41e3bfd3f1c26600d038376c2de3297760dfe064d2cb7ea8e10"},+ {file = "yarl-1.18.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8d39d351e7faf01483cc7ff7c0213c412e38e5a340238826be7e0e4da450fdc8"},+ {file = "yarl-1.18.3-cp313-cp313-win32.whl", hash = "sha256:61ee62ead9b68b9123ec24bc866cbef297dd266175d53296e2db5e7f797f902d"},+ {file = "yarl-1.18.3-cp313-cp313-win_amd64.whl", hash = "sha256:578e281c393af575879990861823ef19d66e2b1d0098414855dd367e234f5b3c"},+ {file = "yarl-1.18.3-py3-none-any.whl", hash = "sha256:b57f4f58099328dfb26c6a771d09fb20dbbae81d20cfb66141251ea063bd101b"},+ {file = "yarl-1.18.3.tar.gz", hash = "sha256:ac1801c45cbf77b6c99242eeff4fffb5e4e73a800b5c4ad4fc0be5def634d2e1"},+]++[[package]]+name = "zstandard"+version = "0.23.0"+requires_python = ">=3.8"+summary = "Zstandard bindings for Python"+groups = ["default"]+dependencies = [+ "cffi>=1.17; platform_python_implementation == \"PyPy\"",+]+files = [+ {file = "zstandard-0.23.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:bf0a05b6059c0528477fba9054d09179beb63744355cab9f38059548fedd46a9"},+ {file = "zstandard-0.23.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fc9ca1c9718cb3b06634c7c8dec57d24e9438b2aa9a0f02b8bb36bf478538880"},+ {file = "zstandard-0.23.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:77da4c6bfa20dd5ea25cbf12c76f181a8e8cd7ea231c673828d0386b1740b8dc"},+ {file = "zstandard-0.23.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b2170c7e0367dde86a2647ed5b6f57394ea7f53545746104c6b09fc1f4223573"},+ {file = "zstandard-0.23.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c16842b846a8d2a145223f520b7e18b57c8f476924bda92aeee3a88d11cfc391"},+ {file = "zstandard-0.23.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:157e89ceb4054029a289fb504c98c6a9fe8010f1680de0201b3eb5dc20aa6d9e"},+ {file = "zstandard-0.23.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:203d236f4c94cd8379d1ea61db2fce20730b4c38d7f1c34506a31b34edc87bdd"},+ {file = "zstandard-0.23.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:dc5d1a49d3f8262be192589a4b72f0d03b72dcf46c51ad5852a4fdc67be7b9e4"},+ {file = "zstandard-0.23.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:752bf8a74412b9892f4e5b58f2f890a039f57037f52c89a740757ebd807f33ea"},+ {file = "zstandard-0.23.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:80080816b4f52a9d886e67f1f96912891074903238fe54f2de8b786f86baded2"},+ {file = "zstandard-0.23.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:84433dddea68571a6d6bd4fbf8ff398236031149116a7fff6f777ff95cad3df9"},+ {file = "zstandard-0.23.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:ab19a2d91963ed9e42b4e8d77cd847ae8381576585bad79dbd0a8837a9f6620a"},+ {file = "zstandard-0.23.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:59556bf80a7094d0cfb9f5e50bb2db27fefb75d5138bb16fb052b61b0e0eeeb0"},+ {file = "zstandard-0.23.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:27d3ef2252d2e62476389ca8f9b0cf2bbafb082a3b6bfe9d90cbcbb5529ecf7c"},+ {file = "zstandard-0.23.0-cp310-cp310-win32.whl", hash = "sha256:5d41d5e025f1e0bccae4928981e71b2334c60f580bdc8345f824e7c0a4c2a813"},+ {file = "zstandard-0.23.0-cp310-cp310-win_amd64.whl", hash = "sha256:519fbf169dfac1222a76ba8861ef4ac7f0530c35dd79ba5727014613f91613d4"},+ {file = "zstandard-0.23.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:34895a41273ad33347b2fc70e1bff4240556de3c46c6ea430a7ed91f9042aa4e"},+ {file = "zstandard-0.23.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:77ea385f7dd5b5676d7fd943292ffa18fbf5c72ba98f7d09fc1fb9e819b34c23"},+ {file = "zstandard-0.23.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:983b6efd649723474f29ed42e1467f90a35a74793437d0bc64a5bf482bedfa0a"},+ {file = "zstandard-0.23.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:80a539906390591dd39ebb8d773771dc4db82ace6372c4d41e2d293f8e32b8db"},+ {file = "zstandard-0.23.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:445e4cb5048b04e90ce96a79b4b63140e3f4ab5f662321975679b5f6360b90e2"},+ {file = "zstandard-0.23.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd30d9c67d13d891f2360b2a120186729c111238ac63b43dbd37a5a40670b8ca"},+ {file = "zstandard-0.23.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d20fd853fbb5807c8e84c136c278827b6167ded66c72ec6f9a14b863d809211c"},+ {file = "zstandard-0.23.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ed1708dbf4d2e3a1c5c69110ba2b4eb6678262028afd6c6fbcc5a8dac9cda68e"},+ {file = "zstandard-0.23.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:be9b5b8659dff1f913039c2feee1aca499cfbc19e98fa12bc85e037c17ec6ca5"},+ {file = "zstandard-0.23.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:65308f4b4890aa12d9b6ad9f2844b7ee42c7f7a4fd3390425b242ffc57498f48"},+ {file = "zstandard-0.23.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:98da17ce9cbf3bfe4617e836d561e433f871129e3a7ac16d6ef4c680f13a839c"},+ {file = "zstandard-0.23.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:8ed7d27cb56b3e058d3cf684d7200703bcae623e1dcc06ed1e18ecda39fee003"},+ {file = "zstandard-0.23.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:b69bb4f51daf461b15e7b3db033160937d3ff88303a7bc808c67bbc1eaf98c78"},+ {file = "zstandard-0.23.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:034b88913ecc1b097f528e42b539453fa82c3557e414b3de9d5632c80439a473"},+ {file = "zstandard-0.23.0-cp311-cp311-win32.whl", hash = "sha256:f2d4380bf5f62daabd7b751ea2339c1a21d1c9463f1feb7fc2bdcea2c29c3160"},+ {file = "zstandard-0.23.0-cp311-cp311-win_amd64.whl", hash = "sha256:62136da96a973bd2557f06ddd4e8e807f9e13cbb0bfb9cc06cfe6d98ea90dfe0"},+ {file = "zstandard-0.23.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:b4567955a6bc1b20e9c31612e615af6b53733491aeaa19a6b3b37f3b65477094"},+ {file = "zstandard-0.23.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1e172f57cd78c20f13a3415cc8dfe24bf388614324d25539146594c16d78fcc8"},+ {file = "zstandard-0.23.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b0e166f698c5a3e914947388c162be2583e0c638a4703fc6a543e23a88dea3c1"},+ {file = "zstandard-0.23.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:12a289832e520c6bd4dcaad68e944b86da3bad0d339ef7989fb7e88f92e96072"},+ {file = "zstandard-0.23.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d50d31bfedd53a928fed6707b15a8dbeef011bb6366297cc435accc888b27c20"},+ {file = "zstandard-0.23.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:72c68dda124a1a138340fb62fa21b9bf4848437d9ca60bd35db36f2d3345f373"},+ {file = "zstandard-0.23.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:53dd9d5e3d29f95acd5de6802e909ada8d8d8cfa37a3ac64836f3bc4bc5512db"},+ {file = "zstandard-0.23.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:6a41c120c3dbc0d81a8e8adc73312d668cd34acd7725f036992b1b72d22c1772"},+ {file = "zstandard-0.23.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:40b33d93c6eddf02d2c19f5773196068d875c41ca25730e8288e9b672897c105"},+ {file = "zstandard-0.23.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:9206649ec587e6b02bd124fb7799b86cddec350f6f6c14bc82a2b70183e708ba"},+ {file = "zstandard-0.23.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:76e79bc28a65f467e0409098fa2c4376931fd3207fbeb6b956c7c476d53746dd"},+ {file = "zstandard-0.23.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:66b689c107857eceabf2cf3d3fc699c3c0fe8ccd18df2219d978c0283e4c508a"},+ {file = "zstandard-0.23.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:9c236e635582742fee16603042553d276cca506e824fa2e6489db04039521e90"},+ {file = "zstandard-0.23.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a8fffdbd9d1408006baaf02f1068d7dd1f016c6bcb7538682622c556e7b68e35"},+ {file = "zstandard-0.23.0-cp312-cp312-win32.whl", hash = "sha256:dc1d33abb8a0d754ea4763bad944fd965d3d95b5baef6b121c0c9013eaf1907d"},+ {file = "zstandard-0.23.0-cp312-cp312-win_amd64.whl", hash = "sha256:64585e1dba664dc67c7cdabd56c1e5685233fbb1fc1966cfba2a340ec0dfff7b"},+ {file = "zstandard-0.23.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:576856e8594e6649aee06ddbfc738fec6a834f7c85bf7cadd1c53d4a58186ef9"},+ {file = "zstandard-0.23.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:38302b78a850ff82656beaddeb0bb989a0322a8bbb1bf1ab10c17506681d772a"},+ {file = "zstandard-0.23.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d2240ddc86b74966c34554c49d00eaafa8200a18d3a5b6ffbf7da63b11d74ee2"},+ {file = "zstandard-0.23.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2ef230a8fd217a2015bc91b74f6b3b7d6522ba48be29ad4ea0ca3a3775bf7dd5"},+ {file = "zstandard-0.23.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:774d45b1fac1461f48698a9d4b5fa19a69d47ece02fa469825b442263f04021f"},+ {file = "zstandard-0.23.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6f77fa49079891a4aab203d0b1744acc85577ed16d767b52fc089d83faf8d8ed"},+ {file = "zstandard-0.23.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ac184f87ff521f4840e6ea0b10c0ec90c6b1dcd0bad2f1e4a9a1b4fa177982ea"},+ {file = "zstandard-0.23.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:c363b53e257246a954ebc7c488304b5592b9c53fbe74d03bc1c64dda153fb847"},+ {file = "zstandard-0.23.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:e7792606d606c8df5277c32ccb58f29b9b8603bf83b48639b7aedf6df4fe8171"},+ {file = "zstandard-0.23.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a0817825b900fcd43ac5d05b8b3079937073d2b1ff9cf89427590718b70dd840"},+ {file = "zstandard-0.23.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:9da6bc32faac9a293ddfdcb9108d4b20416219461e4ec64dfea8383cac186690"},+ {file = "zstandard-0.23.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:fd7699e8fd9969f455ef2926221e0233f81a2542921471382e77a9e2f2b57f4b"},+ {file = "zstandard-0.23.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:d477ed829077cd945b01fc3115edd132c47e6540ddcd96ca169facff28173057"},+ {file = "zstandard-0.23.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fa6ce8b52c5987b3e34d5674b0ab529a4602b632ebab0a93b07bfb4dfc8f8a33"},+ {file = "zstandard-0.23.0-cp313-cp313-win32.whl", hash = "sha256:a9b07268d0c3ca5c170a385a0ab9fb7fdd9f5fd866be004c4ea39e44edce47dd"},+ {file = "zstandard-0.23.0-cp313-cp313-win_amd64.whl", hash = "sha256:f3513916e8c645d0610815c257cbfd3242adfd5c4cfa78be514e5a3ebb42a41b"},+ {file = "zstandard-0.23.0.tar.gz", hash = "sha256:b2d8c62d08e7255f68f7a740bae85b3c9b8e5466baa9cbf7f57f1cde0ac6bc09"},+]diff --git a/pyproject.toml b/pyproject.tomlindex e1b22df236..af5c682f74 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -77,4 +77,5 @@ dev = ["isort>=6.0.1","black>=25.1.0","pre-commit>=4.2.0",+ "flake8>=7.1.2",]diff --git a/src/local_deep_research/__init__.py b/src/local_deep_research/__init__.pyindex 755a3e4394..ecbb29fd8c 100644--- a/src/local_deep_research/__init__.py+++ b/src/local_deep_research/__init__.py@@ -7,18 +7,14 @@ and multiple search engines integration.__version__ = "0.1.0"-# Initialize configuration on module import-from .utilties.setup_utils import setup_user_directories+from .config import get_llm, get_search+from .report_generator import IntegratedReportGenerator# Import main componentsfrom .search_system import AdvancedSearchSystem-from .report_generator import IntegratedReportGenerator-from .config import get_llm, get_search++# Initialize configuration on module import+from .utilties.setup_utils import setup_user_directories# Export it-__all__ = [- "AdvancedSearchSystem",- "IntegratedReportGenerator",- "get_llm",- "get_search"-]\ No newline at end of file+__all__ = ["AdvancedSearchSystem", "IntegratedReportGenerator", "get_llm", "get_search"]diff --git a/src/local_deep_research/citation_handler.py b/src/local_deep_research/citation_handler.pyindex 688da1458d..c0a7e4a381 100644--- a/src/local_deep_research/citation_handler.py+++ b/src/local_deep_research/citation_handler.py@@ -1,10 +1,12 @@# citation_handler.py+from typing import Any, Dict, List, Union+from langchain_core.documents import Document-from typing import Dict, List, Union, Any-import re-from .utilties.search_utilities import remove_think_tags+from .config import settings+from .utilties.search_utilities import remove_think_tags+class CitationHandler:def __init__(self, llm):@@ -13,7 +15,10 @@ class CitationHandler:def _create_documents(self, search_results: Union[str, List[Dict]], nr_of_links: int = 0) -> List[Document]:- """Convert search results to LangChain documents format and add index to original search results."""+ """+ Convert search results to LangChain documents format and add index+ to original search results.+ """documents = []if isinstance(search_results, str):return documents@@ -22,14 +27,14 @@ class CitationHandler:if isinstance(result, dict):# Add index to the original search result dictionaryresult["index"] = str(i + nr_of_links + 1)-+content = result.get("full_content", result.get("snippet", ""))documents.append(Document(page_content=content,metadata={- "source": result.get("link", f"source_{i+1}"),- "title": result.get("title", f"Source {i+1}"),+ "source": result.get("link", f"source_{i + 1}"),+ "title": result.get("title", f"Source {i + 1}"),"index": i + nr_of_links + 1,},)@@ -69,7 +74,7 @@ Provide a detailed analysis with citations and always keep URLS. Never make up squestion: str,search_results: Union[str, List[Dict]],previous_knowledge: str,- nr_of_links : int+ nr_of_links: int,) -> Dict[str, Any]:"""Process follow-up analysis with citations."""documents = self._create_documents(search_results, nr_of_links=nr_of_links)@@ -80,7 +85,7 @@ Provide a detailed analysis with citations and always keep URLS. Never make up s2. Identify and flag any contradictions3. Verify basic facts (dates, company names, ownership)4. Note when sources disagree-+Previous Knowledge:{previous_knowledge}@@ -89,7 +94,9 @@ Provide a detailed analysis with citations and always keep URLS. Never make up sReturn any inconsistencies or conflicts found."""if settings.GENERAL.ENABLE_FACT_CHECKING:- fact_check_response = remove_think_tags(self.llm.invoke(fact_check_prompt).content)+ fact_check_response = remove_think_tags(+ self.llm.invoke(fact_check_prompt).content+ )else:fact_check_response = ""@@ -108,4 +115,4 @@ Provide a detailed analysis with citations and always keep URLS. Never make up sresponse = self.llm.invoke(prompt)- return {"content": remove_think_tags(response.content), "documents": documents}\ No newline at end of file+ return {"content": remove_think_tags(response.content), "documents": documents}diff --git a/src/local_deep_research/config.py b/src/local_deep_research/config.pyindex 277ae86c6e..2cf1f33325 100644--- a/src/local_deep_research/config.py+++ b/src/local_deep_research/config.py@@ -1,27 +1,36 @@# local_deep_research/config.py-from dynaconf import Dynaconf-from pathlib import Pathimport logging-from platformdirs import user_documents_dirimport os+from pathlib import Path++from dynaconf import Dynaconf+from platformdirs import user_documents_dir+# Setup logginglogger = logging.getLogger(__name__)+# Get config directorydef get_config_dir():import platform-+if platform.system() == "Windows":# Windows: Use Documents directoryfrom platformdirs import user_documents_dir- config_dir = Path(user_documents_dir()) / "LearningCircuit" / "local-deep-research"++ config_dir = (+ Path(user_documents_dir()) / "LearningCircuit" / "local-deep-research"+ )else:# Linux/Mac: Use standard config directoryfrom platformdirs import user_config_dir+config_dir = Path(user_config_dir("local_deep_research", "LearningCircuit"))-+logger.info(f"Looking for config in: {config_dir}")return config_dir++# Define config pathsCONFIG_DIR = get_config_dir() / "config"CONFIG_DIR.mkdir(parents=True, exist_ok=True)@@ -38,12 +47,6 @@ docs_base = Path(user_documents_dir()) / "local_deep_research"os.environ["DOCS_DIR"] = str(docs_base)------# Expose get_llm functiondef get_llm(*args, **kwargs):"""@@ -52,38 +55,42 @@ def get_llm(*args, **kwargs):# Import here to avoid circular importsimport importlib.utilimport sys-+llm_config_path = CONFIG_DIR / "llm_config.py"-+# If llm_config.py exists, use itif llm_config_path.exists():if str(CONFIG_DIR) not in sys.path:sys.path.insert(0, str(CONFIG_DIR))-+spec = importlib.util.spec_from_file_location("llm_config", llm_config_path)llm_config = importlib.util.module_from_spec(spec)spec.loader.exec_module(llm_config)-+if hasattr(llm_config, "get_llm"):return llm_config.get_llm(*args, **kwargs)-+# Fallback to utility functionfrom .utilties.llm_utils import get_model+return get_model(*args, **kwargs)+# Expose get_search functiondef get_search(search_tool=None):"""Helper function to get search engine"""-+# Use specified tool or default from settingstool = search_tool or settings.search.toollogger.info(f"Search tool is: {tool}")-+# Import here to avoid circular imports- from .web_search_engines.search_engine_factory import get_search as factory_get_search-+ from .web_search_engines.search_engine_factory import (+ get_search as factory_get_search,+ )+# Get search parametersparams = {"search_tool": tool,@@ -94,64 +101,69 @@ def get_search(search_tool=None):"safe_search": settings.search.safe_search,"search_snippets_only": settings.search.snippets_only,"search_language": settings.search.search_language,- "max_filtered_results": settings.search.max_filtered_results+ "max_filtered_results": settings.search.max_filtered_results,}logger.info(f"Search config params: {params}")# Create and return search enginereturn factory_get_search(**params)+def init_config_files():"""Initialize config files if they don't exist"""- import shutilimport os- import sysimport platform-+ import shutil+# Ensure CONFIG_DIR exists with explicit creationos.makedirs(CONFIG_DIR, exist_ok=True)-+# Get default files path with more reliable approach for Windowsif platform.system() == "Windows":# Use a more reliable method on Windowsfrom pkg_resources import resource_filename+try:- defaults_dir = Path(resource_filename('local_deep_research', 'defaults'))+ defaults_dir = Path(resource_filename("local_deep_research", "defaults"))logger.info(f"Using pkg_resources for Windows: {defaults_dir}")-+# Create settings.toml if it doesn't exist (with explicit Windows paths)settings_file = os.path.join(CONFIG_DIR, "settings.toml")default_settings = os.path.join(defaults_dir, "main.toml")if not os.path.exists(settings_file) and os.path.exists(default_settings):shutil.copyfile(default_settings, settings_file)logger.info(f"Created settings.toml at {settings_file}")-+# Create llm_config.py if it doesn't existllm_config_file = os.path.join(CONFIG_DIR, "llm_config.py")default_llm = os.path.join(defaults_dir, "llm_config.py")if not os.path.exists(llm_config_file) and os.path.exists(default_llm):shutil.copyfile(default_llm, llm_config_file)logger.info(f"Created llm_config.py at {llm_config_file}")-+# Create local_collections.toml if it doesn't existcollections_file = os.path.join(CONFIG_DIR, "local_collections.toml")default_collections = os.path.join(defaults_dir, "local_collections.toml")- if not os.path.exists(collections_file) and os.path.exists(default_collections):+ if not os.path.exists(collections_file) and os.path.exists(+ default_collections+ ):shutil.copyfile(default_collections, collections_file)logger.info(f"Created local_collections.toml at {collections_file}")-+# Create search_engines.toml if it doesn't existsearch_engines_file = os.path.join(CONFIG_DIR, "search_engines.toml")default_engines = os.path.join(defaults_dir, "search_engines.toml")- if not os.path.exists(search_engines_file) and os.path.exists(default_engines):+ if not os.path.exists(search_engines_file) and os.path.exists(+ default_engines+ ):shutil.copyfile(default_engines, search_engines_file)logger.info(f"Created search_engines.toml at {search_engines_file}")- # Create .env.template if it doesn't exist+ # Create .env.template if it doesn't existenv_template_file = CONFIG_DIR / ".env.template"if not env_template_file.exists():shutil.copy(defaults_dir / ".env.template", env_template_file)logger.info(f"Created .env.template at {env_template_file}")-+# Optionally create an empty .env file if it doesn't existenv_file = CONFIG_DIR / ".env"if not env_file.exists():@@ -164,33 +176,34 @@ def init_config_files():"""Initialize config files if they don't exist"""import shutilfrom importlib.resources import files-+# Get default files pathtry:- defaults_dir = files('local_deep_research.defaults')+ defaults_dir = files("local_deep_research.defaults")except ImportError:# Fallback for older Python versionsfrom pkg_resources import resource_filename- defaults_dir = Path(resource_filename('local_deep_research', 'defaults'))-++ defaults_dir = Path(resource_filename("local_deep_research", "defaults"))+# Create settings.toml if it doesn't existsettings_file = CONFIG_DIR / "settings.toml"if not settings_file.exists():shutil.copy(defaults_dir / "main.toml", settings_file)logger.info(f"Created settings.toml at {settings_file}")-+# Create llm_config.py if it doesn't existllm_config_file = CONFIG_DIR / "llm_config.py"if not llm_config_file.exists():shutil.copy(defaults_dir / "llm_config.py", llm_config_file)logger.info(f"Created llm_config.py at {llm_config_file}")-+# Create local_collections.toml if it doesn't existcollections_file = CONFIG_DIR / "local_collections.toml"if not collections_file.exists():shutil.copy(defaults_dir / "local_collections.toml", collections_file)logger.info(f"Created local_collections.toml at {collections_file}")-+# Create search_engines.toml if it doesn't existsearch_engines_file = CONFIG_DIR / "search_engines.toml"if not search_engines_file.exists():@@ -200,17 +213,18 @@ def init_config_files():if not env_template_file.exists():shutil.copy(defaults_dir / ".env.template", env_template_file)logger.info(f"Created .env.template at {env_template_file}")-+# Optionally create an empty .env file if it doesn't existenv_file = CONFIG_DIR / ".env"if not env_file.exists():with open(env_file, "w") as f:f.write("# Add your environment variables here\n")- logger.info(f"Created empty .env file at {env_file}")+ logger.info(f"Created empty .env file at {env_file}")secrets_file = CONFIG_DIR / ".secrets.toml"if not secrets_file.exists():with open(secrets_file, "w") as f:- f.write("""+ f.write(+ """# ANTHROPIC_API_KEY = "your-api-key-here"# OPENAI_API_KEY = "your-openai-key-here"# GOOGLE_API_KEY = "your-google-key-here"@@ -218,8 +232,10 @@ def init_config_files():# GUARDIAN_API_KEY = "your-api-key-here"# GOOGLE_PSE_API_KEY = "your-google-api-key-here"# GOOGLE_PSE_ENGINE_ID = "your-programmable-search-engine-id-here"- """)-+ """+ )++# Initialize config files on importinit_config_files()@@ -230,7 +246,7 @@ settings = Dynaconf(settings_files=[str(SETTINGS_FILE),str(LOCAL_COLLECTIONS_FILE),- str(SEARCH_ENGINES_FILE),+ str(SEARCH_ENGINES_FILE),],secrets=str(SECRETS_FILE),env_prefix="LDR",@@ -238,4 +254,3 @@ settings = Dynaconf(envvar_prefix="LDR",env_file=str(CONFIG_DIR / ".env"),)-diff --git a/src/local_deep_research/defaults/__init__.py b/src/local_deep_research/defaults/__init__.pyindex 1e42005256..58ab8d95f2 100644--- a/src/local_deep_research/defaults/__init__.py+++ b/src/local_deep_research/defaults/__init__.py@@ -4,8 +4,9 @@ Default configuration module for Local Deep Research.This module is responsible for loading and initializing defaultconfiguration files and resources used throughout the application."""-import os+import logging+import osfrom pathlib import Pathlogger = logging.getLogger(__name__)@@ -18,27 +19,32 @@ DEFAULT_FILES = {"main.toml": DEFAULTS_DIR / "main.toml","local_collections.toml": DEFAULTS_DIR / "local_collections.toml","search_engines.toml": DEFAULTS_DIR / "search_engines.toml",- "llm_config.py": DEFAULTS_DIR / "llm_config.py"+ "llm_config.py": DEFAULTS_DIR / "llm_config.py",}+def get_default_file_path(filename):"""Get the path to a default configuration file."""if filename in DEFAULT_FILES:return DEFAULT_FILES[filename]return None+def list_default_files():"""List all available default configuration files."""return list(DEFAULT_FILES.keys())+def ensure_defaults_exist():"""Verify that all expected default files exist in the package."""missing = []for filename, filepath in DEFAULT_FILES.items():if not filepath.exists():missing.append(filename)-+if missing:- logger.warning(f"The following default files are missing from the package: {', '.join(missing)}")+ logger.warning(+ f"The following default files are missing from the package: {', '.join(missing)}"+ )return False- return True\ No newline at end of file+ return Truediff --git a/src/local_deep_research/defaults/llm_config.py b/src/local_deep_research/defaults/llm_config.pyindex ac226e1136..fe9f48e64b 100644--- a/src/local_deep_research/defaults/llm_config.py+++ b/src/local_deep_research/defaults/llm_config.py@@ -5,96 +5,114 @@ This file controls which language models are available and how they're configureYou can customize model selection, parameters, and fallbacks here."""+import logging+import os+from langchain_anthropic import ChatAnthropic-from langchain_openai import ChatOpenAI-from langchain_ollama import ChatOllamafrom langchain_community.llms import VLLM+from langchain_ollama import ChatOllama+from langchain_openai import ChatOpenAI+from ..config import settings-import os-import logging# Initialize environmentlogger = logging.getLogger(__name__)# Valid provider options-VALID_PROVIDERS = ["ollama", "openai", "anthropic", "vllm", "openai_endpoint", "lmstudio", "llamacpp", "none"]+VALID_PROVIDERS = [+ "ollama",+ "openai",+ "anthropic",+ "vllm",+ "openai_endpoint",+ "lmstudio",+ "llamacpp",+ "none",+]# ================================# LLM FUNCTIONS# ================================+def get_llm(model_name=None, temperature=None, provider=None):"""Get LLM instance based on model name and provider.-+Args:model_name: Name of the model to use (if None, uses settings.llm.model)temperature: Model temperature (if None, uses settings.llm.temperature)provider: Provider to use (if None, uses settings.llm.provider)-+Returns:A LangChain LLM instance"""# Use settings values for parameters if not providedif model_name is None:model_name = settings.llm.model-+if temperature is None:temperature = settings.llm.temperature-+if provider is None:provider = settings.llm.provider.lower()if provider not in VALID_PROVIDERS:logger.error(f"Invalid provider in settings: {provider}")- raise ValueError(f"Invalid provider: {provider}. Must be one of: {VALID_PROVIDERS}")-+ raise ValueError(+ f"Invalid provider: {provider}. Must be one of: {VALID_PROVIDERS}"+ )+# Common parameters for all modelscommon_params = {"temperature": temperature,"max_tokens": settings.llm.max_tokens,}-+# Handle different providersif provider == "anthropic":- api_key = settings.get('ANTHROPIC_API_KEY', '')+ api_key = settings.get("ANTHROPIC_API_KEY", "")if not api_key:- api_key = os.getenv('ANTHROPIC_API_KEY')+ api_key = os.getenv("ANTHROPIC_API_KEY")if not api_key:- logger.warning("ANTHROPIC_API_KEY not found. Falling back to default model.")+ logger.warning(+ "ANTHROPIC_API_KEY not found. Falling back to default model."+ )return get_fallback_model(temperature)-+return ChatAnthropic(model=model_name, anthropic_api_key=api_key, **common_params)-+elif provider == "openai":- api_key = settings.get('OPENAI_API_KEY', '')+ api_key = settings.get("OPENAI_API_KEY", "")if not api_key:- api_key = os.getenv('OPENAI_API_KEY')+ api_key = os.getenv("OPENAI_API_KEY")if not api_key:logger.warning("OPENAI_API_KEY not found. Falling back to default model.")return get_fallback_model(temperature)-+return ChatOpenAI(model=model_name, api_key=api_key, **common_params)-+elif provider == "openai_endpoint":- api_key = settings.get('OPENAI_ENDPOINT_API_KEY', '')+ api_key = settings.get("OPENAI_ENDPOINT_API_KEY", "")if not api_key:- api_key = os.getenv('OPENAI_ENDPOINT_API_KEY')+ api_key = os.getenv("OPENAI_ENDPOINT_API_KEY")if not api_key:- logger.warning("OPENAI_ENDPOINT_API_KEY not found. Falling back to default model.")+ logger.warning(+ "OPENAI_ENDPOINT_API_KEY not found. Falling back to default model."+ )return get_fallback_model(temperature)-+# Get endpoint URL from settingsopenai_endpoint_url = settings.llm.openai_endpoint_url-+return ChatOpenAI(- model=model_name,+ model=model_name,api_key=api_key,- openai_api_base=openai_endpoint_url,- **common_params+ openai_api_base=openai_endpoint_url,+ **common_params,)-+elif provider == "vllm":try:return VLLM(@@ -109,184 +127,210 @@ def get_llm(model_name=None, temperature=None, provider=None):logger.error(f"Error loading VLLM model: {e}")logger.warning("Falling back.")return get_fallback_model(temperature)-+elif provider == "ollama":try:# Use the configurable Ollama base URL- base_url = settings.get('OLLAMA_BASE_URL', settings.llm.get('ollama_base_url', 'http://localhost:11434'))+ base_url = settings.get(+ "OLLAMA_BASE_URL",+ settings.llm.get("ollama_base_url", "http://localhost:11434"),+ )return ChatOllama(model=model_name, base_url=base_url, **common_params)except Exception as e:logger.error(f"Error loading Ollama model: {e}")return get_fallback_model(temperature)-+elif provider == "lmstudio":- # LM Studio supports OpenAI API format, so we can use ChatOpenAI directly- lmstudio_url = settings.llm.get('lmstudio_url', "http://localhost:1234")-- return ChatOpenAI(- model=model_name,- api_key="lm-studio", # LM Studio doesn't require a real API key- base_url=f"{lmstudio_url}/v1", # Use the configured URL with /v1 endpoint- temperature=temperature,- max_tokens=settings.llm.max_tokens- )+ # LM Studio supports OpenAI API format, so we can use ChatOpenAI directly+ lmstudio_url = settings.llm.get("lmstudio_url", "http://localhost:1234")++ return ChatOpenAI(+ model=model_name,+ api_key="lm-studio", # LM Studio doesn't require a real API key+ base_url=f"{lmstudio_url}/v1", # Use the configured URL with /v1 endpoint+ temperature=temperature,+ max_tokens=settings.llm.max_tokens,+ )-elif provider == "llamacpp":- # Import LlamaCpp- from langchain_community.llms import LlamaCpp-- # Get LlamaCpp model path from settings- model_path = settings.llm.get('llamacpp_model_path', "")- if not model_path:- logger.error("llamacpp_model_path not set in settings")- raise ValueError("llamacpp_model_path not set in settings.toml")-- # Get additional LlamaCpp parameters- n_gpu_layers = settings.llm.get('llamacpp_n_gpu_layers', 1)- n_batch = settings.llm.get('llamacpp_n_batch', 512)- f16_kv = settings.llm.get('llamacpp_f16_kv', True)-- # Create LlamaCpp instance- return LlamaCpp(- model_path=model_path,- temperature=temperature,- max_tokens=settings.llm.max_tokens,- n_gpu_layers=n_gpu_layers,- n_batch=n_batch,- f16_kv=f16_kv,- verbose=True- )-+ # Import LlamaCpp+ from langchain_community.llms import LlamaCpp++ # Get LlamaCpp model path from settings+ model_path = settings.llm.get("llamacpp_model_path", "")+ if not model_path:+ logger.error("llamacpp_model_path not set in settings")+ raise ValueError("llamacpp_model_path not set in settings.toml")++ # Get additional LlamaCpp parameters+ n_gpu_layers = settings.llm.get("llamacpp_n_gpu_layers", 1)+ n_batch = settings.llm.get("llamacpp_n_batch", 512)+ f16_kv = settings.llm.get("llamacpp_f16_kv", True)++ # Create LlamaCpp instance+ return LlamaCpp(+ model_path=model_path,+ temperature=temperature,+ max_tokens=settings.llm.max_tokens,+ n_gpu_layers=n_gpu_layers,+ n_batch=n_batch,+ f16_kv=f16_kv,+ verbose=True,+ )+else:return get_fallback_model(temperature)+def get_fallback_model(temperature=None):"""Create a dummy model for when no providers are available"""from langchain_community.llms.fake import FakeListLLM+return FakeListLLM(- responses=["No language models are available. Please install Ollama or set up API keys."]+ responses=[+ "No language models are available. Please install Ollama or set up API keys."+ ])+# ================================# COMPATIBILITY FUNCTIONS# ================================+def get_available_provider_types():"""Return available model providers"""providers = {}-+if is_ollama_available():providers["ollama"] = "Ollama (local models)"-+if is_openai_available():providers["openai"] = "OpenAI API"-+if is_anthropic_available():providers["anthropic"] = "Anthropic API"-+if is_openai_endpoint_available():providers["openai_endpoint"] = "OpenAI-compatible Endpoint"-+if is_lmstudio_available():providers["lmstudio"] = "LM Studio (local models)"-+if is_llamacpp_available():providers["llamacpp"] = "LlamaCpp (local models)"-+# Check for VLLM capabilitytry:- import torch- import transformers+ import torch # noqa: F401+ import transformers # noqa: F401+providers["vllm"] = "VLLM (local models)"except ImportError:pass-+# Default fallbackif not providers:providers["none"] = "No model providers available"-+return providers+# ================================# HELPER FUNCTIONS# ================================+def is_openai_available():"""Check if OpenAI is available"""try:- api_key = settings.get('OPENAI_API_KEY', '')+ api_key = settings.get("OPENAI_API_KEY", "")if not api_key:- api_key = os.getenv('OPENAI_API_KEY')+ api_key = os.getenv("OPENAI_API_KEY")return bool(api_key)- except:+ except Exception:return False+def is_anthropic_available():"""Check if Anthropic is available"""try:- api_key = settings.get('ANTHROPIC_API_KEY', '')+ api_key = settings.get("ANTHROPIC_API_KEY", "")if not api_key:- api_key = os.getenv('ANTHROPIC_API_KEY')+ api_key = os.getenv("ANTHROPIC_API_KEY")return bool(api_key)- except:+ except Exception:return False+def is_openai_endpoint_available():"""Check if OpenAI endpoint is available"""try:- api_key = settings.get('OPENAI_ENDPOINT_API_KEY', '')+ api_key = settings.get("OPENAI_ENDPOINT_API_KEY", "")if not api_key:- api_key = os.getenv('OPENAI_ENDPOINT_API_KEY')- return bool(api_key)- except:+ api_key = os.getenv("OPENAI_ENDPOINT_API_KEY")+ return bool(api_key)+ except Exception:return False+def is_ollama_available():"""Check if Ollama is running"""try:import requests- base_url = settings.get('OLLAMA_BASE_URL', settings.llm.get('ollama_base_url', 'http://localhost:11434'))++ base_url = settings.get(+ "OLLAMA_BASE_URL",+ settings.llm.get("ollama_base_url", "http://localhost:11434"),+ )response = requests.get(f"{base_url}/api/tags", timeout=1.0)return response.status_code == 200- except:+ except Exception:return False+def is_vllm_available():"""Check if VLLM capability is available"""try:- import torch- import transformers+ import torch # noqa: F401+ import transformers # noqa: F401+return Trueexcept ImportError:return False+def is_lmstudio_available():"""Check if LM Studio is available"""try:import requests- lmstudio_url = settings.llm.get('lmstudio_url', 'http://localhost:1234')++ lmstudio_url = settings.llm.get("lmstudio_url", "http://localhost:1234")# LM Studio typically uses OpenAI-compatible endpointsresponse = requests.get(f"{lmstudio_url}/v1/models", timeout=1.0)return response.status_code == 200- except:+ except Exception:return False+def is_llamacpp_available():"""Check if LlamaCpp is available and configured"""try:- from langchain_community.llms import LlamaCpp- model_path = settings.llm.get('llamacpp_model_path', '')+ from langchain_community.llms import LlamaCpp # noqa: F401++ model_path = settings.llm.get("llamacpp_model_path", "")return bool(model_path) and os.path.exists(model_path)- except:+ except Exception:return False+def get_available_providers():"""Get dictionary of available providers"""return get_available_provider_types()+# Log which providers are availableAVAILABLE_PROVIDERS = get_available_providers()logger.info(f"Available providers: {list(AVAILABLE_PROVIDERS.keys())}")@@ -294,4 +338,4 @@ logger.info(f"Available providers: {list(AVAILABLE_PROVIDERS.keys())}")# Check if selected provider is availableselected_provider = settings.llm.provider.lower()if selected_provider not in AVAILABLE_PROVIDERS and selected_provider != "none":- logger.warning(f"Selected provider {selected_provider} is not available.")\ No newline at end of file+ logger.warning(f"Selected provider {selected_provider} is not available.")diff --git a/src/local_deep_research/main.py b/src/local_deep_research/main.pyindex c27c163c9b..9b99370e5b 100644--- a/src/local_deep_research/main.py+++ b/src/local_deep_research/main.py@@ -1,6 +1,9 @@-from .search_system import AdvancedSearchSystemfrom typing import Dict+from .config import settings+from .report_generator import IntegratedReportGenerator+from .search_system import AdvancedSearchSystem+def print_report(report: Dict):"""Print and save the report in a readable format"""@@ -11,8 +14,6 @@ def print_report(report: Dict):# Print contentprint(report["content"])--# Save to file in markdown formatwith open("report.md", "w", encoding="utf-8") as markdown_file:# Write content@@ -24,30 +25,29 @@ def print_report(report: Dict):markdown_file.write(f"- Query: {report['metadata']['query']}\n")- print(f"\nReport has been saved to report.md")+ print("\nReport has been saved to report.md")-from .report_generator import IntegratedReportGenerator-report_generator = IntegratedReportGenerator()-def main():- import osimport logging+from .utilties.setup_utils import setup_user_directories-+# Configure logginglogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)- logger.info(f"Starting with settings: iterations={settings.search.iterations}, "- f"questions_per_iteration={settings.search.questions_per_iteration}")-+ logger.info(+ f"Starting with settings: iterations={settings.search.iterations}, "+ f"questions_per_iteration={settings.search.questions_per_iteration}"+ )+# Explicitly run setuplogger.info("Initializing configuration...")setup_user_directories()-+system = AdvancedSearchSystem()print("Welcome to the Advanced Research System")@@ -97,9 +97,7 @@ def main():else:# Full Report- final_report = report_generator.generate_report(- results, query- )+ final_report = report_generator.generate_report(results, query)print("\n=== RESEARCH REPORT ===")print_report(final_report)@@ -109,5 +107,6 @@ def main():else:print("Research failed. Please try again.")+if __name__ == "__main__":- main()\ No newline at end of file+ main()diff --git a/src/local_deep_research/report_generator.py b/src/local_deep_research/report_generator.pyindex 09d506ebd7..79deba4a16 100644--- a/src/local_deep_research/report_generator.py+++ b/src/local_deep_research/report_generator.py@@ -1,9 +1,11 @@from typing import Dict, List++from . import utiltiesfrom .config import get_llmfrom .search_system import AdvancedSearchSystem-from . import utiltiesfrom .utilties import search_utilities+class IntegratedReportGenerator:def __init__(self, searches_per_section: int = 2):self.model = get_llm()@@ -19,17 +21,16 @@ class IntegratedReportGenerator:structure = self._determine_report_structure(initial_findings, query)# Step 2: Research and generate content for each section in one step- sections = self._research_and_generate_sections(initial_findings, structure, query)+ sections = self._research_and_generate_sections(+ initial_findings, structure, query+ )# Step 3: Format final reportreport = self._format_final_report(sections, structure, query)return report- def _determine_report_structure(- self, findings: Dict, query: str- ) -> List[Dict]:-+ def _determine_report_structure(self, findings: Dict, query: str) -> List[Dict]:"""Analyze content and determine optimal report structure."""combined_content = findings["current_knowledge"]prompt = f"""@@ -89,44 +90,51 @@ class IntegratedReportGenerator:) -> Dict[str, str]:"""Research and generate content for each section in one step."""sections = {}-+for section in structure:print(f"Processing section: {section['name']}")section_content = []section_content.append(f"# {section['name']}\n")-+# Process each subsection by directly researching itfor subsection in section["subsections"]:# Add subsection headersection_content.append(f"## {subsection['name']}\n")section_content.append(f"_{subsection['purpose']}_\n\n")-+# Generate a specific search query for this subsectionsubsection_query = f"{query} {section['name']} {subsection['name']} {subsection['purpose']}"-- print(f"Researching subsection: {subsection['name']} with query: {subsection_query}")-++ print(+ f"Researching subsection: {subsection['name']} with query: {subsection_query}"+ )+# Configure search system for focused searchoriginal_max_iterations = self.search_system.max_iterationsself.search_system.max_iterations = 1 # Keep search focused-+# Perform search for this subsectionsubsection_results = self.search_system.analyze_topic(subsection_query)-+# Restore original iterations settingself.search_system.max_iterations = original_max_iterations-+# Add the researched content for this subsection- if "current_knowledge" in subsection_results and subsection_results["current_knowledge"]:+ if (+ "current_knowledge" in subsection_results+ and subsection_results["current_knowledge"]+ ):section_content.append(subsection_results["current_knowledge"])else:- section_content.append("*Limited information was found for this subsection.*\n")-+ section_content.append(+ "*Limited information was found for this subsection.*\n"+ )+section_content.append("\n\n")-+# Combine all content for this sectionsections[section["name"]] = "\n".join(section_content)-+return sectionsdef _generate_sections(@@ -154,15 +162,21 @@ class IntegratedReportGenerator:for i, section in enumerate(structure, 1):toc.append(f"{i}. **{section['name']}**")for j, subsection in enumerate(section["subsections"], 1):- toc.append(f" {i}.{j} {subsection['name']} | _{subsection['purpose']}_")+ toc.append(+ f" {i}.{j} {subsection['name']} | _{subsection['purpose']}_"+ )# Combine TOC and sectionsreport_parts = ["\n".join(toc), ""]-+# Add a summary of the researchreport_parts.append("# Research Summary")- report_parts.append(f"This report was researched using an advanced search system.")- report_parts.append(f"Research included targeted searches for each section and subsection.")+ report_parts.append(+ "This report was researched using an advanced search system."+ )+ report_parts.append(+ "Research included targeted searches for each section and subsection."+ )report_parts.append("\n---\n")# Add each section's content@@ -170,30 +184,32 @@ class IntegratedReportGenerator:if section["name"] in sections:report_parts.append(sections[section["name"]])report_parts.append("")-+# Format links from search system- formatted_all_links = utilties.search_utilities.format_links(links=self.search_system.all_links_of_system)-+ formatted_all_links = utilties.search_utilities.format_links(+ links=self.search_system.all_links_of_system+ )+# Create final report with all partsfinal_report_content = "\n\n".join(report_parts)- final_report_content = final_report_content + "\n\n## Sources\n\n" + formatted_all_links-+ final_report_content = (+ final_report_content + "\n\n## Sources\n\n" + formatted_all_links+ )+# Create metadata dictionaryfrom datetime import datetime+metadata = {"generated_at": datetime.utcnow().isoformat(),"initial_sources": len(self.search_system.all_links_of_system),"sections_researched": len(structure),"searches_per_section": self.searches_per_section,- "query": query+ "query": query,}-+# Return both content and metadata- return {- "content": final_report_content,- "metadata": metadata- }+ return {"content": final_report_content, "metadata": metadata}def _generate_error_report(self, query: str, error_msg: str) -> str:error_report = f"=== ERROR REPORT ===\nQuery: {query}\nError: {error_msg}"- return error_report\ No newline at end of file+ return error_reportdiff --git a/src/local_deep_research/search_system.py b/src/local_deep_research/search_system.pyindex 87527b57ed..80cba5f90e 100644--- a/src/local_deep_research/search_system.py+++ b/src/local_deep_research/search_system.py@@ -1,49 +1,61 @@-from typing import Dict, List, Optional, Callable-from datetime import datetime-from .utilties.search_utilities import remove_think_tags, format_findings_to_text, format_links+import loggingimport os-from .utilties.enums import KnowledgeAccumulationApproach-from .config import settings, get_llm, get_search-from .citation_handler import CitationHandlerfrom datetime import datetime-from .utilties.search_utilities import extract_links_from_search_results-import logging+from typing import Callable, Dict, List++from .citation_handler import CitationHandler+from .config import get_llm, get_search, settings+from .utilties.enums import KnowledgeAccumulationApproach+from .utilties.search_utilities import (+ extract_links_from_search_results,+ format_findings_to_text,+ format_links,+ remove_think_tags,+)+logger = logging.getLogger(__name__)++class AdvancedSearchSystem:def __init__(self):-# Get fresh configurationself.search = get_search()self.model = get_llm()self.max_iterations = settings.search.iterationsself.questions_per_iteration = settings.search.questions_per_iteration-+self.context_limit = settings.general.knowledge_accumulation_context_limitself.questions_by_iteration = {}self.citation_handler = CitationHandler(self.model)self.progress_callback = Noneself.all_links_of_system = list()-+# Check if search is available, log warning if notif self.search is None:- logger.info("WARNING: Search system initialized with no search engine! Research will not be effective.")- self._update_progress("WARNING: No search engine available", None, {"error": "No search engine configured properly"})--+ logger.info(+ "WARNING: Search system initialized with no search engine! Research will not be effective."+ )+ self._update_progress(+ "WARNING: No search engine available",+ None,+ {"error": "No search engine configured properly"},+ )def set_progress_callback(self, callback: Callable[[str, int, dict], None]) -> None:"""Set a callback function to receive progress updates.-+Args:callback: Function that takes (message, progress_percent, metadata)"""self.progress_callback = callback- def _update_progress(self, message: str, progress_percent: int = None, metadata: dict = None) -> None:+ def _update_progress(+ self, message: str, progress_percent: int = None, metadata: dict = None+ ) -> None:"""Send a progress update via the callback if available.-+Args:message: Description of the current progress stateprogress_percent: Progress percentage (0-100), if applicable@@ -55,13 +67,17 @@ class AdvancedSearchSystem:def _get_follow_up_questions(self, current_knowledge: str, query: str) -> List[str]:now = datetime.now()current_time = now.strftime("%Y-%m-%d")-- self._update_progress("Generating follow-up questions...", None, {"iteration": len(self.questions_by_iteration)})-++ self._update_progress(+ "Generating follow-up questions...",+ None,+ {"iteration": len(self.questions_by_iteration)},+ )+if self.questions_by_iteration:prompt = f"""Critically reflect current knowledge (e.g., timeliness), what {self.questions_per_iteration} high-quality internet search questions remain unanswered to exactly answer the query?Query: {query}- Today: {current_time}+ Today: {current_time}Past questions: {str(self.questions_by_iteration)}Knowledge: {current_knowledge}Include questions that critically reflect current knowledge.@@ -75,135 +91,165 @@ class AdvancedSearchSystem:for q in remove_think_tags(response.content).split("\n")if q.strip().startswith("Q:")][: self.questions_per_iteration]-+self._update_progress(- f"Generated {len(questions)} follow-up questions",- None,- {"questions": questions}+ f"Generated {len(questions)} follow-up questions",+ None,+ {"questions": questions},)-+return questions- def _compress_knowledge(self, current_knowledge: str, query: str, section_links) -> List[str]:+ def _compress_knowledge(+ self, current_knowledge: str, query: str, section_links+ ) -> List[str]:self._update_progress("Compressing and summarizing knowledge...", None)- now = datetime.now()- current_time = now.strftime("%Y-%m-%d")formatted_links = format_links(links=section_links)if self.questions_by_iteration:- prompt = f"""First provide a high-quality 1 page explanation with IEEE Referencing Style e.g. [1,2]. Never make up sources. Than provide a exact high-quality one sentence-long answer to the query.+ prompt = f"""First provide a high-quality 1 page explanation with IEEE Referencing Style e.g. [1,2]. Never make up sources. Than provide a exact high-quality one sentence-long answer to the query.Knowledge: {current_knowledge}Query: {query}I will append following text to your output for the sources (dont repeat it):\n\n {formatted_links}"""response = self.model.invoke(prompt)-+self._update_progress("Knowledge compression complete", None)response = remove_think_tags(response.content)- response = str(response) #+ "\n\n" + str(formatted_links)+ response = str(response) # + "\n\n" + str(formatted_links)return responsedef analyze_topic(self, query: str) -> Dict:logger.info(f"Starting research on topic: {query}")--findings = []current_knowledge = ""iteration = 0total_iterations = self.max_iterationssection_links = list()-- self._update_progress("Initializing research system", 5, {- "phase": "init",- "iterations_planned": total_iterations- })-++ self._update_progress(+ "Initializing research system",+ 5,+ {"phase": "init", "iterations_planned": total_iterations},+ )+# Check if search engine is availableif self.search is None:- error_msg = "Error: No search engine available. Please check your configuration."- self._update_progress(error_msg, 100, {- "phase": "error",- "error": "No search engine available",- "status": "failed"- })+ error_msg = (+ "Error: No search engine available. Please check your configuration."+ )+ self._update_progress(+ error_msg,+ 100,+ {+ "phase": "error",+ "error": "No search engine available",+ "status": "failed",+ },+ )return {"findings": [],"iterations": 0,"questions": {},"formatted_findings": "Error: Unable to conduct research without a search engine.","current_knowledge": "",- "error": error_msg+ "error": error_msg,}while iteration < self.max_iterations:iteration_progress_base = (iteration / total_iterations) * 100- self._update_progress(f"Starting iteration {iteration + 1} of {total_iterations}",- int(iteration_progress_base),- {"phase": "iteration_start", "iteration": iteration + 1})-+ self._update_progress(+ f"Starting iteration {iteration + 1} of {total_iterations}",+ int(iteration_progress_base),+ {"phase": "iteration_start", "iteration": iteration + 1},+ )+# Generate questions for this iterationquestions = self._get_follow_up_questions(current_knowledge, query)self.questions_by_iteration[iteration] = questionslogger.info(f"Generated questions: {questions}")question_count = len(questions)for q_idx, question in enumerate(questions):- question_progress_base = iteration_progress_base + (((q_idx+1) / question_count) * (100/total_iterations) * 0.5)-- self._update_progress(f"Searching for: {question}",- int(question_progress_base),- {"phase": "search", "iteration": iteration + 1, "question_index": q_idx + 1})-+ question_progress_base = iteration_progress_base + (+ ((q_idx + 1) / question_count) * (100 / total_iterations) * 0.5+ )++ self._update_progress(+ f"Searching for: {question}",+ int(question_progress_base),+ {+ "phase": "search",+ "iteration": iteration + 1,+ "question_index": q_idx + 1,+ },+ )+try:if self.search is None:- self._update_progress(f"Search engine unavailable, skipping search for: {question}",- int(question_progress_base + 2),- {"phase": "search_error", "error": "No search engine available"})+ self._update_progress(+ f"Search engine unavailable, skipping search for: {question}",+ int(question_progress_base + 2),+ {+ "phase": "search_error",+ "error": "No search engine available",+ },+ )search_results = []else:search_results = self.search.run(question)except Exception as e:error_msg = f"Error during search: {str(e)}"logger.info(f"SEARCH ERROR: {error_msg}")- self._update_progress(error_msg,- int(question_progress_base + 2),- {"phase": "search_error", "error": str(e)})+ self._update_progress(+ error_msg,+ int(question_progress_base + 2),+ {"phase": "search_error", "error": str(e)},+ )search_results = []-+if search_results is None:- self._update_progress(f"No search results found for question: {question}",- int(question_progress_base + 2),- {"phase": "search_complete", "result_count": 0})+ self._update_progress(+ f"No search results found for question: {question}",+ int(question_progress_base + 2),+ {"phase": "search_complete", "result_count": 0},+ )search_results = [] # Initialize to empty list instead of Nonecontinue-- self._update_progress(f"Found {len(search_results)} results for question: {question}",- int(question_progress_base + 2),- {"phase": "search_complete", "result_count": len(search_results)})-++ self._update_progress(+ f"Found {len(search_results)} results for question: {question}",+ int(question_progress_base + 2),+ {"phase": "search_complete", "result_count": len(search_results)},+ )+logger.info(f"len search: {len(search_results)}")-+if len(search_results) == 0:continue- self._update_progress(f"Analyzing results for: {question}",- int(question_progress_base + 5),- {"phase": "analysis"})-+ self._update_progress(+ f"Analyzing results for: {question}",+ int(question_progress_base + 5),+ {"phase": "analysis"},+ )try:result = self.citation_handler.analyze_followup(- question, search_results, current_knowledge, nr_of_links=len(self.all_links_of_system)+ question,+ search_results,+ current_knowledge,+ nr_of_links=len(self.all_links_of_system),)links = extract_links_from_search_results(search_results)self.all_links_of_system.extend(links)section_links.extend(links)- formatted_links = ""+ formatted_links = ""if links:- formatted_links=format_links(links=links)-- logger.info(f"Generated questions: {formatted_links}")+ formatted_links = format_links(links=links)++ logger.info(f"Generated questions: {formatted_links}")if result is not None:results_with_links = str(result["content"])findings.append(@@ -216,75 +262,104 @@ class AdvancedSearchSystem:})- if settings.general.knowledge_accumulation != str(KnowledgeAccumulationApproach.NO_KNOWLEDGE.value):- current_knowledge = current_knowledge + "\n\n\n New: \n" + results_with_links-- if settings.general.knowledge_accumulation == str(KnowledgeAccumulationApproach.QUESTION.value):+ if settings.general.knowledge_accumulation != str(+ KnowledgeAccumulationApproach.NO_KNOWLEDGE.value+ ):+ current_knowledge = (+ current_knowledge+ + "\n\n\n New: \n"+ + results_with_links+ )++ if settings.general.knowledge_accumulation == str(+ KnowledgeAccumulationApproach.QUESTION.value+ ):logger.info("Compressing knowledge")- self._update_progress(f"Compress Knowledge for: {question}",- int(question_progress_base + 0),- {"phase": "analysis"})- current_knowledge = self._compress_knowledge(current_knowledge , query, section_links)-- self._update_progress(f"Analysis complete for question: {question}",- int(question_progress_base + 10),- {"phase": "analysis_complete"})+ self._update_progress(+ f"Compress Knowledge for: {question}",+ int(question_progress_base + 0),+ {"phase": "analysis"},+ )+ current_knowledge = self._compress_knowledge(+ current_knowledge, query, section_links+ )++ self._update_progress(+ f"Analysis complete for question: {question}",+ int(question_progress_base + 10),+ {"phase": "analysis_complete"},+ )except Exception as e:error_msg = f"Error analyzing results: {str(e)}"logger.info(f"ANALYSIS ERROR: {error_msg}")- self._update_progress(error_msg,- int(question_progress_base + 10),- {"phase": "analysis_error", "error": str(e)})+ self._update_progress(+ error_msg,+ int(question_progress_base + 10),+ {"phase": "analysis_error", "error": str(e)},+ )iteration += 1-- self._update_progress(f"Compressing knowledge after iteration {iteration}",- int((iteration / total_iterations) * 100 - 5),- {"phase": "knowledge_compression"})++ self._update_progress(+ f"Compressing knowledge after iteration {iteration}",+ int((iteration / total_iterations) * 100 - 5),+ {"phase": "knowledge_compression"},+ )logger.info(str(iteration))logger.info(settings.general.knowledge_accumulation)logger.info(str(KnowledgeAccumulationApproach.ITERATION.value))- if settings.general.knowledge_accumulation == KnowledgeAccumulationApproach.ITERATION.value:+ if (+ settings.general.knowledge_accumulation+ == KnowledgeAccumulationApproach.ITERATION.value+ ):try:logger.info("ITERATION - Compressing Knowledge")- current_knowledge = self._compress_knowledge(current_knowledge , query, section_links)+ current_knowledge = self._compress_knowledge(+ current_knowledge, query, section_links+ )logger.info("FINISHED ITERATION - Compressing Knowledge")except Exception as e:error_msg = f"Error compressing knowledge: {str(e)}"logger.info(f"COMPRESSION ERROR: {error_msg}")- self._update_progress(error_msg,- int((iteration / total_iterations) * 100 - 3),- {"phase": "compression_error", "error": str(e)})+ self._update_progress(+ error_msg,+ int((iteration / total_iterations) * 100 - 3),+ {"phase": "compression_error", "error": str(e)},+ )+ self._update_progress(+ f"Iteration {iteration} complete",+ int((iteration / total_iterations) * 100),+ {"phase": "iteration_complete", "iteration": iteration},+ )-- self._update_progress(f"Iteration {iteration} complete",- int((iteration / total_iterations) * 100),- {"phase": "iteration_complete", "iteration": iteration})-try:- formatted_findings = self._save_findings(findings, current_knowledge, query)+ formatted_findings = self._save_findings(+ findings, current_knowledge, query+ )except Exception as e:error_msg = f"Error saving findings: {str(e)}"logger.info(f"SAVE ERROR: {error_msg}")- self._update_progress(error_msg,- int((iteration / total_iterations) * 100),- {"phase": "save_error", "error": str(e)})+ self._update_progress(+ error_msg,+ int((iteration / total_iterations) * 100),+ {"phase": "save_error", "error": str(e)},+ )formatted_findings = "Error: Could not format findings due to an error."self._update_progress("Research complete", 95, {"phase": "complete"})-+return {"findings": findings,"iterations": iteration,"questions": self.questions_by_iteration,"formatted_findings": formatted_findings,- "current_knowledge": current_knowledge+ "current_knowledge": current_knowledge,}def _save_findings(self, findings: List[Dict], current_knowledge: str, query: str):logger.info("Saving findings ...")self._update_progress("Saving research findings...", None)-+formatted_findings = format_findings_to_text(findings, current_knowledge, self.questions_by_iteration)@@ -293,14 +368,15 @@ class AdvancedSearchSystem:]safe_query = safe_query.replace(" ", "_").lower()import local_deep_research.config as conf+output_dir = f"{conf.get_config_dir()}/research_outputs"if not os.path.exists(output_dir):os.makedirs(output_dir)-+filename = os.path.join(output_dir, f"formatted_output_{safe_query}.txt")with open(filename, "w", encoding="utf-8") as text_file:text_file.write(formatted_findings)logger.info("Saved findings")self._update_progress("Research findings saved", None, {"filename": filename})- return formatted_findings\ No newline at end of file+ return formatted_findingsdiff --git a/src/local_deep_research/utilties/enums.py b/src/local_deep_research/utilties/enums.pyindex 01eaffcf4b..3f39162fcb 100644--- a/src/local_deep_research/utilties/enums.py+++ b/src/local_deep_research/utilties/enums.py@@ -1,9 +1,9 @@# config/enums.py-from enum import Enum, auto+from enum import Enum+class KnowledgeAccumulationApproach(Enum):QUESTION = "QUESTION"ITERATION = "ITERATION"NO_KNOWLEDGE = "NO_KNOWLEDGE"MAX_NR_OF_CHARACTERS = "MAX_NR_OF_CHARACTERS"-diff --git a/src/local_deep_research/utilties/llm_utils.py b/src/local_deep_research/utilties/llm_utils.pyindex 397c7c02cd..0f229d3252 100644--- a/src/local_deep_research/utilties/llm_utils.py+++ b/src/local_deep_research/utilties/llm_utils.py@@ -6,64 +6,75 @@ This module provides utility functions for working with language modelswhen the user's llm_config.py is missing or incomplete."""-import osimport logging-from typing import Dict, Any, Optional+import os+from typing import Any, Optional# Setup logginglogger = logging.getLogger(__name__)+def get_model(model_name: Optional[str] = None,model_type: Optional[str] = None,temperature: Optional[float] = None,- **kwargs+ **kwargs,) -> Any:"""Get a language model instance as fallback when llm_config.get_llm is not available.-+Args:model_name: Name of the model to usemodel_type: Type of the model providertemperature: Model temperature**kwargs: Additional parameters-+Returns:LangChain language model instance"""# Get default values from kwargs or use reasonable defaults- model_name = model_name or kwargs.get('DEFAULT_MODEL', 'mistral')- model_type = model_type or kwargs.get('DEFAULT_MODEL_TYPE', 'ollama')- temperature = temperature or kwargs.get('DEFAULT_TEMPERATURE', 0.7)- max_tokens = kwargs.get('max_tokens', kwargs.get('MAX_TOKENS', 30000))-+ model_name = model_name or kwargs.get("DEFAULT_MODEL", "mistral")+ model_type = model_type or kwargs.get("DEFAULT_MODEL_TYPE", "ollama")+ temperature = temperature or kwargs.get("DEFAULT_TEMPERATURE", 0.7)+ max_tokens = kwargs.get("max_tokens", kwargs.get("MAX_TOKENS", 30000))+# Common parameterscommon_params = {"temperature": temperature,"max_tokens": max_tokens,}-+# Add additional kwargsfor key, value in kwargs.items():- if key not in ['DEFAULT_MODEL', 'DEFAULT_MODEL_TYPE', 'DEFAULT_TEMPERATURE', 'MAX_TOKENS']:+ if key not in [+ "DEFAULT_MODEL",+ "DEFAULT_MODEL_TYPE",+ "DEFAULT_TEMPERATURE",+ "MAX_TOKENS",+ ]:common_params[key] = value-+# Try to load the model based on typeif model_type == "ollama":try:from langchain_ollama import ChatOllama+return ChatOllama(model=model_name, **common_params)except ImportError:try:from langchain_community.llms import Ollama+return Ollama(model=model_name, **common_params)except ImportError:- logger.error("Neither langchain_ollama nor langchain_community.llms.Ollama available")+ logger.error(+ "Neither langchain_ollama nor langchain_community.llms.Ollama available"+ )raise-+elif model_type == "openai":try:from langchain_openai import ChatOpenAI+api_key = os.getenv("OPENAI_API_KEY")if not api_key:raise ValueError("OPENAI_API_KEY environment variable not set")@@ -71,46 +82,69 @@ def get_model(except ImportError:logger.error("langchain_openai not available")raise-+elif model_type == "anthropic":try:from langchain_anthropic import ChatAnthropic+api_key = os.getenv("ANTHROPIC_API_KEY")if not api_key:raise ValueError("ANTHROPIC_API_KEY environment variable not set")- return ChatAnthropic(model=model_name, anthropic_api_key=api_key, **common_params)+ return ChatAnthropic(+ model=model_name, anthropic_api_key=api_key, **common_params+ )except ImportError:logger.error("langchain_anthropic not available")raise-+elif model_type == "openai_endpoint":try:from langchain_openai import ChatOpenAI+api_key = os.getenv("OPENAI_ENDPOINT_API_KEY")if not api_key:raise ValueError("OPENAI_ENDPOINT_API_KEY environment variable not set")-- endpoint_url = kwargs.get("OPENAI_ENDPOINT_URL", "https://openrouter.ai/api/v1")-- if model_name is None and not kwargs.get("OPENAI_ENDPOINT_REQUIRES_MODEL", True):- return ChatOpenAI(api_key=api_key, openai_api_base=endpoint_url, **common_params)++ endpoint_url = kwargs.get(+ "OPENAI_ENDPOINT_URL", "https://openrouter.ai/api/v1"+ )++ if model_name is None and not kwargs.get(+ "OPENAI_ENDPOINT_REQUIRES_MODEL", True+ ):+ return ChatOpenAI(+ api_key=api_key, openai_api_base=endpoint_url, **common_params+ )else:- return ChatOpenAI(model=model_name, api_key=api_key, openai_api_base=endpoint_url, **common_params)+ return ChatOpenAI(+ model=model_name,+ api_key=api_key,+ openai_api_base=endpoint_url,+ **common_params,+ )except ImportError:logger.error("langchain_openai not available")raise-+# Default fallbacktry:from langchain_ollama import ChatOllama+logger.warning(f"Unknown model type '{model_type}', defaulting to Ollama")return ChatOllama(model=model_name, **common_params)except (ImportError, Exception) as e:logger.error(f"Failed to load any model: {e}")-+# Last resort: create a dummy modeltry:from langchain_community.llms.fake import FakeListLLM- return FakeListLLM(responses=["No language models are available. Please install Ollama or set up API keys."])++ return FakeListLLM(+ responses=[+ "No language models are available. Please install Ollama or set up API keys."+ ]+ )except ImportError:- raise ValueError("No language models available and could not create dummy model")\ No newline at end of file+ raise ValueError(+ "No language models available and could not create dummy model"+ )diff --git a/src/local_deep_research/utilties/search_utilities.py b/src/local_deep_research/utilties/search_utilities.pyindex 2493cf9dc2..09bdca463e 100644--- a/src/local_deep_research/utilties/search_utilities.py+++ b/src/local_deep_research/utilties/search_utilities.py@@ -1,5 +1,8 @@+import loggingimport re+logger = logging.getLogger(__name__)+def remove_think_tags(text: str) -> str:text = re.sub(r"<think>.*?</think>", "", text, flags=re.DOTALL).strip()@@ -18,19 +21,20 @@ def extract_links_from_search_results(search_results: list) -> list:for result in search_results:try:-+title = result.get("title", "").strip()url = result.get("link", "").strip()index = result.get("index", "").strip()-+if title and url:links.append({"title": title, "url": url, "index": index})except Exception:continuereturn links+def format_links(links):- formatted_links =""+ formatted_links = ""formatted_links += "SOURCES:\n"for i, link in enumerate(links, 1):formatted_links += f"{link['index']}. {link['title']}\n URL: {link['url']}\n"@@ -60,9 +64,9 @@ def format_findings_to_text(findings_list, current_knowledge, questions_by_iterafor finding in findings_list:# Phase header- formatted_text += f"{'='*80}\n"+ formatted_text += f"{'=' * 80}\n"formatted_text += f"PHASE: {finding['phase']}\n"- formatted_text += f"{'='*80}\n\n"+ formatted_text += f"{'=' * 80}\n\n"# If this is a follow-up phase, show the corresponding questionif finding["phase"].startswith("Follow-up"):@@ -90,7 +94,7 @@ def format_findings_to_text(findings_list, current_knowledge, questions_by_iteraformatted_text += "\n"all_links.extend(links)- formatted_text += f"{'_'*80}\n\n"+ formatted_text += f"{'_' * 80}\n\n"# Add summary of all sources at the endif all_links:@@ -105,10 +109,10 @@ def format_findings_to_text(findings_list, current_knowledge, questions_by_iterareturn formatted_text+def print_search_results(search_results):- formatted_text=""+ formatted_text = ""links = extract_links_from_search_results(search_results)if links:- formatted_text=format_links(links=links)+ formatted_text = format_links(links=links)logger.info(formatted_text)-diff --git a/src/local_deep_research/utilties/setup_utils.py b/src/local_deep_research/utilties/setup_utils.pyindex 63f0dd32cc..49fb5c59cf 100644--- a/src/local_deep_research/utilties/setup_utils.py+++ b/src/local_deep_research/utilties/setup_utils.py@@ -1,6 +1,8 @@"""Setup utilities (legacy wrapper)."""+def setup_user_directories():"""Set up directories and ensure config files exist."""from ..config import init_config_files- init_config_files()\ No newline at end of file++ init_config_files()diff --git a/src/local_deep_research/web/__init__.py b/src/local_deep_research/web/__init__.pyindex c24553e86a..691fe6aba6 100644--- a/src/local_deep_research/web/__init__.py+++ b/src/local_deep_research/web/__init__.py@@ -1,2 +1,3 @@"""Web interface for Local Deep Research"""+from . import appdiff --git a/src/local_deep_research/web/app.py b/src/local_deep_research/web/app.pyindex b4bce35d21..102385bad2 100644--- a/src/local_deep_research/web/app.py+++ b/src/local_deep_research/web/app.py@@ -1,83 +1,98 @@-import osimport json+import logging+import os+import platformimport sqlite3+import subprocessimport threading+import tracebackfrom datetime import datetime-from flask import Flask, render_template, request, jsonify, send_from_directory, make_response, Blueprint, redirect, url_for, flash-from flask_socketio import SocketIO, emit-from ..search_system import AdvancedSearchSystem-from ..report_generator import IntegratedReportGenerator++import importlib_resources+import toml+# Move this import up to ensure it's available globallyfrom dateutil import parser-import traceback-import importlib_resources+from flask import (+ Blueprint,+ Flask,+ flash,+ jsonify,+ make_response,+ redirect,+ render_template,+ request,+ send_from_directory,+ url_for,+)+from flask_socketio import SocketIO, emit+# Import the new configuration manager-from ..config import get_config_dir-import logging+from ..config import SEARCH_ENGINES_FILE, get_config_dir+from ..report_generator import IntegratedReportGenerator+from ..search_system import AdvancedSearchSystem+logger = logging.getLogger(__name__)CONFIG_DIR = get_config_dir() / "config"MAIN_CONFIG_FILE = CONFIG_DIR / "settings.toml"LLM_CONFIG_FILE = CONFIG_DIR / "llm_config.py"LOCAL_COLLECTIONS_FILE = CONFIG_DIR / "local_collections.toml"-import toml# Set flag for tracking OpenAI availability - we'll check it only when neededOPENAI_AVAILABLE = False# Initialize Flask apptry:- import os- import loggingfrom ..utilties.setup_utils import setup_user_directories-+# Configure logginglogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)-+# Explicitly run setuplogger.info("Initializing configuration...")setup_user_directories()-+# Get directories based on package installation- PACKAGE_DIR = importlib_resources.files('local_deep_research') / 'web'+ PACKAGE_DIR = importlib_resources.files("local_deep_research") / "web"with importlib_resources.as_file(PACKAGE_DIR) as package_dir:- STATIC_DIR = (package_dir / 'static').as_posix()- TEMPLATE_DIR = (package_dir / 'templates').as_posix()-+ STATIC_DIR = (package_dir / "static").as_posix()+ TEMPLATE_DIR = (package_dir / "templates").as_posix()+# Setup logginglogging.basicConfig(level=logging.INFO)-+# Create directories and default configs if neededsetup_user_directories()# Initialize Flask app with package directories- app = Flask(__name__,- static_folder=STATIC_DIR,- template_folder=TEMPLATE_DIR)+ app = Flask(__name__, static_folder=STATIC_DIR, template_folder=TEMPLATE_DIR)print(f"Using package static path: {STATIC_DIR}")print(f"Using package template path: {TEMPLATE_DIR}")except Exception as e:# Fallback for developmentprint(f"Package directories not found, using fallback paths: {str(e)}")- app = Flask(__name__,- static_folder=os.path.abspath('static'),- template_folder=os.path.abspath('templates'))-app.config['SECRET_KEY'] = 'deep-research-secret-key'+ app = Flask(+ __name__,+ static_folder=os.path.abspath("static"),+ template_folder=os.path.abspath("templates"),+ )+app.config["SECRET_KEY"] = "deep-research-secret-key"# Create a Blueprint for the research application-research_bp = Blueprint('research', __name__, url_prefix='/research')+research_bp = Blueprint("research", __name__, url_prefix="/research")# Add improved Socket.IO configuration with better error handlingsocketio = SocketIO(- app,+ app,cors_allowed_origins="*",- async_mode='threading',- path='/research/socket.io',+ async_mode="threading",+ path="/research/socket.io",logger=True,engineio_logger=True,ping_timeout=20,- ping_interval=5+ ping_interval=5,)# Active research processes and socket subscriptions@@ -88,10 +103,11 @@ socket_subscriptions = {}termination_flags = {}# Database setup-DB_PATH = 'research_history.db'+DB_PATH = "research_history.db"# Output directory for research results-OUTPUT_DIR = 'research_outputs'+OUTPUT_DIR = "research_outputs"+# Add Content Security Policy headers to allow Socket.IO to function@app.after_request@@ -99,7 +115,7 @@ def add_security_headers(response):# Define a permissive CSP for development that allows Socket.IO to functioncsp = ("default-src 'self'; "- "connect-src 'self' ws: wss: http: https:; "+ "connect-src 'self' ws: wss: http: https:; ""script-src 'self' 'unsafe-inline' 'unsafe-eval' cdnjs.cloudflare.com cdn.jsdelivr.net unpkg.com; ""style-src 'self' 'unsafe-inline' cdnjs.cloudflare.com; ""font-src 'self' cdnjs.cloudflare.com; "@@ -107,36 +123,39 @@ def add_security_headers(response):"worker-src blob:; ""frame-src 'self';")-- response.headers['Content-Security-Policy'] = csp- response.headers['X-Content-Security-Policy'] = csp-++ response.headers["Content-Security-Policy"] = csp+ response.headers["X-Content-Security-Policy"] = csp+# Add CORS headers for API requests- if request.path.startswith('/api/'):- response.headers['Access-Control-Allow-Origin'] = '*'- response.headers['Access-Control-Allow-Methods'] = 'GET, POST, DELETE, OPTIONS'- response.headers['Access-Control-Allow-Headers'] = 'Content-Type'-+ if request.path.startswith("/api/"):+ response.headers["Access-Control-Allow-Origin"] = "*"+ response.headers["Access-Control-Allow-Methods"] = "GET, POST, DELETE, OPTIONS"+ response.headers["Access-Control-Allow-Headers"] = "Content-Type"+return response+# Add a middleware layer to handle abrupt disconnections@app.before_requestdef handle_websocket_requests():- if request.path.startswith('/research/socket.io'):+ if request.path.startswith("/research/socket.io"):try:- if not request.environ.get('werkzeug.socket'):+ if not request.environ.get("werkzeug.socket"):returnexcept Exception as e:print(f"WebSocket preprocessing error: {e}")# Return empty response to prevent further processing- return '', 200+ return "", 200+def init_db():conn = sqlite3.connect(DB_PATH)cursor = conn.cursor()-+# Create the table if it doesn't exist- cursor.execute('''+ cursor.execute(+ """CREATE TABLE IF NOT EXISTS research_history (id INTEGER PRIMARY KEY AUTOINCREMENT,query TEXT NOT NULL,@@ -150,10 +169,12 @@ def init_db():progress_log TEXT,progress INTEGER)- ''')-+ """+ )+# Create a dedicated table for research logs- cursor.execute('''+ cursor.execute(+ """CREATE TABLE IF NOT EXISTS research_logs (id INTEGER PRIMARY KEY AUTOINCREMENT,research_id INTEGER NOT NULL,@@ -164,27 +185,31 @@ def init_db():metadata TEXT,FOREIGN KEY (research_id) REFERENCES research_history (id) ON DELETE CASCADE)- ''')-+ """+ )+# Check if the duration_seconds column exists, add it if missing- cursor.execute('PRAGMA table_info(research_history)')+ cursor.execute("PRAGMA table_info(research_history)")columns = [column[1] for column in cursor.fetchall()]-- if 'duration_seconds' not in columns:++ if "duration_seconds" not in columns:print("Adding missing 'duration_seconds' column to research_history table")- cursor.execute('ALTER TABLE research_history ADD COLUMN duration_seconds INTEGER')-+ cursor.execute(+ "ALTER TABLE research_history ADD COLUMN duration_seconds INTEGER"+ )+# Check if the progress column exists, add it if missing- if 'progress' not in columns:+ if "progress" not in columns:print("Adding missing 'progress' column to research_history table")- cursor.execute('ALTER TABLE research_history ADD COLUMN progress INTEGER')-+ cursor.execute("ALTER TABLE research_history ADD COLUMN progress INTEGER")+# Enable foreign key support- cursor.execute('PRAGMA foreign_keys = ON')-+ cursor.execute("PRAGMA foreign_keys = ON")+conn.commit()conn.close()-++# Helper function to calculate duration between created_at and completed_at timestampsdef calculate_duration(created_at_str):"""@@ -193,25 +218,27 @@ def calculate_duration(created_at_str):"""if not created_at_str:return None-+now = datetime.utcnow()duration_seconds = None-+try:# Proper parsing of ISO format- if 'T' in created_at_str: # ISO format with T separator+ if "T" in created_at_str: # ISO format with T separatorstart_time = datetime.fromisoformat(created_at_str)else: # Older format without T# Try different formatstry:- start_time = datetime.strptime(created_at_str, '%Y-%m-%d %H:%M:%S.%f')+ start_time = datetime.strptime(created_at_str, "%Y-%m-%d %H:%M:%S.%f")except ValueError:try:- start_time = datetime.strptime(created_at_str, '%Y-%m-%d %H:%M:%S')+ start_time = datetime.strptime(created_at_str, "%Y-%m-%d %H:%M:%S")except ValueError:# Last resort fallback- start_time = datetime.fromisoformat(created_at_str.replace(' ', 'T'))-+ start_time = datetime.fromisoformat(+ created_at_str.replace(" ", "T")+ )+# Ensure we're comparing UTC timesduration_seconds = int((now - start_time).total_seconds())except Exception as e:@@ -220,18 +247,21 @@ def calculate_duration(created_at_str):try:start_time_fallback = parser.parse(created_at_str)duration_seconds = int((now - start_time_fallback).total_seconds())- except:- print(f"Fallback duration calculation also failed for timestamp: {created_at_str}")-+ except Exception:+ print(+ f"Fallback duration calculation also failed for timestamp: {created_at_str}"+ )+return duration_seconds+# Add these helper functions after the calculate_duration function-def add_log_to_db(research_id, message, log_type='info', progress=None, metadata=None):+def add_log_to_db(research_id, message, log_type="info", progress=None, metadata=None):"""Store a log entry in the database-+Args:research_id: ID of the researchmessage: Log message text@@ -242,13 +272,13 @@ def add_log_to_db(research_id, message, log_type='info', progress=None, metadatatry:timestamp = datetime.utcnow().isoformat()metadata_json = json.dumps(metadata) if metadata else None-+conn = sqlite3.connect(DB_PATH)cursor = conn.cursor()cursor.execute(- 'INSERT INTO research_logs (research_id, timestamp, message, log_type, progress, metadata) '- 'VALUES (?, ?, ?, ?, ?, ?)',- (research_id, timestamp, message, log_type, progress, metadata_json)+ "INSERT INTO research_logs (research_id, timestamp, message, log_type, progress, metadata) "+ "VALUES (?, ?, ?, ?, ?, ?)",+ (research_id, timestamp, message, log_type, progress, metadata_json),)conn.commit()conn.close()@@ -258,13 +288,14 @@ def add_log_to_db(research_id, message, log_type='info', progress=None, metadataprint(traceback.format_exc())return False+def get_logs_for_research(research_id):"""Retrieve all logs for a specific research ID-+Args:research_id: ID of the research-+Returns:List of log entries as dictionaries"""@@ -273,58 +304,63 @@ def get_logs_for_research(research_id):conn.row_factory = sqlite3.Rowcursor = conn.cursor()cursor.execute(- 'SELECT * FROM research_logs WHERE research_id = ? ORDER BY timestamp ASC',- (research_id,)+ "SELECT * FROM research_logs WHERE research_id = ? ORDER BY timestamp ASC",+ (research_id,),)results = cursor.fetchall()conn.close()-+logs = []for result in results:log_entry = dict(result)# Parse metadata JSON if it exists- if log_entry.get('metadata'):+ if log_entry.get("metadata"):try:- log_entry['metadata'] = json.loads(log_entry['metadata'])- except:- log_entry['metadata'] = {}+ log_entry["metadata"] = json.loads(log_entry["metadata"])+ except Exception:+ log_entry["metadata"] = {}else:- log_entry['metadata'] = {}-+ log_entry["metadata"] = {}+# Convert entry for frontend consumptionformatted_entry = {- 'time': log_entry['timestamp'],- 'message': log_entry['message'],- 'progress': log_entry['progress'],- 'metadata': log_entry['metadata'],- 'type': log_entry['log_type']+ "time": log_entry["timestamp"],+ "message": log_entry["message"],+ "progress": log_entry["progress"],+ "metadata": log_entry["metadata"],+ "type": log_entry["log_type"],}logs.append(formatted_entry)-+return logsexcept Exception as e:print(f"Error retrieving logs from database: {str(e)}")print(traceback.format_exc())return []-++# Initialize the database on startupdef initialize():init_db()+# Call initialize immediately when app is createdinitialize()+# Route for index page - keep this at root level for easy access[email protected]('/')[email protected]("/")def root_index():- return redirect(url_for('research.index'))+ return redirect(url_for("research.index"))+# Update all routes with the research prefix-@research_bp.route('/')+@research_bp.route("/")def index():- return render_template('index.html')+ return render_template("index.html")-@research_bp.route('/static/<path:path>')++@research_bp.route("/static/<path:path>")def serve_static(path):try:print(f"Serving static file: {path}")@@ -334,99 +370,115 @@ def serve_static(path):print(f"Error serving static file {path}: {str(e)}")return f"Error serving file: {str(e)}", 404-@research_bp.route('/api/history', methods=['GET'])++@research_bp.route("/api/history", methods=["GET"])def get_history():"""Get the research history"""try:conn = sqlite3.connect(DB_PATH)conn.row_factory = sqlite3.Rowcursor = conn.cursor()-+# Get all history records ordered by latest first- cursor.execute('SELECT * FROM research_history ORDER BY created_at DESC')+ cursor.execute("SELECT * FROM research_history ORDER BY created_at DESC")results = cursor.fetchall()conn.close()-+# Convert to list of dictshistory = []for result in results:item = dict(result)-+# Ensure all keys exist with default values- if 'id' not in item:- item['id'] = None- if 'query' not in item:- item['query'] = 'Untitled Research'- if 'mode' not in item:- item['mode'] = 'quick'- if 'status' not in item:- item['status'] = 'unknown'- if 'created_at' not in item:- item['created_at'] = None- if 'completed_at' not in item:- item['completed_at'] = None- if 'duration_seconds' not in item:- item['duration_seconds'] = None- if 'report_path' not in item:- item['report_path'] = None- if 'metadata' not in item:- item['metadata'] = '{}'- if 'progress_log' not in item:- item['progress_log'] = '[]'-+ if "id" not in item:+ item["id"] = None+ if "query" not in item:+ item["query"] = "Untitled Research"+ if "mode" not in item:+ item["mode"] = "quick"+ if "status" not in item:+ item["status"] = "unknown"+ if "created_at" not in item:+ item["created_at"] = None+ if "completed_at" not in item:+ item["completed_at"] = None+ if "duration_seconds" not in item:+ item["duration_seconds"] = None+ if "report_path" not in item:+ item["report_path"] = None+ if "metadata" not in item:+ item["metadata"] = "{}"+ if "progress_log" not in item:+ item["progress_log"] = "[]"+# Ensure timestamps are in ISO format- if item['created_at'] and 'T' not in item['created_at']:+ if item["created_at"] and "T" not in item["created_at"]:try:# Convert to ISO format if it's not already- dt = parser.parse(item['created_at'])- item['created_at'] = dt.isoformat()- except:+ dt = parser.parse(item["created_at"])+ item["created_at"] = dt.isoformat()+ except Exception:pass-- if item['completed_at'] and 'T' not in item['completed_at']:++ if item["completed_at"] and "T" not in item["completed_at"]:try:# Convert to ISO format if it's not already- dt = parser.parse(item['completed_at'])- item['completed_at'] = dt.isoformat()- except:+ dt = parser.parse(item["completed_at"])+ item["completed_at"] = dt.isoformat()+ except Exception:pass-+# Recalculate duration based on timestamps if it's null but both timestamps exist- if item['duration_seconds'] is None and item['created_at'] and item['completed_at']:+ if (+ item["duration_seconds"] is None+ and item["created_at"]+ and item["completed_at"]+ ):try:- start_time = parser.parse(item['created_at'])- end_time = parser.parse(item['completed_at'])- item['duration_seconds'] = int((end_time - start_time).total_seconds())+ start_time = parser.parse(item["created_at"])+ end_time = parser.parse(item["completed_at"])+ item["duration_seconds"] = int(+ (end_time - start_time).total_seconds()+ )except Exception as e:print(f"Error recalculating duration: {str(e)}")-+history.append(item)-+# Add CORS headersresponse = make_response(jsonify(history))- response.headers.add('Access-Control-Allow-Origin', '*')- response.headers.add('Access-Control-Allow-Headers', 'Content-Type,Authorization')- response.headers.add('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS')+ response.headers.add("Access-Control-Allow-Origin", "*")+ response.headers.add(+ "Access-Control-Allow-Headers", "Content-Type,Authorization"+ )+ response.headers.add(+ "Access-Control-Allow-Methods", "GET,PUT,POST,DELETE,OPTIONS"+ )return responseexcept Exception as e:print(f"Error getting history: {str(e)}")print(traceback.format_exc())# Return empty array with CORS headersresponse = make_response(jsonify([]))- response.headers.add('Access-Control-Allow-Origin', '*')- response.headers.add('Access-Control-Allow-Headers', 'Content-Type,Authorization')- response.headers.add('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS')+ response.headers.add("Access-Control-Allow-Origin", "*")+ response.headers.add(+ "Access-Control-Allow-Headers", "Content-Type,Authorization"+ )+ response.headers.add(+ "Access-Control-Allow-Methods", "GET,PUT,POST,DELETE,OPTIONS"+ )return response-@research_bp.route('/api/start_research', methods=['POST'])++@research_bp.route("/api/start_research", methods=["POST"])def start_research():data = request.json- query = data.get('query')- mode = data.get('mode', 'quick')-+ query = data.get("query")+ mode = data.get("mode", "quick")+if not query:- return jsonify({'status': 'error', 'message': 'Query is required'}), 400-+ return jsonify({"status": "error", "message": "Query is required"}), 400+# Check if there's any active research that's actually still runningif active_research:# Verify each active research is still valid@@ -435,15 +487,20 @@ def start_research():# Check database statusconn = sqlite3.connect(DB_PATH)cursor = conn.cursor()- cursor.execute('SELECT status FROM research_history WHERE id = ?', (research_id,))+ cursor.execute(+ "SELECT status FROM research_history WHERE id = ?", (research_id,)+ )result = cursor.fetchone()conn.close()-+# If the research doesn't exist in DB or is not in_progress, it's stale- if not result or result[0] != 'in_progress':+ if not result or result[0] != "in_progress":stale_research_ids.append(research_id)# Also check if thread is still alive- elif not research_data.get('thread') or not research_data.get('thread').is_alive():+ elif (+ not research_data.get("thread")+ or not research_data.get("thread").is_alive()+ ):stale_research_ids.append(research_id)# Clean up any stale research processes@@ -456,150 +513,172 @@ def start_research():# After cleanup, check if there's still active researchif active_research:- return jsonify({- 'status': 'error',- 'message': 'Another research is already in progress. Please wait for it to complete.'- }), 409-+ return (+ jsonify(+ {+ "status": "error",+ "message": "Another research is already in progress. Please wait for it to complete.",+ }+ ),+ 409,+ )+# Create a record in the database with explicit UTC timestampcreated_at = datetime.utcnow().isoformat()conn = sqlite3.connect(DB_PATH)cursor = conn.cursor()cursor.execute(- 'INSERT INTO research_history (query, mode, status, created_at, progress_log) VALUES (?, ?, ?, ?, ?)',- (query, mode, 'in_progress', created_at, json.dumps([{"time": created_at, "message": "Research started", "progress": 0}]))+ "INSERT INTO research_history (query, mode, status, created_at, progress_log) VALUES (?, ?, ?, ?, ?)",+ (+ query,+ mode,+ "in_progress",+ created_at,+ json.dumps(+ [{"time": created_at, "message": "Research started", "progress": 0}]+ ),+ ),)research_id = cursor.lastrowidconn.commit()conn.close()-+# Start research process in a background threadthread = threading.Thread(- target=run_research_process,- args=(research_id, query, mode)+ target=run_research_process, args=(research_id, query, mode))thread.daemon = Truethread.start()-+active_research[research_id] = {- 'thread': thread,- 'progress': 0,- 'status': 'in_progress',- 'log': [{"time": created_at, "message": "Research started", "progress": 0}]+ "thread": thread,+ "progress": 0,+ "status": "in_progress",+ "log": [{"time": created_at, "message": "Research started", "progress": 0}],}-- return jsonify({- 'status': 'success',- 'research_id': research_id- })-@research_bp.route('/api/research/<int:research_id>')+ return jsonify({"status": "success", "research_id": research_id})+++@research_bp.route("/api/research/<int:research_id>")def get_research_status(research_id):conn = sqlite3.connect(DB_PATH)conn.row_factory = sqlite3.Rowcursor = conn.cursor()- cursor.execute('SELECT * FROM research_history WHERE id = ?', (research_id,))+ cursor.execute("SELECT * FROM research_history WHERE id = ?", (research_id,))result = dict(cursor.fetchone() or {})conn.close()-+if not result:- return jsonify({'status': 'error', 'message': 'Research not found'}), 404-+ return jsonify({"status": "error", "message": "Research not found"}), 404+# Add progress informationif research_id in active_research:- result['progress'] = active_research[research_id]['progress']- result['log'] = active_research[research_id]['log']- elif result.get('status') == 'completed':- result['progress'] = 100+ result["progress"] = active_research[research_id]["progress"]+ result["log"] = active_research[research_id]["log"]+ elif result.get("status") == "completed":+ result["progress"] = 100try:- result['log'] = json.loads(result.get('progress_log', '[]'))- except:- result['log'] = []+ result["log"] = json.loads(result.get("progress_log", "[]"))+ except Exception:+ result["log"] = []else:- result['progress'] = 0+ result["progress"] = 0try:- result['log'] = json.loads(result.get('progress_log', '[]'))- except:- result['log'] = []-+ result["log"] = json.loads(result.get("progress_log", "[]"))+ except Exception:+ result["log"] = []+return jsonify(result)-@research_bp.route('/api/research/<int:research_id>/details')++@research_bp.route("/api/research/<int:research_id>/details")def get_research_details(research_id):"""Get detailed progress log for a specific research"""conn = sqlite3.connect(DB_PATH)conn.row_factory = sqlite3.Rowcursor = conn.cursor()- cursor.execute('SELECT * FROM research_history WHERE id = ?', (research_id,))+ cursor.execute("SELECT * FROM research_history WHERE id = ?", (research_id,))result = dict(cursor.fetchone() or {})conn.close()-+if not result:- return jsonify({'status': 'error', 'message': 'Research not found'}), 404-+ return jsonify({"status": "error", "message": "Research not found"}), 404+# Get logs from the dedicated log databaselogs = get_logs_for_research(research_id)-+# If this is an active research, merge with any in-memory logsif research_id in active_research:# Use the logs from memory temporarily until they're saved to the database- memory_logs = active_research[research_id]['log']-+ memory_logs = active_research[research_id]["log"]+# Filter out logs that are already in the database by timestamp- db_timestamps = {log['time'] for log in logs}- unique_memory_logs = [log for log in memory_logs if log['time'] not in db_timestamps]-+ db_timestamps = {log["time"] for log in logs}+ unique_memory_logs = [+ log for log in memory_logs if log["time"] not in db_timestamps+ ]+# Add unique memory logs to our return listlogs.extend(unique_memory_logs)-+# Sort logs by timestamp- logs.sort(key=lambda x: x['time'])-- return jsonify({- 'status': 'success',- 'research_id': research_id,- 'query': result.get('query'),- 'mode': result.get('mode'),- 'status': result.get('status'),- 'progress': active_research.get(research_id, {}).get('progress', 100 if result.get('status') == 'completed' else 0),- 'created_at': result.get('created_at'),- 'completed_at': result.get('completed_at'),- 'log': logs- })--@research_bp.route('/api/report/<int:research_id>')+ logs.sort(key=lambda x: x["time"])++ return jsonify(+ {+ "research_id": research_id,+ "query": result.get("query"),+ "mode": result.get("mode"),+ "status": result.get("status"),+ "progress": active_research.get(research_id, {}).get(+ "progress", 100 if result.get("status") == "completed" else 0+ ),+ "created_at": result.get("created_at"),+ "completed_at": result.get("completed_at"),+ "log": logs,+ }+ )+++@research_bp.route("/api/report/<int:research_id>")def get_report(research_id):conn = sqlite3.connect(DB_PATH)conn.row_factory = sqlite3.Rowcursor = conn.cursor()- cursor.execute('SELECT * FROM research_history WHERE id = ?', (research_id,))+ cursor.execute("SELECT * FROM research_history WHERE id = ?", (research_id,))result = dict(cursor.fetchone() or {})conn.close()-- if not result or not result.get('report_path'):- return jsonify({'status': 'error', 'message': 'Report not found'}), 404-++ if not result or not result.get("report_path"):+ return jsonify({"status": "error", "message": "Report not found"}), 404+try:- with open(result['report_path'], 'r', encoding='utf-8') as f:+ with open(result["report_path"], "r", encoding="utf-8") as f:content = f.read()- return jsonify({- 'status': 'success',- 'content': content,- 'metadata': json.loads(result.get('metadata', '{}'))- })+ return jsonify(+ {+ "status": "success",+ "content": content,+ "metadata": json.loads(result.get("metadata", "{}")),+ }+ )except Exception as e:- return jsonify({'status': 'error', 'message': str(e)}), 500+ return jsonify({"status": "error", "message": str(e)}), 500+-@research_bp.route('/research/details/<int:research_id>')+@research_bp.route("/research/details/<int:research_id>")def research_details_page(research_id):"""Render the research details page"""- return render_template('index.html')+ return render_template("index.html")+[email protected]('connect')[email protected]("connect")def handle_connect():print(f"Client connected: {request.sid}")[email protected]('disconnect')+[email protected]("disconnect")def handle_disconnect():try:print(f"Client disconnected: {request.sid}")@@ -613,58 +692,83 @@ def handle_disconnect():except Exception as e:print(f"Error handling disconnect: {e}")[email protected]('subscribe_to_research')+[email protected]("subscribe_to_research")def handle_subscribe(data):- research_id = data.get('research_id')+ research_id = data.get("research_id")if research_id:# First check if this research is still activeconn = sqlite3.connect(DB_PATH)cursor = conn.cursor()- cursor.execute('SELECT status FROM research_history WHERE id = ?', (research_id,))+ cursor.execute(+ "SELECT status FROM research_history WHERE id = ?", (research_id,)+ )result = cursor.fetchone()conn.close()-+# Only allow subscription to valid researchif result:status = result[0]-+# Initialize subscription set if neededif research_id not in socket_subscriptions:socket_subscriptions[research_id] = set()-+# Add this client to the subscriberssocket_subscriptions[research_id].add(request.sid)print(f"Client {request.sid} subscribed to research {research_id}")-+# Send current status immediately if availableif research_id in active_research:- progress = active_research[research_id]['progress']- latest_log = active_research[research_id]['log'][-1] if active_research[research_id]['log'] else None-+ progress = active_research[research_id]["progress"]+ latest_log = (+ active_research[research_id]["log"][-1]+ if active_research[research_id]["log"]+ else None+ )+if latest_log:- emit(f'research_progress_{research_id}', {- 'progress': progress,- 'message': latest_log.get('message', 'Processing...'),- 'status': 'in_progress',- 'log_entry': latest_log- })- elif status in ['completed', 'failed', 'suspended']:+ emit(+ f"research_progress_{research_id}",+ {+ "progress": progress,+ "message": latest_log.get("message", "Processing..."),+ "status": "in_progress",+ "log_entry": latest_log,+ },+ )+ elif status in ["completed", "failed", "suspended"]:# Send final status for completed research- emit(f'research_progress_{research_id}', {- 'progress': 100 if status == 'completed' else 0,- 'message': 'Research completed successfully' if status == 'completed' else- 'Research failed' if status == 'failed' else 'Research was suspended',- 'status': status,- 'log_entry': {- 'time': datetime.utcnow().isoformat(),- 'message': f'Research is {status}',- 'progress': 100 if status == 'completed' else 0,- 'metadata': {'phase': 'complete' if status == 'completed' else 'error'}- }- })+ emit(+ f"research_progress_{research_id}",+ {+ "progress": 100 if status == "completed" else 0,+ "message": (+ "Research completed successfully"+ if status == "completed"+ else (+ "Research failed"+ if status == "failed"+ else "Research was suspended"+ )+ ),+ "status": status,+ "log_entry": {+ "time": datetime.utcnow().isoformat(),+ "message": f"Research is {status}",+ "progress": 100 if status == "completed" else 0,+ "metadata": {+ "phase": (+ "complete" if status == "completed" else "error"+ )+ },+ },+ },+ )else:# Research not found- emit('error', {'message': f'Research ID {research_id} not found'})+ emit("error", {"message": f"Research ID {research_id} not found"})+@socketio.on_errordef handle_socket_error(e):@@ -672,74 +776,79 @@ def handle_socket_error(e):# Don't propagate exceptions to avoid crashing the serverreturn False+@socketio.on_error_defaultdef handle_default_error(e):print(f"Unhandled Socket.IO error: {str(e)}")# Don't propagate exceptions to avoid crashing the serverreturn False+# Function to clean up resources for a completed researchdef cleanup_research_resources(research_id):"""Clean up resources for a completed research"""print(f"Cleaning up resources for research {research_id}")-+# Get the current status from the database to determine the final status messagecurrent_status = "completed" # Defaulttry:conn = sqlite3.connect(DB_PATH)cursor = conn.cursor()- cursor.execute('SELECT status FROM research_history WHERE id = ?', (research_id,))+ cursor.execute(+ "SELECT status FROM research_history WHERE id = ?", (research_id,)+ )result = cursor.fetchone()if result and result[0]:current_status = result[0]conn.close()except Exception as e:print(f"Error retrieving research status during cleanup: {e}")-+# Remove from active researchif research_id in active_research:del active_research[research_id]-+# Remove from termination flagsif research_id in termination_flags:del termination_flags[research_id]-+# Send a final message to any remaining subscribers with explicit statusif research_id in socket_subscriptions and socket_subscriptions[research_id]:# Use the proper status message based on database status- if current_status == 'suspended' or current_status == 'failed':+ if current_status == "suspended" or current_status == "failed":final_message = {- 'status': current_status,- 'message': f'Research was {current_status}',- 'progress': 0, # For suspended research, show 0% not 100%+ "status": current_status,+ "message": f"Research was {current_status}",+ "progress": 0, # For suspended research, show 0% not 100%}else:final_message = {- 'status': 'completed',- 'message': 'Research process has ended and resources have been cleaned up',- 'progress': 100,+ "status": "completed",+ "message": "Research process has ended and resources have been cleaned up",+ "progress": 100,}-+try:- print(f"Sending final {current_status} socket message for research {research_id}")+ print(+ f"Sending final {current_status} socket message for research {research_id}"+ )# Use emit to all, not just subscribers- socketio.emit(f'research_progress_{research_id}', final_message)-+ socketio.emit(f"research_progress_{research_id}", final_message)+# Also emit to specific subscribersfor sid in socket_subscriptions[research_id]:try:socketio.emit(- f'research_progress_{research_id}',- final_message,- room=sid+ f"research_progress_{research_id}", final_message, room=sid)except Exception as sub_err:print(f"Error emitting to subscriber {sid}: {str(sub_err)}")except Exception as e:print(f"Error sending final cleanup message: {e}")-+# Don't immediately remove subscriptions - let clients disconnect naturally+def run_research_process(research_id, query, mode):"""Run the research process in the background for a given research ID"""try:@@ -750,7 +859,7 @@ def run_research_process(research_id, query, mode):returnprint(f"Starting research process for ID {research_id}, query: {query}")-+# Set up the AI Context Manageroutput_dir = os.path.join(OUTPUT_DIR, f"research_{research_id}")os.makedirs(output_dir, exist_ok=True)@@ -765,62 +874,67 @@ def run_research_process(research_id, query, mode):# Calculate duration up to termination point - using UTC consistentlynow = datetime.utcnow()completed_at = now.isoformat()-+# Get the start time from the database- cursor.execute('SELECT created_at FROM research_history WHERE id = ?', (research_id,))+ cursor.execute(+ "SELECT created_at FROM research_history WHERE id = ?",+ (research_id,),+ )result = cursor.fetchone()-+# Calculate the duration- duration_seconds = calculate_duration(result[0]) if result and result[0] else None-+ duration_seconds = (+ calculate_duration(result[0]) if result and result[0] else None+ )+# Update the database with suspended statuscursor.execute(- 'UPDATE research_history SET status = ?, completed_at = ?, duration_seconds = ? WHERE id = ?',- ('suspended', completed_at, duration_seconds, research_id)+ "UPDATE research_history SET status = ?, completed_at = ?, duration_seconds = ? WHERE id = ?",+ ("suspended", completed_at, duration_seconds, research_id),)conn.commit()conn.close()-+# Clean up resourcescleanup_research_resources(research_id)-+# Raise exception to exit the processraise Exception("Research was terminated by user")-+timestamp = datetime.utcnow().isoformat()-+# Adjust progress based on research modeadjusted_progress = progress_percent- if mode == 'detailed' and metadata.get('phase') == 'output_generation':+ if mode == "detailed" and metadata.get("phase") == "output_generation":# For detailed mode, we need to adjust the progress range# because detailed reports take longer after the search phaseadjusted_progress = min(80, progress_percent)- elif mode == 'detailed' and metadata.get('phase') == 'report_generation':+ elif mode == "detailed" and metadata.get("phase") == "report_generation":# Scale the progress from 80% to 95% for the report generation phase# Map progress_percent values (0-100%) to the (80-95%) rangeif progress_percent is not None:normalized = progress_percent / 100adjusted_progress = 80 + (normalized * 15)- elif mode == 'quick' and metadata.get('phase') == 'output_generation':+ elif mode == "quick" and metadata.get("phase") == "output_generation":# For quick mode, ensure we're at least at 85% during output generationadjusted_progress = max(85, progress_percent)# Map any further progress within output_generation to 85-95% rangeif progress_percent is not None and progress_percent > 0:normalized = progress_percent / 100adjusted_progress = 85 + (normalized * 10)-+# Don't let progress go backwardsif research_id in active_research and adjusted_progress is not None:- current_progress = active_research[research_id].get('progress', 0)+ current_progress = active_research[research_id].get("progress", 0)adjusted_progress = max(current_progress, adjusted_progress)-+log_entry = {"time": timestamp,"message": message,"progress": adjusted_progress,- "metadata": metadata+ "metadata": metadata,}-+# Check if termination was requestedif research_id in termination_flags and termination_flags[research_id]:# Explicitly set the status to suspended in the database@@ -829,110 +943,115 @@ def run_research_process(research_id, query, mode):# Calculate duration up to termination point - using UTC consistentlynow = datetime.utcnow()completed_at = now.isoformat()-+# Get the start time from the database- cursor.execute('SELECT created_at FROM research_history WHERE id = ?', (research_id,))+ cursor.execute(+ "SELECT created_at FROM research_history WHERE id = ?",+ (research_id,),+ )result = cursor.fetchone()-+# Calculate the duration- duration_seconds = calculate_duration(result[0]) if result and result[0] else None-+ duration_seconds = (+ calculate_duration(result[0]) if result and result[0] else None+ )+# Update the database with suspended statuscursor.execute(- 'UPDATE research_history SET status = ?, completed_at = ?, duration_seconds = ? WHERE id = ?',- ('suspended', completed_at, duration_seconds, research_id)+ "UPDATE research_history SET status = ?, completed_at = ?, duration_seconds = ? WHERE id = ?",+ ("suspended", completed_at, duration_seconds, research_id),)conn.commit()conn.close()-+# Clean up resourcescleanup_research_resources(research_id)-+# Raise exception to exit the processraise Exception("Research was terminated by user")-+# Update active research recordif research_id in active_research:- active_research[research_id]['log'].append(log_entry)+ active_research[research_id]["log"].append(log_entry)if adjusted_progress is not None:- active_research[research_id]['progress'] = adjusted_progress-+ active_research[research_id]["progress"] = adjusted_progress+# Determine log type for database storage- log_type = 'info'- if metadata and metadata.get('phase'):- phase = metadata.get('phase')- if phase in ['complete', 'iteration_complete']:- log_type = 'milestone'- elif phase == 'error' or 'error' in message.lower():- log_type = 'error'-+ log_type = "info"+ if metadata and metadata.get("phase"):+ phase = metadata.get("phase")+ if phase in ["complete", "iteration_complete"]:+ log_type = "milestone"+ elif phase == "error" or "error" in message.lower():+ log_type = "error"+# Always save logs to the new research_logs tableadd_log_to_db(research_id,message,log_type=log_type,progress=adjusted_progress,- metadata=metadata+ metadata=metadata,)-+# Update progress in the research_history table (for backward compatibility)conn = sqlite3.connect(DB_PATH)cursor = conn.cursor()-+# Update the progress and log separately to avoid race conditions with reading/writing the logif adjusted_progress is not None:cursor.execute(- 'UPDATE research_history SET progress = ? WHERE id = ?',- (adjusted_progress, research_id)+ "UPDATE research_history SET progress = ? WHERE id = ?",+ (adjusted_progress, research_id),)-+# Add the log entry to the progress_log- cursor.execute('SELECT progress_log FROM research_history WHERE id = ?', (research_id,))+ cursor.execute(+ "SELECT progress_log FROM research_history WHERE id = ?",+ (research_id,),+ )log_result = cursor.fetchone()-+if log_result:try:current_log = json.loads(log_result[0])- except:+ except Exception:current_log = []-+current_log.append(log_entry)cursor.execute(- 'UPDATE research_history SET progress_log = ? WHERE id = ?',- (json.dumps(current_log), research_id)+ "UPDATE research_history SET progress_log = ? WHERE id = ?",+ (json.dumps(current_log), research_id),)-+conn.commit()conn.close()-+# Emit a socket eventtry:# Basic event data- event_data = {- 'message': message,- 'progress': adjusted_progress- }-+ event_data = {"message": message, "progress": adjusted_progress}+# Add log entry in full format for detailed logging on clientif metadata:- event_data['log_entry'] = log_entry-+ event_data["log_entry"] = log_entry+# Send to all subscribers and broadcast channel- socketio.emit(f'research_progress_{research_id}', event_data)-+ socketio.emit(f"research_progress_{research_id}", event_data)+if research_id in socket_subscriptions:for sid in socket_subscriptions[research_id]:try:socketio.emit(- f'research_progress_{research_id}',- event_data,- room=sid+ f"research_progress_{research_id}",+ event_data,+ room=sid,)except Exception as err:print(f"Error emitting to subscriber {sid}: {str(err)}")except Exception as e:print(f"Socket emit error (non-critical): {str(e)}")-+# FUNCTION TO CHECK TERMINATION DURING LONG-RUNNING OPERATIONSdef check_termination():if research_id in termination_flags and termination_flags[research_id]:@@ -941,43 +1060,58 @@ def run_research_process(research_id, query, mode):cursor = conn.cursor()now = datetime.utcnow()completed_at = now.isoformat()-- cursor.execute('SELECT created_at FROM research_history WHERE id = ?', (research_id,))++ cursor.execute(+ "SELECT created_at FROM research_history WHERE id = ?",+ (research_id,),+ )result = cursor.fetchone()- duration_seconds = calculate_duration(result[0]) if result and result[0] else None-+ duration_seconds = (+ calculate_duration(result[0]) if result and result[0] else None+ )+cursor.execute(- 'UPDATE research_history SET status = ?, completed_at = ?, duration_seconds = ? WHERE id = ?',- ('suspended', completed_at, duration_seconds, research_id)+ "UPDATE research_history SET status = ?, completed_at = ?, duration_seconds = ? WHERE id = ?",+ ("suspended", completed_at, duration_seconds, research_id),)conn.commit()conn.close()-+# Clean up resourcescleanup_research_resources(research_id)-+# Raise exception to exit the process- raise Exception("Research was terminated by user during long-running operation")+ raise Exception(+ "Research was terminated by user during long-running operation"+ )return False # Not terminated# Set the progress callback in the systemsystem = AdvancedSearchSystem()system.set_progress_callback(progress_callback)-+# Run the searchprogress_callback("Starting research process", 5, {"phase": "init"})-+try:results = system.analyze_topic(query)- if mode == 'quick':- progress_callback("Search complete, preparing to generate summary...", 85, {"phase": "output_generation"})+ if mode == "quick":+ progress_callback(+ "Search complete, preparing to generate summary...",+ 85,+ {"phase": "output_generation"},+ )else:- progress_callback("Search complete, generating output", 80, {"phase": "output_generation"})+ progress_callback(+ "Search complete, generating output",+ 80,+ {"phase": "output_generation"},+ )except Exception as search_error:# Better handling of specific search errorserror_message = str(search_error)error_type = "unknown"-+# Extract error details for common issuesif "status code: 503" in error_message:error_message = "Ollama AI service is unavailable (HTTP 503). Please check that Ollama is running properly on your system."@@ -993,80 +1127,114 @@ def run_research_process(research_id, query, mode):elif "connection" in error_message.lower():error_message = "Connection error. Please check that your LLM service (Ollama/API) is running and accessible."error_type = "connection_error"-+# Raise with improved error messageraise Exception(f"{error_message} (Error type: {error_type})")-+# Generate output based on mode- if mode == 'quick':+ if mode == "quick":# Quick Summary- if results.get('findings') or results.get('formatted_findings'):+ if results.get("findings") or results.get("formatted_findings"):++ raw_formatted_findings = results["formatted_findings"]+ logger.info(+ f"Found formatted_findings of length: {len(str(raw_formatted_findings))}"+ )- raw_formatted_findings = results['formatted_findings']- logger.info(f"Found formatted_findings of length: {len(str(raw_formatted_findings))}")-try:clean_markdown = raw_formatted_findings# ADDED CODE: Convert debug output to clean markdown- #clean_markdown = convert_debug_to_markdown(raw_formatted_findings, query)- print(f"Successfully converted to clean markdown of length: {len(clean_markdown)}")-+ # clean_markdown = convert_debug_to_markdown(raw_formatted_findings, query)+ print(+ f"Successfully converted to clean markdown of length: {len(clean_markdown)}"+ )+# First send a progress update for generating the summary- progress_callback("Generating clean summary from research data...", 90, {"phase": "output_generation"})-+ progress_callback(+ "Generating clean summary from research data...",+ 90,+ {"phase": "output_generation"},+ )+# Save as markdown fileoutput_dir = "research_outputs"if not os.path.exists(output_dir):os.makedirs(output_dir)-- safe_query = "".join(x for x in query if x.isalnum() or x in [" ", "-", "_"])[:50]++ safe_query = "".join(+ x for x in query if x.isalnum() or x in [" ", "-", "_"]+ )[:50]safe_query = safe_query.replace(" ", "_").lower()- report_path = os.path.join(output_dir, f"quick_summary_{safe_query}.md")-+ report_path = os.path.join(+ output_dir, f"quick_summary_{safe_query}.md"+ )+# Send progress update for writing to file- progress_callback("Writing research report to file...", 95, {"phase": "report_complete"})-+ progress_callback(+ "Writing research report to file...",+ 95,+ {"phase": "report_complete"},+ )+print(f"Writing report to: {report_path}")with open(report_path, "w", encoding="utf-8") as f:f.write("# Quick Research Summary\n\n")f.write(f"Query: {query}\n\n")- f.write(clean_markdown) # Use clean markdown instead of raw findings+ f.write(+ clean_markdown+ ) # Use clean markdown instead of raw findingsf.write("\n\n## Research Metrics\n")f.write(f"- Search Iterations: {results['iterations']}\n")f.write(f"- Generated at: {datetime.utcnow().isoformat()}\n")-+# Update databasemetadata = {- 'iterations': results['iterations'],- 'generated_at': datetime.utcnow().isoformat()+ "iterations": results["iterations"],+ "generated_at": datetime.utcnow().isoformat(),}-+# Calculate duration in seconds - using UTC consistentlynow = datetime.utcnow()completed_at = now.isoformat()-+print(f"Updating database for research_id: {research_id}")# Get the start time from the databaseconn = sqlite3.connect(DB_PATH)cursor = conn.cursor()- cursor.execute('SELECT created_at FROM research_history WHERE id = ?', (research_id,))+ cursor.execute(+ "SELECT created_at FROM research_history WHERE id = ?",+ (research_id,),+ )result = cursor.fetchone()-+# Use the helper function for consistent duration calculationduration_seconds = calculate_duration(result[0])-+# Update the recordcursor.execute(- 'UPDATE research_history SET status = ?, completed_at = ?, duration_seconds = ?, report_path = ?, metadata = ? WHERE id = ?',- ('completed', completed_at, duration_seconds, report_path, json.dumps(metadata), research_id)+ "UPDATE research_history SET status = ?, completed_at = ?, duration_seconds = ?, report_path = ?, metadata = ? WHERE id = ?",+ (+ "completed",+ completed_at,+ duration_seconds,+ report_path,+ json.dumps(metadata),+ research_id,+ ),)conn.commit()conn.close()- print(f"Database updated successfully for research_id: {research_id}")-+ print(+ f"Database updated successfully for research_id: {research_id}"+ )+# Send the final completion message- progress_callback("Research completed successfully", 100, {"phase": "complete", "report_path": report_path})-+ progress_callback(+ "Research completed successfully",+ 100,+ {"phase": "complete", "report_path": report_path},+ )+# Clean up resourcesprint(f"Cleaning up resources for research_id: {research_id}")cleanup_research_resources(research_id)@@ -1076,55 +1244,76 @@ def run_research_process(research_id, query, mode):print(traceback.format_exc())raise Exception(f"Error generating quick summary: {str(inner_e)}")else:- raise Exception("No research findings were generated. Please try again.")+ raise Exception(+ "No research findings were generated. Please try again."+ )else:# Full Report- progress_callback("Generating detailed report...", 85, {"phase": "report_generation"})+ progress_callback(+ "Generating detailed report...", 85, {"phase": "report_generation"}+ )report_generator = IntegratedReportGenerator()final_report = report_generator.generate_report(results, query)- progress_callback("Report generation complete", 95, {"phase": "report_complete"})-+ progress_callback(+ "Report generation complete", 95, {"phase": "report_complete"}+ )+# Save as markdown fileoutput_dir = "research_outputs"if not os.path.exists(output_dir):os.makedirs(output_dir)-- safe_query = "".join(x for x in query if x.isalnum() or x in [" ", "-", "_"])[:50]++ safe_query = "".join(+ x for x in query if x.isalnum() or x in [" ", "-", "_"]+ )[:50]safe_query = safe_query.replace(" ", "_").lower()report_path = os.path.join(output_dir, f"detailed_report_{safe_query}.md")-+with open(report_path, "w", encoding="utf-8") as f:- f.write(final_report['content'])-+ f.write(final_report["content"])+# Update database- metadata = final_report['metadata']- metadata['iterations'] = results['iterations']-+ metadata = final_report["metadata"]+ metadata["iterations"] = results["iterations"]+# Calculate duration in seconds - using UTC consistentlynow = datetime.utcnow()completed_at = now.isoformat()-+# Get the start time from the databaseconn = sqlite3.connect(DB_PATH)cursor = conn.cursor()- cursor.execute('SELECT created_at FROM research_history WHERE id = ?', (research_id,))+ cursor.execute(+ "SELECT created_at FROM research_history WHERE id = ?", (research_id,)+ )result = cursor.fetchone()-+# Use the helper function for consistent duration calculationduration_seconds = calculate_duration(result[0])-+cursor.execute(- 'UPDATE research_history SET status = ?, completed_at = ?, duration_seconds = ?, report_path = ?, metadata = ? WHERE id = ?',- ('completed', completed_at, duration_seconds, report_path, json.dumps(metadata), research_id)+ "UPDATE research_history SET status = ?, completed_at = ?, duration_seconds = ?, report_path = ?, metadata = ? WHERE id = ?",+ (+ "completed",+ completed_at,+ duration_seconds,+ report_path,+ json.dumps(metadata),+ research_id,+ ),)conn.commit()conn.close()-- progress_callback("Research completed successfully", 100, {"phase": "complete", "report_path": report_path})-++ progress_callback(+ "Research completed successfully",+ 100,+ {"phase": "complete", "report_path": report_path},+ )+# Clean up - moved to a separate function for reusecleanup_research_resources(research_id)-+except Exception as e:# Handle errorerror_message = f"Research failed: {str(e)}"@@ -1133,442 +1322,507 @@ def run_research_process(research_id, query, mode):# Check for common Ollama error patterns in the exception and provide more user-friendly errorsuser_friendly_error = str(e)error_context = {}-+if "Error type: ollama_unavailable" in user_friendly_error:user_friendly_error = "Ollama AI service is unavailable. Please check that Ollama is running properly on your system."- error_context = {"solution": "Start Ollama with 'ollama serve' or check if it's installed correctly."}+ error_context = {+ "solution": "Start Ollama with 'ollama serve' or check if it's installed correctly."+ }elif "Error type: model_not_found" in user_friendly_error:- user_friendly_error = "Required Ollama model not found. Please pull the model first."- error_context = {"solution": "Run 'ollama pull mistral' to download the required model."}+ user_friendly_error = (+ "Required Ollama model not found. Please pull the model first."+ )+ error_context = {+ "solution": "Run 'ollama pull mistral' to download the required model."+ }elif "Error type: connection_error" in user_friendly_error:user_friendly_error = "Connection error with LLM service. Please check that your AI service is running."- error_context = {"solution": "Ensure Ollama or your API service is running and accessible."}+ error_context = {+ "solution": "Ensure Ollama or your API service is running and accessible."+ }elif "Error type: api_error" in user_friendly_error:# Keep the original error message as it's already improvederror_context = {"solution": "Check API configuration and credentials."}-+# Update metadata with more context about the error- metadata = {- "phase": "error",- "error": user_friendly_error- }+ metadata = {"phase": "error", "error": user_friendly_error}if error_context:metadata.update(error_context)-+progress_callback(user_friendly_error, None, metadata)-+conn = sqlite3.connect(DB_PATH)cursor = conn.cursor()-+# If termination was requested, mark as suspended instead of failed- status = 'suspended' if (research_id in termination_flags and termination_flags[research_id]) else 'failed'- message = "Research was terminated by user" if status == 'suspended' else user_friendly_error-+ status = (+ "suspended"+ if (research_id in termination_flags and termination_flags[research_id])+ else "failed"+ )+ message = (+ "Research was terminated by user"+ if status == "suspended"+ else user_friendly_error+ )+# Calculate duration up to termination point - using UTC consistentlynow = datetime.utcnow()completed_at = now.isoformat()-+# Get the start time from the databaseduration_seconds = None- cursor.execute('SELECT created_at FROM research_history WHERE id = ?', (research_id,))+ cursor.execute(+ "SELECT created_at FROM research_history WHERE id = ?", (research_id,)+ )result = cursor.fetchone()-+# Use the helper function for consistent duration calculationif result and result[0]:duration_seconds = calculate_duration(result[0])-+cursor.execute(- 'UPDATE research_history SET status = ?, completed_at = ?, duration_seconds = ?, metadata = ? WHERE id = ?',- (status, completed_at, duration_seconds, json.dumps(metadata), research_id)+ "UPDATE research_history SET status = ?, completed_at = ?, duration_seconds = ?, metadata = ? WHERE id = ?",+ (+ status,+ completed_at,+ duration_seconds,+ json.dumps(metadata),+ research_id,+ ),)conn.commit()conn.close()-+try:- socketio.emit(f'research_progress_{research_id}', {- 'status': status,- 'error': message- })-+ socketio.emit(+ f"research_progress_{research_id}",+ {"status": status, "error": message},+ )+# Also notify specific subscribers- if research_id in socket_subscriptions and socket_subscriptions[research_id]:+ if (+ research_id in socket_subscriptions+ and socket_subscriptions[research_id]+ ):for sid in socket_subscriptions[research_id]:try:socketio.emit(- f'research_progress_{research_id}',- {'status': status, 'error': message},- room=sid+ f"research_progress_{research_id}",+ {"status": status, "error": message},+ room=sid,)except Exception as sub_err:print(f"Error emitting to subscriber {sid}: {str(sub_err)}")-+except Exception as socket_error:print(f"Failed to emit error via socket: {str(socket_error)}")except Exception as inner_e:print(f"Error in error handler: {str(inner_e)}")-+# Clean up resources - moved to a separate function for reusecleanup_research_resources(research_id)-@research_bp.route('/api/research/<int:research_id>/terminate', methods=['POST'])++@research_bp.route("/api/research/<int:research_id>/terminate", methods=["POST"])def terminate_research(research_id):"""Terminate an in-progress research process"""-+# Check if the research exists and is in progressconn = sqlite3.connect(DB_PATH)cursor = conn.cursor()- cursor.execute('SELECT status FROM research_history WHERE id = ?', (research_id,))+ cursor.execute("SELECT status FROM research_history WHERE id = ?", (research_id,))result = cursor.fetchone()-+if not result:conn.close()- return jsonify({'status': 'error', 'message': 'Research not found'}), 404-+ return jsonify({"status": "error", "message": "Research not found"}), 404+status = result[0]-+# If it's not in progress, return an error- if status != 'in_progress':+ if status != "in_progress":conn.close()- return jsonify({'status': 'error', 'message': 'Research is not in progress'}), 400-+ return (+ jsonify({"status": "error", "message": "Research is not in progress"}),+ 400,+ )+# Check if it's in the active_research dictif research_id not in active_research:# Update the status in the database- cursor.execute('UPDATE research_history SET status = ? WHERE id = ?', ('suspended', research_id))+ cursor.execute(+ "UPDATE research_history SET status = ? WHERE id = ?",+ ("suspended", research_id),+ )conn.commit()conn.close()- return jsonify({'status': 'success', 'message': 'Research terminated'})-+ return jsonify({"status": "success", "message": "Research terminated"})+# Set the termination flagtermination_flags[research_id] = True-+# Log the termination request - using UTC timestamptimestamp = datetime.utcnow().isoformat()termination_message = "Research termination requested by user"- current_progress = active_research[research_id]['progress']-+ current_progress = active_research[research_id]["progress"]+# Create log entrylog_entry = {"time": timestamp,"message": termination_message,"progress": current_progress,- "metadata": {"phase": "termination"}+ "metadata": {"phase": "termination"},}-+# Add to in-memory log- active_research[research_id]['log'].append(log_entry)-+ active_research[research_id]["log"].append(log_entry)+# Add to database logadd_log_to_db(research_id,termination_message,- log_type='milestone',+ log_type="milestone",progress=current_progress,- metadata={"phase": "termination"}+ metadata={"phase": "termination"},)-+# Update the log in the database (old way for backward compatibility)- cursor.execute('SELECT progress_log FROM research_history WHERE id = ?', (research_id,))+ cursor.execute(+ "SELECT progress_log FROM research_history WHERE id = ?", (research_id,)+ )log_result = cursor.fetchone()if log_result:try:current_log = json.loads(log_result[0])- except:+ except Exception:current_log = []current_log.append(log_entry)cursor.execute(- 'UPDATE research_history SET progress_log = ? WHERE id = ?',- (json.dumps(current_log), research_id)+ "UPDATE research_history SET progress_log = ? WHERE id = ?",+ (json.dumps(current_log), research_id),)-+# IMMEDIATELY update the status to 'suspended' to avoid race conditions- cursor.execute('UPDATE research_history SET status = ? WHERE id = ?', ('suspended', research_id))+ cursor.execute(+ "UPDATE research_history SET status = ? WHERE id = ?",+ ("suspended", research_id),+ )conn.commit()conn.close()-+# Emit a socket event for the termination requesttry:event_data = {- 'status': 'suspended', # Changed from 'terminating' to 'suspended'- 'message': 'Research was suspended by user request'+ "status": "suspended", # Changed from 'terminating' to 'suspended'+ "message": "Research was suspended by user request",}-- socketio.emit(f'research_progress_{research_id}', event_data)-++ socketio.emit(f"research_progress_{research_id}", event_data)+if research_id in socket_subscriptions and socket_subscriptions[research_id]:for sid in socket_subscriptions[research_id]:try:socketio.emit(- f'research_progress_{research_id}',- event_data,- room=sid+ f"research_progress_{research_id}", event_data, room=sid)except Exception as err:print(f"Error emitting to subscriber {sid}: {str(err)}")-+except Exception as socket_error:print(f"Socket emit error (non-critical): {str(socket_error)}")-- return jsonify({'status': 'success', 'message': 'Research termination requested'})-@research_bp.route('/api/research/<int:research_id>/delete', methods=['DELETE'])+ return jsonify({"status": "success", "message": "Research termination requested"})+++@research_bp.route("/api/research/<int:research_id>/delete", methods=["DELETE"])def delete_research(research_id):"""Delete a research record"""conn = sqlite3.connect(DB_PATH)cursor = conn.cursor()-+# First check if the research exists and is not in progress- cursor.execute('SELECT status, report_path FROM research_history WHERE id = ?', (research_id,))+ cursor.execute(+ "SELECT status, report_path FROM research_history WHERE id = ?", (research_id,)+ )result = cursor.fetchone()-+if not result:conn.close()- return jsonify({'status': 'error', 'message': 'Research not found'}), 404-+ return jsonify({"status": "error", "message": "Research not found"}), 404+status, report_path = result-+# Don't allow deleting research in progress- if status == 'in_progress' and research_id in active_research:+ if status == "in_progress" and research_id in active_research:conn.close()- return jsonify({- 'status': 'error',- 'message': 'Cannot delete research that is in progress'- }), 400-+ return (+ jsonify(+ {+ "status": "error",+ "message": "Cannot delete research that is in progress",+ }+ ),+ 400,+ )+# Delete report file if it existsif report_path and os.path.exists(report_path):try:os.remove(report_path)except Exception as e:print(f"Error removing report file: {str(e)}")-+# Delete the database record- cursor.execute('DELETE FROM research_history WHERE id = ?', (research_id,))+ cursor.execute("DELETE FROM research_history WHERE id = ?", (research_id,))conn.commit()conn.close()-- return jsonify({'status': 'success'})-@research_bp.route('/settings', methods=['GET'])++ return jsonify({"status": "success"})+++@research_bp.route("/settings", methods=["GET"])def settings_page():"""Main settings dashboard with links to specialized config pages"""- return render_template('settings_dashboard.html')+ return render_template("settings_dashboard.html")+-@research_bp.route('/settings/main', methods=['GET'])+@research_bp.route("/settings/main", methods=["GET"])def main_config_page():"""Edit main configuration with search parameters"""- return render_template('main_config.html', main_file_path=MAIN_CONFIG_FILE)+ return render_template("main_config.html", main_file_path=MAIN_CONFIG_FILE)+-@research_bp.route('/settings/llm', methods=['GET'])+@research_bp.route("/settings/llm", methods=["GET"])def llm_config_page():"""Edit LLM configuration using raw file editor"""- return render_template('llm_config.html', llm_file_path=LLM_CONFIG_FILE)+ return render_template("llm_config.html", llm_file_path=LLM_CONFIG_FILE)-@research_bp.route('/settings/collections', methods=['GET'])++@research_bp.route("/settings/collections", methods=["GET"])def collections_config_page():"""Edit local collections configuration using raw file editor"""- return render_template('collections_config.html', collections_file_path=LOCAL_COLLECTIONS_FILE)+ return render_template(+ "collections_config.html", collections_file_path=LOCAL_COLLECTIONS_FILE+ )+-@research_bp.route('/settings/api_keys', methods=['GET'])+@research_bp.route("/settings/api_keys", methods=["GET"])def api_keys_config_page():"""Edit API keys configuration"""# Get the secrets file pathsecrets_file = CONFIG_DIR / ".secrets.toml"-- return render_template('api_keys_config.html', secrets_file_path=secrets_file)-# Add to the imports section-from ..config import SEARCH_ENGINES_FILE++ return render_template("api_keys_config.html", secrets_file_path=secrets_file)+# Add a new route for search engines configuration page-@research_bp.route('/settings/search_engines', methods=['GET'])+@research_bp.route("/settings/search_engines", methods=["GET"])def search_engines_config_page():"""Edit search engines configuration using raw file editor"""# Read the current config fileraw_config = ""try:- with open(SEARCH_ENGINES_FILE, 'r') as f:+ with open(SEARCH_ENGINES_FILE, "r") as f:raw_config = f.read()except Exception as e:- flash(f'Error reading search engines configuration: {str(e)}', 'error')+ flash(f"Error reading search engines configuration: {str(e)}", "error")raw_config = "# Error reading configuration file"-+# Get list of engine names for displayengine_names = []try:from ..web_search_engines.search_engines_config import SEARCH_ENGINES+engine_names = list(SEARCH_ENGINES.keys())engine_names.sort() # Alphabetical orderexcept Exception as e:logger.error(f"Error getting engine names: {e}")-- return render_template('search_engines_config.html',- search_engines_file_path=SEARCH_ENGINES_FILE,- raw_config=raw_config,- engine_names=engine_names)++ return render_template(+ "search_engines_config.html",+ search_engines_file_path=SEARCH_ENGINES_FILE,+ raw_config=raw_config,+ engine_names=engine_names,+ )+# Add a route to save search engines configuration-@research_bp.route('/api/save_search_engines_config', methods=['POST'])+@research_bp.route("/api/save_search_engines_config", methods=["POST"])def save_search_engines_config():try:data = request.get_json()- raw_config = data.get('raw_config', '')-+ raw_config = data.get("raw_config", "")+# Validate TOML syntaxtry:toml.loads(raw_config)except toml.TomlDecodeError as e:- return jsonify({'success': False, 'error': f'TOML syntax error: {str(e)}'})-+ return jsonify({"success": False, "error": f"TOML syntax error: {str(e)}"})+# Ensure directory existsos.makedirs(os.path.dirname(SEARCH_ENGINES_FILE), exist_ok=True)-+# Create a backup firstbackup_path = f"{SEARCH_ENGINES_FILE}.bak"if os.path.exists(SEARCH_ENGINES_FILE):import shutil+shutil.copy2(SEARCH_ENGINES_FILE, backup_path)-+# Write new config- with open(SEARCH_ENGINES_FILE, 'w') as f:+ with open(SEARCH_ENGINES_FILE, "w") as f:f.write(raw_config)-- return jsonify({'success': True})++ return jsonify({"success": True})except Exception as e:- return jsonify({'success': False, 'error': str(e)})+ return jsonify({"success": False, "error": str(e)})# API endpoint to save raw LLM config-@research_bp.route('/api/save_llm_config', methods=['POST'])+@research_bp.route("/api/save_llm_config", methods=["POST"])def save_llm_config():try:data = request.get_json()- raw_config = data.get('raw_config', '')-+ raw_config = data.get("raw_config", "")+# Validate Python syntaxtry:- compile(raw_config, '<string>', 'exec')+ compile(raw_config, "<string>", "exec")except SyntaxError as e:- return jsonify({'success': False, 'error': f'Syntax error: {str(e)}'})-+ return jsonify({"success": False, "error": f"Syntax error: {str(e)}"})+# Ensure directory existsos.makedirs(os.path.dirname(LLM_CONFIG_FILE), exist_ok=True)-+# Create a backup firstbackup_path = f"{LLM_CONFIG_FILE}.bak"if os.path.exists(LLM_CONFIG_FILE):import shutil+shutil.copy2(LLM_CONFIG_FILE, backup_path)-+# Write new config- with open(LLM_CONFIG_FILE, 'w') as f:+ with open(LLM_CONFIG_FILE, "w") as f:f.write(raw_config)-- return jsonify({'success': True})++ return jsonify({"success": True})except Exception as e:- return jsonify({'success': False, 'error': str(e)})+ return jsonify({"success": False, "error": str(e)})+# API endpoint to save raw collections config-@research_bp.route('/api/save_collections_config', methods=['POST'])+@research_bp.route("/api/save_collections_config", methods=["POST"])def save_collections_config():try:data = request.get_json()- raw_config = data.get('raw_config', '')-+ raw_config = data.get("raw_config", "")+# Validate TOML syntaxtry:toml.loads(raw_config)except toml.TomlDecodeError as e:- return jsonify({'success': False, 'error': f'TOML syntax error: {str(e)}'})-+ return jsonify({"success": False, "error": f"TOML syntax error: {str(e)}"})+# Ensure directory existsos.makedirs(os.path.dirname(LOCAL_COLLECTIONS_FILE), exist_ok=True)-+# Create a backup firstbackup_path = f"{LOCAL_COLLECTIONS_FILE}.bak"if os.path.exists(LOCAL_COLLECTIONS_FILE):import shutil+shutil.copy2(LOCAL_COLLECTIONS_FILE, backup_path)-+# Write new config- with open(LOCAL_COLLECTIONS_FILE, 'w') as f:+ with open(LOCAL_COLLECTIONS_FILE, "w") as f:f.write(raw_config)-+# Also trigger a reload in the collections systemtry:- load_local_collections(reload=True)+ # TODO (djpetti) Fix collection reloading.+ load_local_collections(reload=True) # noqa: F821except Exception as reload_error:- return jsonify({'success': True, 'warning': f'Config saved, but error reloading: {str(reload_error)}'})-- return jsonify({'success': True})+ return jsonify(+ {+ "success": True,+ "warning": f"Config saved, but error reloading: {str(reload_error)}",+ }+ )++ return jsonify({"success": True})except Exception as e:- return jsonify({'success': False, 'error': str(e)})+ return jsonify({"success": False, "error": str(e)})+-# API endpoint to save raw main config-@research_bp.route('/api/save_main_config', methods=['POST'])+# API endpoint to save raw main config+@research_bp.route("/api/save_main_config", methods=["POST"])def save_raw_main_config():try:data = request.get_json()- raw_config = data.get('raw_config', '')-+ raw_config = data.get("raw_config", "")+# Validate TOML syntaxtry:toml.loads(raw_config)except toml.TomlDecodeError as e:- return jsonify({'success': False, 'error': f'TOML syntax error: {str(e)}'})-+ return jsonify({"success": False, "error": f"TOML syntax error: {str(e)}"})+# Ensure directory existsos.makedirs(os.path.dirname(MAIN_CONFIG_FILE), exist_ok=True)-+# Create a backup firstbackup_path = f"{MAIN_CONFIG_FILE}.bak"if os.path.exists(MAIN_CONFIG_FILE):import shutil+shutil.copy2(MAIN_CONFIG_FILE, backup_path)-+# Write new config- with open(MAIN_CONFIG_FILE, 'w') as f:+ with open(MAIN_CONFIG_FILE, "w") as f:f.write(raw_config)-- return jsonify({'success': True})++ return jsonify({"success": True})except Exception as e:- return jsonify({'success': False, 'error': str(e)})-@research_bp.route('/raw_config')+ return jsonify({"success": False, "error": str(e)})+++@research_bp.route("/raw_config")def get_raw_config():"""Return the raw configuration file content"""try:# Determine which config file to load based on a query parameter- config_type = request.args.get('type', 'main')-- if config_type == 'main':- config_path = os.path.join(app.config['CONFIG_DIR'], 'config.toml')- with open(config_path, 'r') as f:+ config_type = request.args.get("type", "main")++ if config_type == "main":+ config_path = os.path.join(app.config["CONFIG_DIR"], "config.toml")+ with open(config_path, "r") as f:return f.read()- elif config_type == 'llm':- config_path = os.path.join(app.config['CONFIG_DIR'], 'llm_config.py')- with open(config_path, 'r') as f:+ elif config_type == "llm":+ config_path = os.path.join(app.config["CONFIG_DIR"], "llm_config.py")+ with open(config_path, "r") as f:return f.read()- elif config_type == 'collections':- config_path = os.path.join(app.config['CONFIG_DIR'], 'collections.toml')- with open(config_path, 'r') as f:+ elif config_type == "collections":+ config_path = os.path.join(app.config["CONFIG_DIR"], "collections.toml")+ with open(config_path, "r") as f:return f.read()else:return "Unknown configuration type", 400except Exception as e:return str(e), 500-import os-import subprocess-import platform-@research_bp.route('/open_file_location', methods=['POST'])++@research_bp.route("/open_file_location", methods=["POST"])def open_file_location():- file_path = request.form.get('file_path')-+ file_path = request.form.get("file_path")+if not file_path:- flash('No file path provided', 'error')- return redirect(url_for('research.settings_page'))-+ flash("No file path provided", "error")+ return redirect(url_for("research.settings_page"))+# Get the directory containing the filedir_path = os.path.dirname(os.path.abspath(file_path))-+# Open the directory in the file explorertry:if platform.system() == "Windows":@@ -1577,111 +1831,118 @@ def open_file_location():subprocess.Popen(["open", dir_path])else: # Linuxsubprocess.Popen(["xdg-open", dir_path])-- flash(f'Opening folder: {dir_path}', 'success')++ flash(f"Opening folder: {dir_path}", "success")except Exception as e:- flash(f'Error opening folder: {str(e)}', 'error')-+ flash(f"Error opening folder: {str(e)}", "error")+# Redirect back to the settings page- if 'llm' in file_path:- return redirect(url_for('research.llm_config_page'))- elif 'collections' in file_path:- return redirect(url_for('research.collections_config_page'))+ if "llm" in file_path:+ return redirect(url_for("research.llm_config_page"))+ elif "collections" in file_path:+ return redirect(url_for("research.collections_config_page"))else:- return redirect(url_for('research.main_config_page'))+ return redirect(url_for("research.main_config_page"))+-@research_bp.route('/api/research/<int:research_id>/logs')+@research_bp.route("/api/research/<int:research_id>/logs")def get_research_logs(research_id):"""Get logs for a specific research ID"""# First check if the research existsconn = sqlite3.connect(DB_PATH)conn.row_factory = sqlite3.Rowcursor = conn.cursor()- cursor.execute('SELECT id FROM research_history WHERE id = ?', (research_id,))+ cursor.execute("SELECT id FROM research_history WHERE id = ?", (research_id,))result = cursor.fetchone()conn.close()-+if not result:- return jsonify({'status': 'error', 'message': 'Research not found'}), 404-+ return jsonify({"status": "error", "message": "Research not found"}), 404+# Retrieve logs from the databaselogs = get_logs_for_research(research_id)-+# Add any current logs from memory if this is an active research- if research_id in active_research and active_research[research_id].get('log'):+ if research_id in active_research and active_research[research_id].get("log"):# Use the logs from memory temporarily until they're saved to the database- memory_logs = active_research[research_id]['log']-+ memory_logs = active_research[research_id]["log"]+# Filter out logs that are already in the database# We'll compare timestamps to avoid duplicates- db_timestamps = {log['time'] for log in logs}- unique_memory_logs = [log for log in memory_logs if log['time'] not in db_timestamps]-+ db_timestamps = {log["time"] for log in logs}+ unique_memory_logs = [+ log for log in memory_logs if log["time"] not in db_timestamps+ ]+# Add unique memory logs to our return listlogs.extend(unique_memory_logs)-+# Sort logs by timestamp- logs.sort(key=lambda x: x['time'])-- return jsonify({- 'status': 'success',- 'logs': logs- })+ logs.sort(key=lambda x: x["time"])+ return jsonify({"status": "success", "logs": logs})# Register the blueprintapp.register_blueprint(research_bp)+# Also add the static route at the app level for compatibility[email protected]('/static/<path:path>')[email protected]("/static/<path:path>")def app_serve_static(path):return send_from_directory(app.static_folder, path)+# Add favicon route to prevent 404 errors[email protected]('/favicon.ico')[email protected]("/favicon.ico")def favicon():- return send_from_directory(app.static_folder, 'favicon.ico', mimetype='image/x-icon')+ return send_from_directory(+ app.static_folder, "favicon.ico", mimetype="image/x-icon"+ )+# Add this function to app.pydef convert_debug_to_markdown(raw_text, query):"""Convert the debug-formatted text to clean markdown.-+Args:raw_text: The raw formatted findings with debug symbolsquery: Original research query-+Returns:Clean markdown formatted text"""try:print(f"Starting markdown conversion for query: {query}")print(f"Raw text type: {type(raw_text)}")-+# Handle None or empty inputif not raw_text:print("WARNING: raw_text is empty or None")return f"No detailed findings available for '{query}'."-+# If there's a "DETAILED FINDINGS:" section, extract everything after itif "DETAILED FINDINGS:" in raw_text:print("Found DETAILED FINDINGS section")detailed_index = raw_text.index("DETAILED FINDINGS:")- content = raw_text[detailed_index + len("DETAILED FINDINGS:"):].strip()+ content = raw_text[detailed_index + len("DETAILED FINDINGS:") :].strip()else:print("No DETAILED FINDINGS section found, using full text")content = raw_text-+# Remove divider lines with === symbolslines_before = len(content.split("\n"))- content = "\n".join([line for line in content.split("\n")- if not line.strip().startswith("===") and not line.strip() == "="*80])+ content = "\n".join(+ [+ line+ for line in content.split("\n")+ if not line.strip().startswith("===") and not line.strip() == "=" * 80+ ]+ )lines_after = len(content.split("\n"))print(f"Removed {lines_before - lines_after} divider lines")--# Remove SEARCH QUESTIONS BY ITERATION sectionif "SEARCH QUESTIONS BY ITERATION:" in content:print("Found SEARCH QUESTIONS BY ITERATION section")@@ -1692,15 +1953,17 @@ def convert_debug_to_markdown(raw_text, query):marker_pos = content.index(marker, search_index)if next_major_section == -1 or marker_pos < next_major_section:next_major_section = marker_pos-+if next_major_section != -1:- print(f"Removing section from index {search_index} to {next_major_section}")+ print(+ f"Removing section from index {search_index} to {next_major_section}"+ )content = content[:search_index] + content[next_major_section:]else:# If no later section, just remove everything from SEARCH QUESTIONS onwardsprint(f"Removing everything after index {search_index}")content = content[:search_index].strip()-+print(f"Final markdown length: {len(content.strip())}")return content.strip()except Exception as e:@@ -1709,6 +1972,7 @@ def convert_debug_to_markdown(raw_text, query):# Return a basic message with the original query as fallbackreturn f"# Research on {query}\n\nThere was an error formatting the research results."+def main():"""Entry point for the web application when run as a command.@@ -1725,22 +1989,26 @@ def main():# Check for OpenAI availability but don't import it unless necessarytry:import os+api_key = os.environ.get("OPENAI_API_KEY")if api_key:try:# Only try to import if we have an API keyimport openai+openai.api_key = api_key- OPENAI_AVAILABLE = Trueprint("OpenAI integration is available")except ImportError:print("OpenAI package not installed, integration disabled")else:- print("OPENAI_API_KEY not found in environment variables, OpenAI integration disabled")+ print(+ "OPENAI_API_KEY not found in environment variables, OpenAI integration disabled"+ )except Exception as e:print(f"Error checking OpenAI availability: {e}")-+socketio.run(app, debug=debug, host=host, port=port, allow_unsafe_werkzeug=True)--if __name__ == '__main__':+++if __name__ == "__main__":main()diff --git a/src/local_deep_research/web_search_engines/engines/full_search.py b/src/local_deep_research/web_search_engines/engines/full_search.pyindex dea9ef81c3..bb91554c75 100644--- a/src/local_deep_research/web_search_engines/engines/full_search.py+++ b/src/local_deep_research/web_search_engines/engines/full_search.py@@ -1,13 +1,17 @@+import json+import logging+import os+from datetime import datetime+from typing import Dict, List+import justextfrom langchain_community.document_loaders import AsyncChromiumLoaderfrom langchain_community.document_transformers import BeautifulSoupTransformerfrom langchain_core.language_models import BaseLLM-from typing import List, Dict-import json, os-from ...utilties.search_utilities import remove_think_tags-from datetime import datetime+from ... import config-import logging+from ...utilties.search_utilities import remove_think_tags+logger = logging.getLogger(__name__)@@ -15,14 +19,13 @@ class FullSearchResults:def __init__(self,llm: BaseLLM, # Add LLM parameter- web_search: list,+ web_search: list,output_format: str = "list",language: str = "English",max_results: int = 10,region: str = "wt-wt",time: str = "y",- safesearch: str = "Moderate"-+ safesearch: str = "Moderate",):self.llm = llmself.output_format = output_format@@ -31,10 +34,9 @@ class FullSearchResults:self.region = regionself.time = timeself.safesearch = safesearch- self.web_search =web_search+ self.web_search = web_searchos.environ["USER_AGENT"] = "Local Deep Research/1.0"-self.bs_transformer = BeautifulSoupTransformer()self.tags_to_extract = ["p", "div", "span"]@@ -54,7 +56,7 @@ class FullSearchResults:{results}Return a JSON array of indices (0-based) for sources that meet ALL criteria.- ONLY Return a JSON array of indices (0-based) and nothing else. No letters.+ ONLY Return a JSON array of indices (0-based) and nothing else. No letters.Example response: \n[0, 2, 4]\n\n"""try:@@ -66,7 +68,7 @@ class FullSearchResults:return [r for i, r in enumerate(results) if i in good_indices]except Exception as e:logger.error(f"URL filtering error: {e}")- return []+ return []def remove_boilerplate(self, html: str) -> str:if not html or not html.strip():@@ -77,7 +79,7 @@ class FullSearchResults:def run(self, query: str):nr_full_text = 0- # Step 1: Get search results+ # Step 1: Get search resultssearch_results = self.web_search.invoke(query)if not isinstance(search_results, list):raise ValueError("Expected the search results in list format.")@@ -126,4 +128,4 @@ class FullSearchResults:return self.run(query)def __call__(self, query: str):- return self.invoke(query)\ No newline at end of file+ return self.invoke(query)diff --git a/src/local_deep_research/web_search_engines/engines/meta_search_engine.py b/src/local_deep_research/web_search_engines/engines/meta_search_engine.pyindex 5d242aabb9..ed39b5b358 100644--- a/src/local_deep_research/web_search_engines/engines/meta_search_engine.py+++ b/src/local_deep_research/web_search_engines/engines/meta_search_engine.py@@ -1,12 +1,12 @@import loggingimport os-from typing import Dict, List, Any, Optional+from typing import Any, Dict, List, Optional+from ... import configfrom ..search_engine_base import BaseSearchEngine-from ..search_engines_config import SEARCH_ENGINESfrom ..search_engine_factory import create_search_engine+from ..search_engines_config import SEARCH_ENGINESfrom .search_engine_wikipedia import WikipediaSearchEngine-from ... import config# Setup logginglogging.basicConfig(level=logging.INFO)@@ -18,17 +18,19 @@ class MetaSearchEngine(BaseSearchEngine):LLM-powered meta search engine that intelligently selects and usesthe appropriate search engines based on query analysis"""-- def __init__(self,- llm,- max_results: int = 10,- use_api_key_services: bool = True,- max_engines_to_try: int = 3,- max_filtered_results: Optional[int] = None,- **kwargs):++ def __init__(+ self,+ llm,+ max_results: int = 10,+ use_api_key_services: bool = True,+ max_engines_to_try: int = 3,+ max_filtered_results: Optional[int] = None,+ **kwargs,+ ):"""Initialize the meta search engine.-+Args:llm: Language model instance for query classification and relevance filteringmax_results: Maximum number of search results to return@@ -39,50 +41,50 @@ class MetaSearchEngine(BaseSearchEngine):"""# Initialize the BaseSearchEngine with the LLM and max_filtered_resultssuper().__init__(llm=llm, max_filtered_results=max_filtered_results)-+self.max_results = max_resultsself.use_api_key_services = use_api_key_servicesself.max_engines_to_try = max_engines_to_try-+# Cache for engine instancesself.engine_cache = {}-+# Get available engines (excluding 'meta' and 'auto')self.available_engines = self._get_available_engines()- logger.info(f"Meta Search Engine initialized with {len(self.available_engines)} available engines: {', '.join(self.available_engines)}")-+ logger.info(+ f"Meta Search Engine initialized with {len(self.available_engines)} available engines: {', '.join(self.available_engines)}"+ )+# Create a fallback engine in case everything else failsself.fallback_engine = WikipediaSearchEngine(- max_results=max_results,- llm=llm,- max_filtered_results=max_filtered_results+ max_results=max_results, llm=llm, max_filtered_results=max_filtered_results)-+def _get_available_engines(self) -> List[str]:"""Get list of available engines, excluding 'meta' and 'auto'"""# Filter out 'meta' and 'auto' and check API key availabilityavailable = []- for name, config in SEARCH_ENGINES.items():+ for name, config_ in SEARCH_ENGINES.items():if name in ["meta", "auto"]:continue-- if config.get("requires_api_key", False) and not self.use_api_key_services:++ if config_.get("requires_api_key", False) and not self.use_api_key_services:continue-- if config.get("requires_api_key", False):- api_key_env = config.get("api_key_env")++ if config_.get("requires_api_key", False):+ api_key_env = config_.get("api_key_env")api_key = os.getenv(api_key_env) if api_key_env else Noneif not api_key:continue-+available.append(name)-+# Make sure we have at least one engine availableif not available and "wikipedia" in SEARCH_ENGINES:available.append("wikipedia")-+return available-+def analyze_query(self, query: str) -> List[str]:"""Use the LLM to analyze the query and return a ranked list of@@ -95,22 +97,29 @@ class MetaSearchEngine(BaseSearchEngine):for name in self.available_engines:logger.info(f"Processing search engine: {name}")try:- description = f"- {name.upper()}: Good for {', '.join(SEARCH_ENGINES[name]['strengths'][:3])}. " \- f"Weaknesses: {', '.join(SEARCH_ENGINES[name]['weaknesses'][:2])}. " \- f"Reliability: {SEARCH_ENGINES[name]['reliability']*100:.0f}%"+ description = (+ f"- {name.upper()}: Good for {', '.join(SEARCH_ENGINES[name]['strengths'][:3])}. "+ f"Weaknesses: {', '.join(SEARCH_ENGINES[name]['weaknesses'][:2])}. "+ f"Reliability: "+ f"{SEARCH_ENGINES[name]['reliability'] * 100:.0f}%"+ )engine_descriptions.append(description)except KeyError as e:logger.error(f"Missing key for engine {name}: {e}")# Add a basic description for engines with missing configuration- engine_descriptions.append(f"- {name.upper()}: General purpose search engine.")+ engine_descriptions.append(+ f"- {name.upper()}: General purpose search engine."+ )except Exception as e:logger.error(f"Error processing engine {name}: {e}")- engine_descriptions.append(f"- {name.upper()}: General purpose search engine.")+ engine_descriptions.append(+ f"- {name.upper()}: General purpose search engine."+ )engine_descriptions = "\n".join(engine_descriptions)-+prompt = f"""Analyze this search query and rank the available search engines in order of most to least appropriate for answering it.-+Query: "{query}"Available search engines:@@ -128,156 +137,166 @@ Do not include any engines that are not listed above. Only return the comma-sepatry:response = self.llm.invoke(prompt)content = response.content.strip()-+# Parse the response into a list of engine names- engine_names = [name.strip().lower() for name in content.split(',')]-+ engine_names = [name.strip().lower() for name in content.split(",")]+# Filter out any invalid engine names- valid_engines = [name for name in engine_names if name in self.available_engines]-+ valid_engines = [+ name for name in engine_names if name in self.available_engines+ ]+# If no valid engines were returned, use default order based on reliabilityif not valid_engines:valid_engines = sorted(- self.available_engines,+ self.available_engines,key=lambda x: SEARCH_ENGINES[x]["reliability"],- reverse=True+ reverse=True,)-+return valid_enginesexcept Exception as e:logger.error(f"Error analyzing query with LLM: {str(e)}")# Fall back to reliability-based orderingreturn sorted(- self.available_engines,+ self.available_engines,key=lambda x: SEARCH_ENGINES[x]["reliability"],- reverse=True+ reverse=True,)-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information by selecting the best search engine for this query.-+Args:query: The search query-+Returns:List of preview dictionaries"""# Get ranked list of engines for this queryranked_engines = self.analyze_query(query)-+if not ranked_engines:- logger.warning("No suitable search engines found for query, using fallback engine")+ logger.warning(+ "No suitable search engines found for query, using fallback engine"+ )return self.fallback_engine._get_previews(query)-+# Limit the number of engines to try- engines_to_try = ranked_engines[:self.max_engines_to_try]-- logger.info(f"Search plan created. Will try these engines in order: {', '.join(engines_to_try)}")-+ engines_to_try = ranked_engines[: self.max_engines_to_try]++ logger.info(+ f"Search plan created. Will try these engines in order: {', '.join(engines_to_try)}"+ )+all_errors = []# Try each engine in orderfor engine_name in engines_to_try:logger.info(f"Trying search engine: {engine_name}")-+# Get or create the engine instanceengine = self._get_engine_instance(engine_name)-+if not engine:logger.warning(f"Failed to initialize {engine_name}, skipping")all_errors.append(f"Failed to initialize {engine_name}")continue-+try:# Get previews from this enginepreviews = engine._get_previews(query)-+# If search was successful, return resultsif previews and len(previews) > 0:- logger.info(f"Successfully got {len(previews)} preview results from {engine_name}")+ logger.info(+ f"Successfully got {len(previews)} preview results from {engine_name}"+ )# Store selected engine for later useself._selected_engine = engineself._selected_engine_name = engine_namereturn previews-+logger.info(f"{engine_name} returned no previews")all_errors.append(f"{engine_name} returned no previews")-+except Exception as e:error_msg = f"Error getting previews from {engine_name}: {str(e)}"logger.error(error_msg)all_errors.append(error_msg)-+# If we reach here, all engines failed, use fallback- logger.warning(f"All engines failed or returned no preview results: {', '.join(all_errors)}")+ logger.warning(+ f"All engines failed or returned no preview results: {', '.join(all_errors)}"+ )logger.info("Using fallback Wikipedia engine for previews")self._selected_engine = self.fallback_engineself._selected_engine_name = "wikipedia"return self.fallback_engine._get_previews(query)-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content using the engine that provided the previews.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""# Check if we should get full content- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:+ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Snippet-only mode, skipping full content retrieval")return relevant_items-+logger.info("Getting full content for relevant items")-+# Use the selected engine to get full content- if hasattr(self, '_selected_engine'):+ if hasattr(self, "_selected_engine"):try:logger.info(f"Using {self._selected_engine_name} to get full content")return self._selected_engine._get_full_content(relevant_items)except Exception as e:- logger.error(f"Error getting full content from {self._selected_engine_name}: {str(e)}")+ logger.error(+ f"Error getting full content from {self._selected_engine_name}: {str(e)}"+ )# Fall back to returning relevant items without full contentreturn relevant_itemselse:- logger.warning("No engine was selected during preview phase, returning relevant items as-is")+ logger.warning(+ "No engine was selected during preview phase, returning relevant items as-is"+ )return relevant_items-+def _get_engine_instance(self, engine_name: str) -> Optional[BaseSearchEngine]:"""Get or create an instance of the specified search engine"""# Return cached instance if availableif engine_name in self.engine_cache:return self.engine_cache[engine_name]-+# Create a new instanceengine = Nonetry:# Only pass parameters that all engines accept- common_params = {- "llm": self.llm,- "max_results": self.max_results- }-+ common_params = {"llm": self.llm, "max_results": self.max_results}+# Add max_filtered_results if specifiedif self.max_filtered_results is not None:common_params["max_filtered_results"] = self.max_filtered_results-- engine = create_search_engine(- engine_name,- **common_params- )++ engine = create_search_engine(engine_name, **common_params)except Exception as e:logger.error(f"Error creating engine instance for {engine_name}: {str(e)}")return None-+if engine:# Cache the instanceself.engine_cache[engine_name] = engine-+return engine-+def invoke(self, query: str) -> List[Dict[str, Any]]:"""Compatibility method for LangChain tools"""- return self.run(query)\ No newline at end of file+ return self.run(query)diff --git a/src/local_deep_research/web_search_engines/engines/search_engine_arxiv.py b/src/local_deep_research/web_search_engines/engines/search_engine_arxiv.pyindex 4fbd7cfb7f..109ad6c1bf 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_arxiv.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_arxiv.py@@ -1,27 +1,32 @@-from typing import Dict, List, Any, Optional+import logging+from typing import Any, Dict, List, Optional++import arxivfrom langchain_core.language_models import BaseLLM-from ..search_engine_base import BaseSearchEnginefrom ... import config-import arxiv-import logging+from ..search_engine_base import BaseSearchEngine+logger = logging.getLogger(__name__)+class ArXivSearchEngine(BaseSearchEngine):"""arXiv search engine implementation with two-phase approach"""-- def __init__(self,- max_results: int = 10,- sort_by: str = "relevance",- sort_order: str = "descending",- include_full_text: bool = False,- download_dir: Optional[str] = None,- max_full_text: int = 1,- llm: Optional[BaseLLM] = None,- max_filtered_results: Optional[int] = None): # Added this parameter++ def __init__(+ self,+ max_results: int = 10,+ sort_by: str = "relevance",+ sort_order: str = "descending",+ include_full_text: bool = False,+ download_dir: Optional[str] = None,+ max_full_text: int = 1,+ llm: Optional[BaseLLM] = None,+ max_filtered_results: Optional[int] = None,+ ): # Added this parameter"""Initialize the arXiv search engine.-+Args:max_results: Maximum number of search resultssort_by: Sorting criteria ('relevance', 'lastUpdatedDate', or 'submittedDate')@@ -33,77 +38,81 @@ class ArXivSearchEngine(BaseSearchEngine):max_filtered_results: Maximum number of results to keep after filtering"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)- self.max_results=max(self.max_results,25)+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )+ self.max_results = max(self.max_results, 25)self.sort_by = sort_byself.sort_order = sort_orderself.include_full_text = include_full_textself.download_dir = download_dirself.max_full_text = max_full_text-+# Map sort parameters to arxiv package parametersself.sort_criteria = {- 'relevance': arxiv.SortCriterion.Relevance,- 'lastUpdatedDate': arxiv.SortCriterion.LastUpdatedDate,- 'submittedDate': arxiv.SortCriterion.SubmittedDate+ "relevance": arxiv.SortCriterion.Relevance,+ "lastUpdatedDate": arxiv.SortCriterion.LastUpdatedDate,+ "submittedDate": arxiv.SortCriterion.SubmittedDate,}-+self.sort_directions = {- 'ascending': arxiv.SortOrder.Ascending,- 'descending': arxiv.SortOrder.Descending+ "ascending": arxiv.SortOrder.Ascending,+ "descending": arxiv.SortOrder.Descending,}def _get_search_results(self, query: str) -> List[Any]:"""Helper method to get search results from arXiv API.-+Args:query: The search query-+Returns:List of arXiv paper objects"""# Configure the search client- sort_criteria = self.sort_criteria.get(self.sort_by, arxiv.SortCriterion.Relevance)- sort_order = self.sort_directions.get(self.sort_order, arxiv.SortOrder.Descending)---+ sort_criteria = self.sort_criteria.get(+ self.sort_by, arxiv.SortCriterion.Relevance+ )+ sort_order = self.sort_directions.get(+ self.sort_order, arxiv.SortOrder.Descending+ )+# Create the search clientclient = arxiv.Client(page_size=self.max_results)-+# Create the search querysearch = arxiv.Search(query=query,max_results=self.max_results,sort_by=sort_criteria,- sort_order=sort_order+ sort_order=sort_order,)-+# Get the search resultspapers = list(client.results(search))-+return papers-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information for arXiv papers.-+Args:query: The search query-+Returns:List of preview dictionaries"""logger.info("Getting paper previews from arXiv")-+try:# Get search results from arXivpapers = self._get_search_results(query)-+# Store the paper objects for later useself._papers = {paper.entry_id: paper for paper in papers}-+# Format results as previews with basic informationpreviews = []for paper in papers:@@ -111,196 +120,265 @@ class ArXivSearchEngine(BaseSearchEngine):"id": paper.entry_id, # Use entry_id as ID"title": paper.title,"link": paper.entry_id, # arXiv URL- "snippet": paper.summary[:250] + "..." if len(paper.summary) > 250 else paper.summary,- "authors": [author.name for author in paper.authors[:3]], # First 3 authors- "published": paper.published.strftime("%Y-%m-%d") if paper.published else None+ "snippet": (+ paper.summary[:250] + "..."+ if len(paper.summary) > 250+ else paper.summary+ ),+ "authors": [+ author.name for author in paper.authors[:3]+ ], # First 3 authors+ "published": (+ paper.published.strftime("%Y-%m-%d")+ if paper.published+ else None+ ),}-+previews.append(preview)-+return previews-+except Exception as e:logger.error(f"Error getting arXiv previews: {e}")return []-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant arXiv papers.Downloads PDFs and extracts text when include_full_text is True.Limits the number of PDFs processed to max_full_text.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""# Check if we should get full content- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:+ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Snippet-only mode, skipping full content retrieval")return relevant_items-+logger.info("Getting full content for relevant arXiv papers")-+results = []pdf_count = 0 # Track number of PDFs processed-+for item in relevant_items:# Start with the preview dataresult = item.copy()-+# Get the paper IDpaper_id = item.get("id")-+# Try to get the full paper from our cachepaper = None- if hasattr(self, '_papers') and paper_id in self._papers:+ if hasattr(self, "_papers") and paper_id in self._papers:paper = self._papers[paper_id]-+if paper:# Add complete paper information- result.update({- "pdf_url": paper.pdf_url,- "authors": [author.name for author in paper.authors], # All authors- "published": paper.published.strftime("%Y-%m-%d") if paper.published else None,- "updated": paper.updated.strftime("%Y-%m-%d") if paper.updated else None,- "categories": paper.categories,- "summary": paper.summary, # Full summary- "comment": paper.comment,- "journal_ref": paper.journal_ref,- "doi": paper.doi- })-+ result.update(+ {+ "pdf_url": paper.pdf_url,+ "authors": [+ author.name for author in paper.authors+ ], # All authors+ "published": (+ paper.published.strftime("%Y-%m-%d")+ if paper.published+ else None+ ),+ "updated": (+ paper.updated.strftime("%Y-%m-%d")+ if paper.updated+ else None+ ),+ "categories": paper.categories,+ "summary": paper.summary, # Full summary+ "comment": paper.comment,+ "journal_ref": paper.journal_ref,+ "doi": paper.doi,+ }+ )+# Default to using summary as contentresult["content"] = paper.summaryresult["full_content"] = paper.summary-+# Download PDF and extract text if requested and within limit- if self.include_full_text and self.download_dir and pdf_count < self.max_full_text:+ if (+ self.include_full_text+ and self.download_dir+ and pdf_count < self.max_full_text+ ):try:# Download the paperpdf_count += 1 # Increment counter before attempting downloadpaper_path = paper.download_pdf(dirpath=self.download_dir)result["pdf_path"] = str(paper_path)-+# Extract text from PDFtry:# Try PyPDF2 firsttry:import PyPDF2- with open(paper_path, 'rb') as pdf_file:++ with open(paper_path, "rb") as pdf_file:pdf_reader = PyPDF2.PdfReader(pdf_file)pdf_text = ""for page in pdf_reader.pages:pdf_text += page.extract_text() + "\n\n"-- if pdf_text.strip(): # Only use if we got meaningful text++ if (+ pdf_text.strip()+ ): # Only use if we got meaningful textresult["content"] = pdf_textresult["full_content"] = pdf_text- logger.info(f"Successfully extracted text from PDF using PyPDF2")+ logger.info(+ "Successfully extracted text from PDF using PyPDF2"+ )except (ImportError, Exception) as e1:# Fall back to pdfplumbertry:import pdfplumber+with pdfplumber.open(paper_path) as pdf:pdf_text = ""for page in pdf.pages:pdf_text += page.extract_text() + "\n\n"-- if pdf_text.strip(): # Only use if we got meaningful text++ if (+ pdf_text.strip()+ ): # Only use if we got meaningful textresult["content"] = pdf_textresult["full_content"] = pdf_text- logger.info(f"Successfully extracted text from PDF using pdfplumber")+ logger.info(+ "Successfully extracted text from PDF using pdfplumber"+ )except (ImportError, Exception) as e2:- logger.error(f"PDF text extraction failed: {str(e1)}, then {str(e2)}")- logger.error(f"Using paper summary as content instead")+ logger.error(+ f"PDF text extraction failed: {str(e1)}, then {str(e2)}"+ )+ logger.error(+ "Using paper summary as content instead"+ )except Exception as e:logger.error(f"Error extracting text from PDF: {e}")- logger.error(f"Using paper summary as content instead")+ logger.error("Using paper summary as content instead")except Exception as e:logger.error(f"Error downloading paper {paper.title}: {e}")result["pdf_path"] = Nonepdf_count -= 1 # Decrement counter if download fails- elif self.include_full_text and self.download_dir and pdf_count >= self.max_full_text:+ elif (+ self.include_full_text+ and self.download_dir+ and pdf_count >= self.max_full_text+ ):# Reached PDF limit- logger.info(f"Maximum number of PDFs ({self.max_full_text}) reached. Skipping remaining PDFs.")+ logger.info(+ f"Maximum number of PDFs ({self.max_full_text}) reached. Skipping remaining PDFs."+ )result["content"] = paper.summaryresult["full_content"] = paper.summary-+results.append(result)-+return results-+def run(self, query: str) -> List[Dict[str, Any]]:"""Execute a search using arXiv with the two-phase approach.-+Args:query: The search query-+Returns:List of search results"""logger.info("---Execute a search using arXiv---")-+# Use the implementation from the parent class which handles all phasesresults = super().run(query)-+# Clean up- if hasattr(self, '_papers'):+ if hasattr(self, "_papers"):del self._papers-+return results-+def get_paper_details(self, arxiv_id: str) -> Dict[str, Any]:"""Get detailed information about a specific arXiv paper.-+Args:arxiv_id: arXiv ID of the paper (e.g., '2101.12345')-+Returns:Dictionary with paper information"""try:# Create the search clientclient = arxiv.Client()-+# Search for the specific papersearch = arxiv.Search(id_list=[arxiv_id], max_results=1)-+# Get the paperpapers = list(client.results(search))if not papers:return {}-+paper = papers[0]-+# Format result based on configresult = {"title": paper.title,"link": paper.entry_id,- "snippet": paper.summary[:250] + "..." if len(paper.summary) > 250 else paper.summary,- "authors": [author.name for author in paper.authors[:3]] # First 3 authors+ "snippet": (+ paper.summary[:250] + "..."+ if len(paper.summary) > 250+ else paper.summary+ ),+ "authors": [+ author.name for author in paper.authors[:3]+ ], # First 3 authors}-+# Add full content if not in snippet-only mode- if not hasattr(config, 'SEARCH_SNIPPETS_ONLY') or not config.SEARCH_SNIPPETS_ONLY:- result.update({- "pdf_url": paper.pdf_url,- "authors": [author.name for author in paper.authors], # All authors- "published": paper.published.strftime("%Y-%m-%d") if paper.published else None,- "updated": paper.updated.strftime("%Y-%m-%d") if paper.updated else None,- "categories": paper.categories,- "summary": paper.summary, # Full summary- "comment": paper.comment,- "journal_ref": paper.journal_ref,- "doi": paper.doi,- "content": paper.summary, # Use summary as content- "full_content": paper.summary # For consistency- })-+ if (+ not hasattr(config, "SEARCH_SNIPPETS_ONLY")+ or not config.SEARCH_SNIPPETS_ONLY+ ):+ result.update(+ {+ "pdf_url": paper.pdf_url,+ "authors": [+ author.name for author in paper.authors+ ], # All authors+ "published": (+ paper.published.strftime("%Y-%m-%d")+ if paper.published+ else None+ ),+ "updated": (+ paper.updated.strftime("%Y-%m-%d")+ if paper.updated+ else None+ ),+ "categories": paper.categories,+ "summary": paper.summary, # Full summary+ "comment": paper.comment,+ "journal_ref": paper.journal_ref,+ "doi": paper.doi,+ "content": paper.summary, # Use summary as content+ "full_content": paper.summary, # For consistency+ }+ )+# Download PDF if requestedif self.include_full_text and self.download_dir:try:@@ -309,57 +387,61 @@ class ArXivSearchEngine(BaseSearchEngine):result["pdf_path"] = str(paper_path)except Exception as e:logger.error(f"Error downloading paper: {e}")-+return result-+except Exception as e:logger.error(f"Error getting paper details: {e}")return {}-- def search_by_author(self, author_name: str, max_results: Optional[int] = None) -> List[Dict[str, Any]]:++ def search_by_author(+ self, author_name: str, max_results: Optional[int] = None+ ) -> List[Dict[str, Any]]:"""Search for papers by a specific author.-+Args:author_name: Name of the authormax_results: Maximum number of results (defaults to self.max_results)-+Returns:List of papers by the author"""original_max_results = self.max_results-+try:if max_results:self.max_results = max_results-- query = f"au:\"{author_name}\""++ query = f'au:"{author_name}"'return self.run(query)-+finally:# Restore original valueself.max_results = original_max_results-- def search_by_category(self, category: str, max_results: Optional[int] = None) -> List[Dict[str, Any]]:++ def search_by_category(+ self, category: str, max_results: Optional[int] = None+ ) -> List[Dict[str, Any]]:"""Search for papers in a specific arXiv category.-+Args:category: arXiv category (e.g., 'cs.AI', 'physics.optics')max_results: Maximum number of results (defaults to self.max_results)-+Returns:List of papers in the category"""original_max_results = self.max_results-+try:if max_results:self.max_results = max_results-+query = f"cat:{category}"return self.run(query)-+finally:# Restore original value- self.max_results = original_max_results\ No newline at end of file+ self.max_results = original_max_resultsdiff --git a/src/local_deep_research/web_search_engines/engines/search_engine_brave.py b/src/local_deep_research/web_search_engines/engines/search_engine_brave.pyindex 4e54c20b72..1741647101 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_brave.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_brave.py@@ -1,31 +1,36 @@-from langchain_community.tools import BraveSearch-from typing import Dict, List, Any, Optional+import loggingimport os+from typing import Any, Dict, List, Optional++from langchain_community.tools import BraveSearchfrom langchain_core.language_models import BaseLLM-from ..search_engine_base import BaseSearchEnginefrom ... import config-import logging+from ..search_engine_base import BaseSearchEngine+logger = logging.getLogger(__name__)+class BraveSearchEngine(BaseSearchEngine):"""Brave search engine implementation with two-phase approach"""- def __init__(self,- max_results: int = 10,- region: str = "US",- time_period: str = "y",- safe_search: bool = True,- search_language: str = "English",- api_key: Optional[str] = None,- language_code_mapping: Optional[Dict[str, str]] = None,- llm: Optional[BaseLLM] = None,- include_full_content: bool = True,- max_filtered_results: Optional[int] = None,- **kwargs):+ def __init__(+ self,+ max_results: int = 10,+ region: str = "US",+ time_period: str = "y",+ safe_search: bool = True,+ search_language: str = "English",+ api_key: Optional[str] = None,+ language_code_mapping: Optional[Dict[str, str]] = None,+ llm: Optional[BaseLLM] = None,+ include_full_content: bool = True,+ max_filtered_results: Optional[int] = None,+ **kwargs,+ ):"""Initialize the Brave search engine.-+Args:max_results: Maximum number of search resultsregion: Region code for search results@@ -40,9 +45,11 @@ class BraveSearchEngine(BaseSearchEngine):**kwargs: Additional parameters (ignored but accepted for compatibility)"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )self.include_full_content = include_full_content-+# Set up language code mappingif language_code_mapping is None:language_code_mapping = {@@ -56,21 +63,23 @@ class BraveSearchEngine(BaseSearchEngine):"portuguese": "pt","russian": "ru",}-+# Get API keybrave_api_key = api_key or os.getenv("BRAVE_API_KEY")if not brave_api_key:- raise ValueError("BRAVE_API_KEY not found. Please provide api_key or set the BRAVE_API_KEY environment variable.")-+ raise ValueError(+ "BRAVE_API_KEY not found. Please provide api_key or set the BRAVE_API_KEY environment variable."+ )+# Get language codelanguage_code = language_code_mapping.get(search_language.lower(), "en")-+# Convert time period format to Brave's formatbrave_time_period = f"p{time_period}"-+# Convert safe search to Brave's formatbrave_safe_search = "moderate" if safe_search else "off"-+# Initialize Brave Searchself.engine = BraveSearch.from_api_key(api_key=brave_api_key,@@ -80,17 +89,18 @@ class BraveSearchEngine(BaseSearchEngine):"search_lang": language_code,"safesearch": brave_safe_search,"freshness": brave_time_period,- }+ },)-+# Set user agent for Brave Searchos.environ["USER_AGENT"] = "Local Deep Research/1.0"-+# If full content is requested, initialize FullSearchResultsif include_full_content:# Import FullSearchResults only if neededtry:from .full_search import FullSearchResults+self.full_search = FullSearchResults(llm=llm,web_search=self.engine,@@ -98,37 +108,40 @@ class BraveSearchEngine(BaseSearchEngine):max_results=max_results,region=region,time=time_period,- safesearch=brave_safe_search+ safesearch=brave_safe_search,)except ImportError:- logger.warning("Warning: FullSearchResults not available. Full content retrieval disabled.")+ logger.warning(+ "Warning: FullSearchResults not available. Full content retrieval disabled."+ )self.include_full_content = False-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information from Brave Search.-+Args:query: The search query-+Returns:List of preview dictionaries"""logger.info("Getting search results from Brave Search")-+try:# Get search results from Brave Searchraw_results = self.engine.run(query[:400])-+# Parse results if they're in string formatif isinstance(raw_results, str):try:import json+raw_results = json.loads(raw_results)except json.JSONDecodeError:logger.error("Error: Unable to parse BraveSearch response as JSON.")return []-+# Format results as previewspreviews = []for i, result in enumerate(raw_results):@@ -138,39 +151,41 @@ class BraveSearchEngine(BaseSearchEngine):"link": result.get("link", ""),"snippet": result.get("snippet", ""),"displayed_link": result.get("link", ""),- "position": i+ "position": i,}-+# Store full Brave result for laterpreview["_full_result"] = result-+previews.append(preview)-+# Store the previews for potential full content retrievalself._search_results = previews-+return previews-+except Exception as e:logger.error(f"Error getting Brave Search results: {e}")return []-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant search results.If include_full_content is True and FullSearchResults is available,retrieves full webpage content for the results.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content if requested"""# Check if we should get full content- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:+ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Snippet-only mode, skipping full content retrieval")-+# Return the relevant items with their full Brave informationresults = []for item in relevant_items:@@ -182,28 +197,27 @@ class BraveSearchEngine(BaseSearchEngine):del result["_full_result"]else:result = item-+results.append(result)-+return results-+# If full content retrieval is enabled- if self.include_full_content and hasattr(self, 'full_search'):+ if self.include_full_content and hasattr(self, "full_search"):logger.info("Retrieving full webpage content")-+try:- # Extract only the links from relevant items- links = [item.get("link") for item in relevant_items if item.get("link")]-# Use FullSearchResults to get full content- results_with_content = self.full_search._get_full_content(relevant_items)-+ results_with_content = self.full_search._get_full_content(+ relevant_items+ )+return results_with_content-+except Exception as e:logger.error(f"Error retrieving full content: {e}")# Fall back to returning the items without full content-+# Return items with their full Brave informationresults = []for item in relevant_items:@@ -217,28 +231,28 @@ class BraveSearchEngine(BaseSearchEngine):result = item.copy()if "_full_result" in result:del result["_full_result"]-+results.append(result)-+return results-+def run(self, query: str) -> List[Dict[str, Any]]:"""Execute a search using Brave Search with the two-phase approach.-+Args:query: The search query-+Returns:List of search results"""logger.info("---Execute a search using Brave Search---")-+# Use the implementation from the parent class which handles all phasesresults = super().run(query)-+# Clean up- if hasattr(self, '_search_results'):+ if hasattr(self, "_search_results"):del self._search_results-+return resultsdiff --git a/src/local_deep_research/web_search_engines/engines/search_engine_ddg.py b/src/local_deep_research/web_search_engines/engines/search_engine_ddg.pyindex 48bd905b22..d408b9d2cb 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_ddg.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_ddg.py@@ -1,26 +1,31 @@+import logging+from typing import Any, Dict, List, Optional+from langchain_community.utilities import DuckDuckGoSearchAPIWrapper-from typing import Dict, List, Any, Optionalfrom langchain_core.language_models import BaseLLMfrom ..search_engine_base import BaseSearchEnginefrom .full_search import FullSearchResults # Import the FullSearchResults class-import logging+logger = logging.getLogger(__name__)+class DuckDuckGoSearchEngine(BaseSearchEngine):"""DuckDuckGo search engine implementation with two-phase retrieval"""-- def __init__(self,- max_results: int = 10,- region: str = "us",- safe_search: bool = True,- llm: Optional[BaseLLM] = None,- language: str = "English",- include_full_content: bool = False,- max_filtered_results=5):++ def __init__(+ self,+ max_results: int = 10,+ region: str = "us",+ safe_search: bool = True,+ llm: Optional[BaseLLM] = None,+ language: str = "English",+ include_full_content: bool = False,+ max_filtered_results=5,+ ):"""Initialize the DuckDuckGo search engine.-+Args:max_results: Maximum number of search resultsregion: Region code for search results@@ -30,19 +35,21 @@ class DuckDuckGoSearchEngine(BaseSearchEngine):include_full_content: Whether to include full webpage content in results"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )self.region = regionself.safe_search = safe_searchself.language = languageself.include_full_content = include_full_content-+# Initialize the DuckDuckGo wrapperself.engine = DuckDuckGoSearchAPIWrapper(region=region,max_results=max_results,- safesearch="moderate" if safe_search else "off"+ safesearch="moderate" if safe_search else "off",)-+# Initialize FullSearchResults if full content is requestedif include_full_content and llm:self.full_search = FullSearchResults(@@ -52,44 +59,44 @@ class DuckDuckGoSearchEngine(BaseSearchEngine):max_results=max_results,region=region,time="y",- safesearch="Moderate" if safe_search else "Off"+ safesearch="Moderate" if safe_search else "Off",)-+def run(self, query: str) -> List[Dict[str, Any]]:"""Execute a search using DuckDuckGo with the two-phase approach.Respects config parameters:- SEARCH_SNIPPETS_ONLY: If True, only returns snippets without full content- SKIP_RELEVANCE_FILTER: If True, returns all results without filtering-+Args:query: The search query-+Returns:List of search results"""logger.info("---Execute a search using DuckDuckGo---")-+# Implementation of the two-phase approach (from parent class)return super().run(query)-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information (titles and snippets) for initial search results.-+Args:query: The search query-+Returns:List of preview dictionaries with 'id', 'title', and 'snippet' keys"""try:# Get search results from DuckDuckGoresults = self.engine.results(query, max_results=self.max_results)-+if not isinstance(results, list):return []-+# Process results to get previewspreviews = []for i, result in enumerate(results):@@ -97,30 +104,32 @@ class DuckDuckGoSearchEngine(BaseSearchEngine):"id": result.get("link"), # Use URL as ID for DDG"title": result.get("title", ""),"snippet": result.get("snippet", ""),- "link": result.get("link", "")+ "link": result.get("link", ""),}-+previews.append(preview)-+return previews-+except Exception as e:logger.error(f"Error getting DuckDuckGo previews: {e}")return []-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant items by using FullSearchResults.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""# If we have FullSearchResults, use it to get full content- if hasattr(self, 'full_search'):+ if hasattr(self, "full_search"):return self.full_search._get_full_content(relevant_items)-+# Otherwise, just return the relevant items without full content- return relevant_items\ No newline at end of file+ return relevant_itemsdiff --git a/src/local_deep_research/web_search_engines/engines/search_engine_github.py b/src/local_deep_research/web_search_engines/engines/search_engine_github.pyindex 495c5c5815..244112d67a 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_github.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_github.py@@ -1,35 +1,39 @@-import requests-import loggingimport base64+import loggingimport osimport time-from typing import Dict, List, Any, Optional+from typing import Any, Dict, List, Optional++import requestsfrom langchain_core.language_models import BaseLLM-from ..search_engine_base import BaseSearchEnginefrom ... import config+from ..search_engine_base import BaseSearchEngine# Setup logginglogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)+class GitHubSearchEngine(BaseSearchEngine):"""GitHub search engine implementation.Provides search across GitHub repositories, code, issues, and users."""-- def __init__(self,- max_results: int = 15,- api_key: Optional[str] = None,- search_type: str = "repositories",- include_readme: bool = True,- include_issues: bool = False,- llm: Optional[BaseLLM] = None,- max_filtered_results: Optional[int] = None):++ def __init__(+ self,+ max_results: int = 15,+ api_key: Optional[str] = None,+ search_type: str = "repositories",+ include_readme: bool = True,+ include_issues: bool = False,+ llm: Optional[BaseLLM] = None,+ max_filtered_results: Optional[int] = None,+ ):"""Initialize the GitHub search engine.-+Args:max_results: Maximum number of search resultsapi_key: GitHub API token (can also be set in GITHUB_API_KEY env)@@ -40,78 +44,99 @@ class GitHubSearchEngine(BaseSearchEngine):max_filtered_results: Maximum number of results to keep after filtering"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )self.api_key = api_key or os.getenv("GITHUB_API_KEY")self.search_type = search_typeself.include_readme = include_readmeself.include_issues = include_issues-+# API endpointsself.api_base = "https://api.github.com"self.search_endpoint = f"{self.api_base}/search/{search_type}"-+# Set up API headersself.headers = {"Accept": "application/vnd.github.v3+json",- "User-Agent": "Local-Deep-Research-Agent"+ "User-Agent": "Local-Deep-Research-Agent",}-+# Add authentication if API key providedif self.api_key:self.headers["Authorization"] = f"token {self.api_key}"logger.info("Using authenticated GitHub API requests")else:- logger.warning("No GitHub API key provided. Rate limits will be restricted.")-+ logger.warning(+ "No GitHub API key provided. Rate limits will be restricted."+ )+def _handle_rate_limits(self, response):"""Handle GitHub API rate limits by logging warnings and sleeping if necessary"""remaining = int(response.headers.get("X-RateLimit-Remaining", 60))reset_time = int(response.headers.get("X-RateLimit-Reset", 0))-+if remaining < 5:current_time = time.time()wait_time = max(reset_time - current_time, 0)- logger.warning(f"GitHub API rate limit almost reached. {remaining} requests remaining.")-+ logger.warning(+ f"GitHub API rate limit almost reached. {remaining} requests remaining."+ )+if wait_time > 0 and remaining == 0:- logger.warning(f"GitHub API rate limit exceeded. Waiting {wait_time:.0f} seconds.")+ logger.warning(+ f"GitHub API rate limit exceeded. Waiting {wait_time:.0f} seconds."+ )time.sleep(min(wait_time, 60)) # Wait at most 60 seconds-+def _search_github(self, query: str) -> List[Dict[str, Any]]:"""Perform a GitHub search based on the configured search type.-+Args:query: The search query-+Returns:List of GitHub search result items"""results = []-+try:# Optimize GitHub query formatgithub_query = query-+# For long queries, focus on keywords and add filters for better resultsif len(query) > 80:# Extract key terms if it's a recommendation requestif "recommend" in query.lower() or "looking for" in query.lower():- github_query = "stars:>100 " + " ".join([- word for word in query.split()- if len(word) > 3 and word.lower() not in- ["recommend", "recommended", "github", "repositories", "looking", "developers"]- ])-+ github_query = "stars:>100 " + " ".join(+ [+ word+ for word in query.split()+ if len(word) > 3+ and word.lower()+ not in [+ "recommend",+ "recommended",+ "github",+ "repositories",+ "looking",+ "developers",+ ]+ ]+ )+logger.info(f"Optimized GitHub query: {github_query}")-+# Construct search parametersparams = {"q": github_query,- "per_page": min(self.max_results, 100), # GitHub API max is 100 per page- "page": 1+ "per_page": min(+ self.max_results, 100+ ), # GitHub API max is 100 per page+ "page": 1,}-+# Add sort parameters based on search typeif self.search_type == "repositories":params["sort"] = "stars"@@ -125,92 +150,104 @@ class GitHubSearchEngine(BaseSearchEngine):elif self.search_type == "users":params["sort"] = "followers"params["order"] = "desc"-+# Execute the API requestresponse = requests.get(- self.search_endpoint,- headers=self.headers,- params=params+ self.search_endpoint, headers=self.headers, params=params)-+# Check for rate limitingself._handle_rate_limits(response)-+# Handle response with detailed loggingif response.status_code == 200:data = response.json()total_count = data.get("total_count", 0)results = data.get("items", [])- logger.info(f"GitHub search returned {len(results)} results (total available: {total_count})")-+ logger.info(+ f"GitHub search returned {len(results)} results (total available: {total_count})"+ )+# Log the rate limit information- rate_limit_remaining = response.headers.get("X-RateLimit-Remaining", "unknown")- rate_limit_reset = response.headers.get("X-RateLimit-Reset", "unknown")- logger.info(f"GitHub API rate limit: {rate_limit_remaining} requests remaining")-+ rate_limit_remaining = response.headers.get(+ "X-RateLimit-Remaining", "unknown"+ )+ logger.info(+ f"GitHub API rate limit: {rate_limit_remaining} requests remaining"+ )+# If no results, try to provide more guidanceif not results:- logger.warning(f"No results found. Consider these search tips:")- logger.warning(f"1. Use shorter, more specific queries")- logger.warning(f"2. For repositories, try adding 'stars:>100' or 'language:python'")- logger.warning(f"3. For contribution opportunities, search for 'good-first-issue' or 'help-wanted'")+ logger.warning("No results found. Consider these search tips:")+ logger.warning("1. Use shorter, more specific queries")+ logger.warning(+ "2. For repositories, try adding 'stars:>100' or 'language:python'"+ )+ logger.warning(+ "3. For contribution opportunities, search for 'good-first-issue' or 'help-wanted'"+ )else:- logger.error(f"GitHub API error: {response.status_code} - {response.text}")-+ logger.error(+ f"GitHub API error: {response.status_code} - {response.text}"+ )+except Exception as e:logger.error(f"Error searching GitHub: {e}")-+return results-+def _get_readme_content(self, repo_full_name: str) -> str:"""Get README content for a repository.-+Args:repo_full_name: Full name of the repository (owner/repo)-+Returns:Decoded README content or empty string if not found"""try:# Get READMEresponse = requests.get(- f"{self.api_base}/repos/{repo_full_name}/readme",- headers=self.headers+ f"{self.api_base}/repos/{repo_full_name}/readme", headers=self.headers)-+# Check for rate limitingself._handle_rate_limits(response)-+if response.status_code == 200:data = response.json()content = data.get("content", "")encoding = data.get("encoding", "")-+if encoding == "base64" and content:- return base64.b64decode(content).decode('utf-8', errors='replace')+ return base64.b64decode(content).decode("utf-8", errors="replace")return contentelse:- logger.warning(f"Could not get README for {repo_full_name}: {response.status_code}")+ logger.warning(+ f"Could not get README for {repo_full_name}: {response.status_code}"+ )return ""-+except Exception as e:logger.error(f"Error getting README for {repo_full_name}: {e}")return ""-- def _get_recent_issues(self, repo_full_name: str, limit: int = 5) -> List[Dict[str, Any]]:++ def _get_recent_issues(+ self, repo_full_name: str, limit: int = 5+ ) -> List[Dict[str, Any]]:"""Get recent issues for a repository.-+Args:repo_full_name: Full name of the repository (owner/repo)limit: Maximum number of issues to return-+Returns:List of recent issues"""issues = []-+try:# Get recent issuesresponse = requests.get(@@ -220,60 +257,59 @@ class GitHubSearchEngine(BaseSearchEngine):"state": "all","per_page": limit,"sort": "updated",- "direction": "desc"- }+ "direction": "desc",+ },)-+# Check for rate limitingself._handle_rate_limits(response)-+if response.status_code == 200:issues = response.json()logger.info(f"Got {len(issues)} recent issues for {repo_full_name}")else:- logger.warning(f"Could not get issues for {repo_full_name}: {response.status_code}")-+ logger.warning(+ f"Could not get issues for {repo_full_name}: {response.status_code}"+ )+except Exception as e:logger.error(f"Error getting issues for {repo_full_name}: {e}")-+return issues-+def _get_file_content(self, file_url: str) -> str:"""Get content of a file from GitHub.-+Args:file_url: API URL for the file-+Returns:Decoded file content or empty string if not found"""try:# Get file content- response = requests.get(- file_url,- headers=self.headers- )-+ response = requests.get(file_url, headers=self.headers)+# Check for rate limitingself._handle_rate_limits(response)-+if response.status_code == 200:data = response.json()content = data.get("content", "")encoding = data.get("encoding", "")-+if encoding == "base64" and content:- return base64.b64decode(content).decode('utf-8', errors='replace')+ return base64.b64decode(content).decode("utf-8", errors="replace")return contentelse:logger.warning(f"Could not get file content: {response.status_code}")return ""-+except Exception as e:logger.error(f"Error getting file content: {e}")return ""-+def _format_repository_preview(self, repo: Dict[str, Any]) -> Dict[str, Any]:"""Format repository search result as preview"""return {@@ -290,9 +326,9 @@ class GitHubSearchEngine(BaseSearchEngine):"owner": repo.get("owner", {}).get("login", ""),"is_fork": repo.get("fork", False),"search_type": "repository",- "repo_full_name": repo.get("full_name", "")+ "repo_full_name": repo.get("full_name", ""),}-+def _format_code_preview(self, code: Dict[str, Any]) -> Dict[str, Any]:"""Format code search result as preview"""repo = code.get("repository", {})@@ -305,26 +341,32 @@ class GitHubSearchEngine(BaseSearchEngine):"repo_name": repo.get("full_name", ""),"repo_url": repo.get("html_url", ""),"search_type": "code",- "file_url": code.get("url", "")+ "file_url": code.get("url", ""),}-+def _format_issue_preview(self, issue: Dict[str, Any]) -> Dict[str, Any]:"""Format issue search result as preview"""- repo = issue.get("repository", {}) if "repository" in issue else {"full_name": ""}+ repo = (+ issue.get("repository", {}) if "repository" in issue else {"full_name": ""}+ )return {"id": f"issue_{issue.get('number', '')}","title": issue.get("title", ""),"link": issue.get("html_url", ""),- "snippet": issue.get("body", "")[:200] + "..." if len(issue.get("body", "")) > 200 else issue.get("body", ""),+ "snippet": (+ issue.get("body", "")[:200] + "..."+ if len(issue.get("body", "")) > 200+ else issue.get("body", "")+ ),"state": issue.get("state", ""),"created_at": issue.get("created_at", ""),"updated_at": issue.get("updated_at", ""),"user": issue.get("user", {}).get("login", ""),"comments": issue.get("comments", 0),"search_type": "issue",- "repo_name": repo.get("full_name", "")+ "repo_name": repo.get("full_name", ""),}-+def _format_user_preview(self, user: Dict[str, Any]) -> Dict[str, Any]:"""Format user search result as preview"""return {@@ -337,64 +379,100 @@ class GitHubSearchEngine(BaseSearchEngine):"public_repos": user.get("public_repos", 0),"location": user.get("location", ""),"search_type": "user",- "user_login": user.get("login", "")+ "user_login": user.get("login", ""),}-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information for GitHub search results.-+Args:query: The search query-+Returns:List of preview dictionaries"""logger.info(f"Getting GitHub previews for query: {query}")-+# For contribution-focused queries, automatically adjust search type and add filters- if any(term in query.lower() for term in ["contribute", "contributing", "contribution", "beginner", "newcomer"]):+ if any(+ term in query.lower()+ for term in [+ "contribute",+ "contributing",+ "contribution",+ "beginner",+ "newcomer",+ ]+ ):# Use repositories search with help-wanted or good-first-issue labelsoriginal_search_type = self.search_typeself.search_type = "repositories"self.search_endpoint = f"{self.api_base}/search/repositories"-+# Create a specialized query for finding beginner-friendly projectsspecialized_query = "good-first-issues:>5 is:public archived:false"-+# Extract language preferences if presentlanguages = []- for lang in ["python", "javascript", "java", "rust", "go", "typescript", "c#", "c++", "ruby"]:+ for lang in [+ "python",+ "javascript",+ "java",+ "rust",+ "go",+ "typescript",+ "c#",+ "c++",+ "ruby",+ ]:if lang in query.lower():languages.append(lang)-+if languages:specialized_query += f" language:{' language:'.join(languages)}"-+# Extract keywords- keywords = [word for word in query.split() if len(word) > 3 and word.lower() not in- ["recommend", "recommended", "github", "repositories", "looking",- "developers", "contribute", "contributing", "beginner", "newcomer"]]-+ keywords = [+ word+ for word in query.split()+ if len(word) > 3+ and word.lower()+ not in [+ "recommend",+ "recommended",+ "github",+ "repositories",+ "looking",+ "developers",+ "contribute",+ "contributing",+ "beginner",+ "newcomer",+ ]+ ]+if keywords:- specialized_query += " " + " ".join(keywords[:5]) # Add up to 5 keywords-+ specialized_query += " " + " ".join(+ keywords[:5]+ ) # Add up to 5 keywords+logger.info(f"Using specialized contribution query: {specialized_query}")-+# Perform GitHub search with specialized queryresults = self._search_github(specialized_query)-+# Restore original search typeself.search_type = original_search_typeself.search_endpoint = f"{self.api_base}/search/{self.search_type}"else:# Perform standard GitHub searchresults = self._search_github(query)-+if not results:logger.warning(f"No GitHub results found for query: {query}")return []-+# Format results as previewspreviews = []for result in results:@@ -410,34 +488,36 @@ class GitHubSearchEngine(BaseSearchEngine):else:logger.warning(f"Unknown search type: {self.search_type}")continue-+previews.append(preview)-+logger.info(f"Formatted {len(previews)} GitHub preview results")return previews-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant GitHub search results.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""# Check if we should add full content- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:+ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Snippet-only mode, skipping full content retrieval")return relevant_items-+logger.info(f"Getting full content for {len(relevant_items)} GitHub results")-+results = []for item in relevant_items:result = item.copy()search_type = item.get("search_type", "")-+# Add content based on search typeif search_type == "repository" and self.include_readme:repo_full_name = item.get("repo_full_name", "")@@ -446,12 +526,12 @@ class GitHubSearchEngine(BaseSearchEngine):readme_content = self._get_readme_content(repo_full_name)result["full_content"] = readme_contentresult["content_type"] = "readme"-+# Get recent issues if requestedif self.include_issues:issues = self._get_recent_issues(repo_full_name)result["recent_issues"] = issues-+elif search_type == "code":file_url = item.get("file_url", "")if file_url:@@ -459,197 +539,206 @@ class GitHubSearchEngine(BaseSearchEngine):file_content = self._get_file_content(file_url)result["full_content"] = file_contentresult["content_type"] = "file"-+elif search_type == "issue":# For issues, the snippet usually contains a summary already# We'll just keep it as isresult["full_content"] = item.get("snippet", "")result["content_type"] = "issue"-+elif search_type == "user":# For users, construct a profile summary- user_login = item.get("user_login", "")profile_summary = f"GitHub user: {item.get('title', '')}\n"-+if item.get("name"):profile_summary += f"Name: {item.get('name')}\n"-+if item.get("location"):profile_summary += f"Location: {item.get('location')}\n"-+profile_summary += f"Followers: {item.get('followers', 0)}\n"- profile_summary += f"Public repositories: {item.get('public_repos', 0)}\n"-+ profile_summary += (+ f"Public repositories: {item.get('public_repos', 0)}\n"+ )+if item.get("snippet") and item.get("snippet") != "No bio provided":profile_summary += f"\nBio: {item.get('snippet')}\n"-+result["full_content"] = profile_summaryresult["content_type"] = "user_profile"-+results.append(result)-+return results-+def search_repository(self, repo_owner: str, repo_name: str) -> Dict[str, Any]:"""Get detailed information about a specific repository.-+Args:repo_owner: Owner of the repositoryrepo_name: Name of the repository-+Returns:Dictionary with repository information"""repo_full_name = f"{repo_owner}/{repo_name}"logger.info(f"Getting details for repository: {repo_full_name}")-+try:# Get repository detailsresponse = requests.get(- f"{self.api_base}/repos/{repo_full_name}",- headers=self.headers+ f"{self.api_base}/repos/{repo_full_name}", headers=self.headers)-+# Check for rate limitingself._handle_rate_limits(response)-+if response.status_code == 200:repo = response.json()-+# Format as repository previewresult = self._format_repository_preview(repo)-+# Add README content if requestedif self.include_readme:readme_content = self._get_readme_content(repo_full_name)result["full_content"] = readme_contentresult["content_type"] = "readme"-+# Add recent issues if requestedif self.include_issues:issues = self._get_recent_issues(repo_full_name)result["recent_issues"] = issues-+return resultelse:- logger.error(f"Error getting repository details: {response.status_code} - {response.text}")+ logger.error(+ f"Error getting repository details: {response.status_code} - {response.text}"+ )return {}-+except Exception as e:logger.error(f"Error getting repository details: {e}")return {}-- def search_code(self, query: str, language: Optional[str] = None, user: Optional[str] = None) -> List[Dict[str, Any]]:++ def search_code(+ self, query: str, language: Optional[str] = None, user: Optional[str] = None+ ) -> List[Dict[str, Any]]:"""Search for code with more specific parameters.-+Args:query: Code search querylanguage: Filter by programming languageuser: Filter by GitHub username/organization-+Returns:List of code search results"""# Build advanced queryadvanced_query = query-+if language:advanced_query += f" language:{language}"-+if user:advanced_query += f" user:{user}"-+# Save current search typeoriginal_search_type = self.search_type-+try:# Set search type to codeself.search_type = "code"self.search_endpoint = f"{self.api_base}/search/code"-+# Perform searchresults = self._search_github(advanced_query)-+# Format resultspreviews = [self._format_code_preview(result) for result in results]-+# Get full content if requested- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and not config.SEARCH_SNIPPETS_ONLY:+ if (+ hasattr(config, "SEARCH_SNIPPETS_ONLY")+ and not config.SEARCH_SNIPPETS_ONLY+ ):return self._get_full_content(previews)-+return previews-+finally:# Restore original search typeself.search_type = original_search_typeself.search_endpoint = f"{self.api_base}/search/{self.search_type}"-- def search_issues(self, query: str, state: str = "open", sort: str = "updated") -> List[Dict[str, Any]]:++ def search_issues(+ self, query: str, state: str = "open", sort: str = "updated"+ ) -> List[Dict[str, Any]]:"""Search for issues with more specific parameters.-+Args:query: Issue search querystate: Filter by issue state ("open", "closed", "all")sort: Sort order ("updated", "created", "comments")-+Returns:List of issue search results"""# Build advanced queryadvanced_query = query + f" state:{state}"-+# Save current search typeoriginal_search_type = self.search_type-+try:# Set search type to issuesself.search_type = "issues"self.search_endpoint = f"{self.api_base}/search/issues"-+# Set sort parameterparams = {"q": advanced_query,"per_page": min(self.max_results, 100),"page": 1,"sort": sort,- "order": "desc"+ "order": "desc",}-+# Perform searchresponse = requests.get(- self.search_endpoint,- headers=self.headers,- params=params+ self.search_endpoint, headers=self.headers, params=params)-+# Check for rate limitingself._handle_rate_limits(response)-+if response.status_code == 200:data = response.json()results = data.get("items", [])-+# Format resultspreviews = [self._format_issue_preview(result) for result in results]-+# For issues, we don't need to get full contentreturn previewselse:- logger.error(f"GitHub API error: {response.status_code} - {response.text}")+ logger.error(+ f"GitHub API error: {response.status_code} - {response.text}"+ )return []-+finally:# Restore original search typeself.search_type = original_search_typeself.search_endpoint = f"{self.api_base}/search/{self.search_type}"-+def set_search_type(self, search_type: str):"""Set the search type for subsequent searches.-+Args:search_type: Type of GitHub search ("repositories", "code", "issues", "users")"""@@ -658,4 +747,4 @@ class GitHubSearchEngine(BaseSearchEngine):self.search_endpoint = f"{self.api_base}/search/{search_type}"logger.info(f"Set GitHub search type to: {search_type}")else:- logger.error(f"Invalid GitHub search type: {search_type}")\ No newline at end of file+ logger.error(f"Invalid GitHub search type: {search_type}")diff --git a/src/local_deep_research/web_search_engines/engines/search_engine_google_pse.py b/src/local_deep_research/web_search_engines/engines/search_engine_google_pse.pyindex 8b42b9b60a..2102c0374c 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_google_pse.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_google_pse.py@@ -1,11 +1,12 @@-from typing import Dict, List, Any, Optional+import loggingimport os-import requests-import timeimport random-import logging-from requests.exceptions import RequestException+import time+from typing import Any, Dict, List, Optional++import requestsfrom langchain_core.language_models import BaseLLM+from requests.exceptions import RequestExceptionfrom ..search_engine_base import BaseSearchEngine@@ -13,25 +14,28 @@ from ..search_engine_base import BaseSearchEnginelogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)+class GooglePSESearchEngine(BaseSearchEngine):"""Google Programmable Search Engine implementation"""- def __init__(self,- max_results: int = 10,- region: str = "us",- safe_search: bool = True,- search_language: str = "English",- api_key: Optional[str] = None,- search_engine_id: Optional[str] = None,- llm: Optional[BaseLLM] = None,- include_full_content: bool = False,- max_filtered_results: Optional[int] = None,- max_retries: int = 3,- retry_delay: float = 2.0,- **kwargs):+ def __init__(+ self,+ max_results: int = 10,+ region: str = "us",+ safe_search: bool = True,+ search_language: str = "English",+ api_key: Optional[str] = None,+ search_engine_id: Optional[str] = None,+ llm: Optional[BaseLLM] = None,+ include_full_content: bool = False,+ max_filtered_results: Optional[int] = None,+ max_retries: int = 3,+ retry_delay: float = 2.0,+ **kwargs,+ ):"""Initialize the Google Programmable Search Engine.-+Args:max_results: Maximum number of search resultsregion: Region code for search results@@ -47,17 +51,19 @@ class GooglePSESearchEngine(BaseSearchEngine):**kwargs: Additional parameters (ignored but accepted for compatibility)"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )self.include_full_content = include_full_content-+# Retry configurationself.max_retries = max_retriesself.retry_delay = retry_delay-+# Rate limiting - keep track of last request timeself.last_request_time = 0self.min_request_interval = 0.5 # Minimum time between requests in seconds-+# Language code mappinglanguage_code_mapping = {"english": "en",@@ -69,82 +75,86 @@ class GooglePSESearchEngine(BaseSearchEngine):"korean": "ko","portuguese": "pt","russian": "ru",- "chinese": "zh-CN"+ "chinese": "zh-CN",}-+# Get language codesearch_language = search_language.lower()self.language = language_code_mapping.get(search_language, "en")-+# Safe search settingself.safe = "active" if safe_search else "off"-+# Region/Country settingself.region = region-+# API key and Search Engine IDself.api_key = api_key or os.getenv("GOOGLE_PSE_API_KEY")self.search_engine_id = search_engine_id or os.getenv("GOOGLE_PSE_ENGINE_ID")-+if not self.api_key:- raise ValueError("Google API key is required. Set it in the GOOGLE_PSE_API_KEY environment variable.")+ raise ValueError(+ "Google API key is required. Set it in the GOOGLE_PSE_API_KEY environment variable."+ )if not self.search_engine_id:- raise ValueError("Google Search Engine ID is required. Set it in the GOOGLE_PSE_ENGINE_ID environment variable.")-+ raise ValueError(+ "Google Search Engine ID is required. Set it in the GOOGLE_PSE_ENGINE_ID environment variable."+ )+# Validate connection and credentialsself._validate_connection()-+def _validate_connection(self):"""Test the connection to ensure API key and Search Engine ID are valid"""try:# Make a minimal test queryresponse = self._make_request("test")-+# Check if we got a valid responseif response.get("error"):error_msg = response["error"].get("message", "Unknown error")raise ValueError(f"Google PSE API error: {error_msg}")-+# If we get here, the connection is validlogger.info("Google PSE connection validated successfully")return True-+except Exception as e:# Log the error and re-raiselogger.error(f"Error validating Google PSE connection: {str(e)}")raise-+def _respect_rate_limit(self):"""Ensure we don't exceed rate limits by adding appropriate delay between requests"""current_time = time.time()elapsed = current_time - self.last_request_time-+# If we've made a request recently, wait until the minimum interval has passedif elapsed < self.min_request_interval:sleep_time = self.min_request_interval - elapsedlogger.debug(f"Rate limiting: sleeping for {sleep_time:.2f}s")time.sleep(sleep_time)-+# Update the last request timeself.last_request_time = time.time()def _make_request(self, query: str, start_index: int = 1) -> Dict:"""Make a request to the Google PSE API with retry logic and rate limiting-+Args:query: Search query stringstart_index: Starting index for pagination-+Returns:JSON response from the API-+Raises:RequestException: If all retry attempts fail"""# Base URL for the APIurl = "https://www.googleapis.com/customsearch/v1"-+# Parameters for the requestparams = {"key": self.api_key,@@ -154,127 +164,141 @@ class GooglePSESearchEngine(BaseSearchEngine):"start": start_index,"safe": self.safe,"lr": f"lang_{self.language}",- "gl": self.region+ "gl": self.region,}-+# Implement retry logic with exponential backoffattempt = 0last_exception = None-+while attempt < self.max_retries:try:# Respect rate limitsself._respect_rate_limit()-+# Add jitter to retries after the first attemptif attempt > 0:jitter = random.uniform(0.5, 1.5)sleep_time = self.retry_delay * (2 ** (attempt - 1)) * jitter- logger.info(f"Retry attempt {attempt+1}/{self.max_retries} for query '{query}'. Waiting {sleep_time:.2f}s")+ logger.info(+ f"Retry attempt {attempt + 1} / {self.max_retries} for "+ f"query '{query}'. Waiting {sleep_time:.2f}s"+ )time.sleep(sleep_time)-+# Make the request- logger.debug(f"Making request to Google PSE API: {query} (start_index={start_index})")+ logger.debug(+ f"Making request to Google PSE API: {query} (start_index={start_index})"+ )response = requests.get(url, params=params, timeout=10)-+# Check for HTTP errorsresponse.raise_for_status()-+# Return the JSON responsereturn response.json()-+except RequestException as e:- logger.warning(f"Request error on attempt {attempt+1}/{self.max_retries}: {str(e)}")+ logger.warning(+ f"Request error on attempt {attempt + 1}"+ f" / {self.max_retries}: {str(e)}"+ )last_exception = eexcept Exception as e:- logger.warning(f"Error on attempt {attempt+1}/{self.max_retries}: {str(e)}")+ logger.warning(+ f"Error on attempt {attempt + 1} / {self.max_retries}:" f" {str(e)}"+ )last_exception = e-+attempt += 1-+# If we get here, all retries failederror_msg = f"Failed to get response from Google PSE API after {self.max_retries} attempts"logger.error(error_msg)-+if last_exception:raise RequestException(f"{error_msg}: {str(last_exception)}")else:raise RequestException(error_msg)-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get search result previews/snippets"""results = []-+# Google PSE API returns a maximum of 10 results per request# We may need to make multiple requests to get the desired numberstart_index = 1total_results = 0-+while total_results < self.max_results:try:response = self._make_request(query, start_index)-+# Break if no itemsif "items" not in response:break-+items = response.get("items", [])-+# Process each resultfor item in items:title = item.get("title", "")snippet = item.get("snippet", "")url = item.get("link", "")-+# Skip results without URLif not url:continue-- results.append({- "title": title,- "snippet": snippet,- "url": url,- "source": "Google Programmable Search"- })-++ results.append(+ {+ "title": title,+ "snippet": snippet,+ "url": url,+ "source": "Google Programmable Search",+ }+ )+total_results += 1if total_results >= self.max_results:break-+# Check if there are more resultsif not items or total_results >= self.max_results:break-+# Update start index for next requeststart_index += len(items)-+# Add a small delay between multiple requests to be respectful of the APIif total_results < self.max_results:time.sleep(self.min_request_interval)-+except Exception as e:logger.error(f"Error getting search results: {str(e)}")break-+logger.info(f"Retrieved {len(results)} search results for query: '{query}'")return results-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for search results"""# Use the BaseSearchEngine implementationreturn super()._get_full_content(relevant_items)-+def run(self, query: str) -> List[Dict[str, Any]]:"""Run the search engine to get results for a query"""# Get search result previews/snippetssearch_results = self._get_previews(query)-+# Filter for relevance if we have an LLM and max_filtered_resultsif self.llm and self.max_filtered_results:search_results = self._filter_for_relevance(query, search_results)-+# Get full content if neededif self.include_full_content:search_results = self._get_full_content(search_results)-- return search_results\ No newline at end of file++ return search_resultsdiff --git a/src/local_deep_research/web_search_engines/engines/search_engine_guardian.py b/src/local_deep_research/web_search_engines/engines/search_engine_guardian.pyindex a1d81b8ebd..e2d496d48d 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_guardian.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_guardian.py@@ -1,35 +1,39 @@-import requestsimport logging-from typing import Dict, List, Any, Optional, Tupleimport osfrom datetime import datetime, timedelta+from typing import Any, Dict, List, Optional, Tuple++import requestsfrom langchain_core.language_models import BaseLLM-from ..search_engine_base import BaseSearchEnginefrom ... import configfrom ...utilties.search_utilities import remove_think_tags+from ..search_engine_base import BaseSearchEngine# Setup logginglogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)+class GuardianSearchEngine(BaseSearchEngine):"""Enhanced Guardian API search engine implementation with LLM query optimization"""-- def __init__(self,- max_results: int = 10,- api_key: Optional[str] = None,- from_date: Optional[str] = None,- to_date: Optional[str] = None,- section: Optional[str] = None,- order_by: str = "relevance",- llm: Optional[BaseLLM] = None,- max_filtered_results: Optional[int] = None,- optimize_queries: bool = True,- adaptive_search: bool = True):++ def __init__(+ self,+ max_results: int = 10,+ api_key: Optional[str] = None,+ from_date: Optional[str] = None,+ to_date: Optional[str] = None,+ section: Optional[str] = None,+ order_by: str = "relevance",+ llm: Optional[BaseLLM] = None,+ max_filtered_results: Optional[int] = None,+ optimize_queries: bool = True,+ adaptive_search: bool = True,+ ):"""Initialize The Guardian search engine with enhanced features.-+Args:max_results: Maximum number of search resultsapi_key: The Guardian API key (can also be set in GUARDIAN_API_KEY env)@@ -43,14 +47,18 @@ class GuardianSearchEngine(BaseSearchEngine):adaptive_search: Whether to use adaptive search (adjusting date ranges)"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )self.api_key = api_key or os.getenv("GUARDIAN_API_KEY")self.optimize_queries = optimize_queriesself.adaptive_search = adaptive_search-+if not self.api_key:- raise ValueError("Guardian API key not found. Please provide api_key or set the GUARDIAN_API_KEY environment variable.")-+ raise ValueError(+ "Guardian API key not found. Please provide api_key or set the GUARDIAN_API_KEY environment variable."+ )+# Set date ranges if not providedif not from_date:# Default to one month ago@@ -58,44 +66,46 @@ class GuardianSearchEngine(BaseSearchEngine):self.from_date = one_month_ago.strftime("%Y-%m-%d")else:self.from_date = from_date-+if not to_date:# Default to todayself.to_date = datetime.now().strftime("%Y-%m-%d")else:self.to_date = to_date-+self.section = sectionself.order_by = order_byself._original_date_params = {"from_date": self.from_date,- "to_date": self.to_date+ "to_date": self.to_date,}-+# API base URLself.api_url = "https://content.guardianapis.com/search"-+def _optimize_query_for_guardian(self, query: str) -> str:"""Optimize a natural language query for Guardian search.Uses LLM to transform questions into effective news search queries.-+Args:query: Natural language query-+Returns:Optimized query string for Guardian"""# Handle extremely long queries by truncating firstif len(query) > 150:simple_query = " ".join(query.split()[:10])- logger.info(f"Query too long ({len(query)} chars), truncating to: {simple_query}")+ logger.info(+ f"Query too long ({len(query)} chars), truncating to: {simple_query}"+ )query = simple_query-+if not self.llm or not self.optimize_queries:# Return original query if no LLM available or optimization disabledreturn query-+try:# Prompt for query optimizationprompt = f"""Transform this natural language question into a very short Guardian news search query.@@ -119,36 +129,42 @@ EXAMPLE CONVERSIONS:Return ONLY the extremely brief search query."""-+# Get response from LLMresponse = self.llm.invoke(prompt)optimized_query = remove_think_tags(response.content).strip()-+# Clean up the query - remove any explanations- lines = optimized_query.split('\n')+ lines = optimized_query.split("\n")for line in lines:line = line.strip()- if line and not line.lower().startswith(('here', 'i would', 'the best', 'this query')):+ if line and not line.lower().startswith(+ ("here", "i would", "the best", "this query")+ ):optimized_query = linebreak-+# Remove any quotes that wrap the entire query- if optimized_query.startswith('"') and optimized_query.endswith('"') and optimized_query.count('"') == 2:+ if (+ optimized_query.startswith('"')+ and optimized_query.endswith('"')+ and optimized_query.count('"') == 2+ ):optimized_query = optimized_query[1:-1]-+logger.info(f"Original query: '{query}'")logger.info(f"Optimized for Guardian: '{optimized_query}'")-+return optimized_query-+except Exception as e:logger.error(f"Error optimizing query: {e}")return query # Fall back to original query on error-+def _adapt_dates_for_query_type(self, query: str) -> None:"""Adapt date range based on query type (historical vs current).-+Args:query: The search query"""@@ -160,10 +176,10 @@ Return ONLY the extremely brief search query.self.from_date = recentself.order_by = "newest"return-+if not self.llm or not self.adaptive_search:return-+try:prompt = f"""Is this query asking about HISTORICAL events or CURRENT events?@@ -175,103 +191,111 @@ ONE WORD ANSWER ONLY:- "UNCLEAR" if can't determineONE WORD ONLY:"""-+response = self.llm.invoke(prompt)answer = remove_think_tags(response.content).strip().upper()-+# Reset to original parameters firstself.from_date = self._original_date_params["from_date"]self.to_date = self._original_date_params["to_date"]-+if "HISTORICAL" in answer:# For historical queries, go back 10 years- logger.info("Query classified as HISTORICAL - extending search timeframe")- ten_years_ago = (datetime.now() - timedelta(days=3650)).strftime("%Y-%m-%d")+ logger.info(+ "Query classified as HISTORICAL - extending search timeframe"+ )+ ten_years_ago = (datetime.now() - timedelta(days=3650)).strftime(+ "%Y-%m-%d"+ )self.from_date = ten_years_ago-+elif "CURRENT" in answer:# For current events, focus on recent contentlogger.info("Query classified as CURRENT - focusing on recent content")recent = (datetime.now() - timedelta(days=60)).strftime("%Y-%m-%d")self.from_date = recentself.order_by = "newest" # Prioritize newest for current events-+except Exception as e:logger.error(f"Error adapting dates for query type: {e}")# Keep original date parameters on error-+def _adaptive_search(self, query: str) -> Tuple[List[Dict[str, Any]], str]:"""Perform adaptive search that progressively adjusts parameters based on results.-+Args:query: The search query-+Returns:Tuple of (list of articles, search strategy used)"""# Try with current parametersarticles = self._get_all_data(query)strategy = "initial"-+# If no results or too few, try different strategiesif len(articles) < 3 and self.adaptive_search:- logger.info(f"Initial search found only {len(articles)} results, trying alternative strategies")-+ logger.info(+ f"Initial search found only {len(articles)} results, trying alternative strategies"+ )+# Try with expanded date rangeoriginal_from_date = self.from_dateoriginal_order_by = self.order_by-+# Strategy 1: Expand to 6 monthslogger.info("Strategy 1: Expanding time range to 6 months")six_months_ago = (datetime.now() - timedelta(days=180)).strftime("%Y-%m-%d")self.from_date = six_months_ago-+articles1 = self._get_all_data(query)if len(articles1) > len(articles):articles = articles1strategy = "expanded_6mo"-+# Strategy 2: Expand to all time and try relevance orderif len(articles) < 3:logger.info("Strategy 2: Expanding to all time with relevance ordering")self.from_date = "2000-01-01" # Effectively "all time"self.order_by = "relevance"-+articles2 = self._get_all_data(query)if len(articles2) > len(articles):articles = articles2strategy = "all_time_relevance"-+# Strategy 3: Try removing section constraintsif len(articles) < 3 and self.section:logger.info("Strategy 3: Removing section constraint")original_section = self.sectionself.section = None-+articles3 = self._get_all_data(query)if len(articles3) > len(articles):articles = articles3strategy = "no_section"-+# Restore section settingself.section = original_section-+# Restore original settingsself.from_date = original_from_dateself.order_by = original_order_by-- logger.info(f"Adaptive search using strategy '{strategy}' found {len(articles)} results")++ logger.info(+ f"Adaptive search using strategy '{strategy}' found {len(articles)} results"+ )return articles, strategy-+def _get_all_data(self, query: str) -> List[Dict[str, Any]]:"""Get all article data from The Guardian API in a single call.Always requests all fields for simplicity.-+Args:query: The search query-+Returns:List of articles with all data"""@@ -280,20 +304,24 @@ ONE WORD ONLY:"""if not query or query.strip() == "":query = "news"logger.warning("Empty query provided, using 'news' as default")-+# Ensure query is not too long for APIif len(query) > 100:- logger.warning(f"Query too long for Guardian API ({len(query)} chars), truncating")+ logger.warning(+ f"Query too long for Guardian API ({len(query)} chars), truncating"+ )query = query[:100]-+# Always request all fields for simplicity# Ensure max_results is an integer to avoid comparison errors- page_size = min(int(self.max_results) if self.max_results is not None else 10, 50)-+ page_size = min(+ int(self.max_results) if self.max_results is not None else 10, 50+ )+# Log full parameters for debugginglogger.info(f"Guardian API search query: '{query}'")logger.info(f"Guardian API date range: {self.from_date} to {self.to_date}")-+params = {"q": query,"api-key": self.api_key,@@ -302,36 +330,36 @@ ONE WORD ONLY:""""order-by": self.order_by,"page-size": page_size, # API maximum is 50"show-fields": "headline,trailText,byline,body,publication",- "show-tags": "keyword"+ "show-tags": "keyword",}-+# Add section filter if specifiedif self.section:params["section"] = self.section-+# Log the complete request parameters (except API key)log_params = params.copy()log_params["api-key"] = "REDACTED"logger.info(f"Guardian API request parameters: {log_params}")-+# Execute the API requestresponse = requests.get(self.api_url, params=params)response.raise_for_status()-+data = response.json()-+# Extract results from the responsearticles = data.get("response", {}).get("results", [])logger.info(f"Guardian API returned {len(articles)} articles")-+# Format results to include all dataformatted_articles = []for i, article in enumerate(articles):if i >= self.max_results:break-+fields = article.get("fields", {})-+# Format the article with all fieldsresult = {"id": article.get("id", ""),@@ -342,42 +370,46 @@ ONE WORD ONLY:""""section": article.get("sectionName", ""),"author": fields.get("byline", ""),"content": fields.get("body", ""),- "full_content": fields.get("body", "")+ "full_content": fields.get("body", ""),}-+# Extract tags/keywordstags = article.get("tags", [])- result["keywords"] = [tag.get("webTitle", "") for tag in tags if tag.get("type") == "keyword"]-+ result["keywords"] = [+ tag.get("webTitle", "")+ for tag in tags+ if tag.get("type") == "keyword"+ ]+formatted_articles.append(result)-+return formatted_articles-+except Exception as e:logger.error(f"Error getting data from The Guardian API: {e}")return []-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information for Guardian articles with enhanced optimization.-+Args:query: The search query-+Returns:List of preview dictionaries"""logger.info(f"Getting articles from The Guardian API for query: {query}")-+# Step 1: Optimize the query using LLMoptimized_query = self._optimize_query_for_guardian(query)-+# Step 2: Adapt date parameters based on query typeself._adapt_dates_for_query_type(optimized_query)-+# Step 3: Perform adaptive searcharticles, strategy = self._adaptive_search(optimized_query)-+# Store search metadata for debuggingself._search_metadata = {"original_query": query,@@ -386,12 +418,12 @@ ONE WORD ONLY:""""from_date": self.from_date,"to_date": self.to_date,"section": self.section,- "order_by": self.order_by+ "order_by": self.order_by,}-+# Store full articles for later useself._full_articles = {a["id"]: a for a in articles}-+# Return only preview fields for each articlepreviews = []for article in articles:@@ -403,70 +435,76 @@ ONE WORD ONLY:""""publication_date": article["publication_date"],"section": article["section"],"author": article["author"],- "keywords": article.get("keywords", [])+ "keywords": article.get("keywords", []),}previews.append(preview)-+return previews-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant Guardian articles.Restores full content from the cached data.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""- logger.info(f"Adding full content to {len(relevant_items)} relevant Guardian articles")-+ logger.info(+ f"Adding full content to {len(relevant_items)} relevant Guardian articles"+ )+# Check if we should add full content- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:+ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:return relevant_items-+# Get full articles for relevant itemsresults = []for item in relevant_items:article_id = item.get("id", "")-+# Get the full article from our cache- if hasattr(self, '_full_articles') and article_id in self._full_articles:+ if hasattr(self, "_full_articles") and article_id in self._full_articles:results.append(self._full_articles[article_id])else:# If not found (shouldn't happen), just use the previewresults.append(item)-+return results-+def run(self, query: str) -> List[Dict[str, Any]]:"""Execute a search using The Guardian API with the enhanced approach.-+Args:query: The search query-+Returns:List of search results"""- logger.info(f"---Execute a search using The Guardian (enhanced)---")-+ logger.info("---Execute a search using The Guardian (enhanced)---")+# Additional safety check for None queryif query is None:logger.error("None query passed to Guardian search engine")query = "news"-+try:# Get previews with our enhanced methodpreviews = self._get_previews(query)-+# If no results, try one more time with a simplified queryif not previews:simple_query = " ".join([w for w in query.split() if len(w) > 3][:3])- logger.warning(f"No Guardian articles found, trying simplified query: {simple_query}")+ logger.warning(+ f"No Guardian articles found, trying simplified query: {simple_query}"+ )previews = self._get_previews(simple_query)-+# If still no results, try with a very generic query as last resortif not previews and "trump" in query.lower():logger.warning("Trying last resort query: 'Donald Trump'")@@ -474,109 +512,121 @@ ONE WORD ONLY:"""elif not previews:logger.warning("Trying last resort query: 'news'")previews = self._get_previews("news")-+# If still no results after all attempts, return empty listif not previews:- logger.warning(f"No Guardian articles found after multiple attempts")+ logger.warning("No Guardian articles found after multiple attempts")return []-+# Filter for relevance if we have an LLM- if self.llm and hasattr(self, 'max_filtered_results') and self.max_filtered_results:+ if (+ self.llm+ and hasattr(self, "max_filtered_results")+ and self.max_filtered_results+ ):filtered_items = self._filter_for_relevance(previews, query)if not filtered_items:# Fall back to unfiltered results if everything was filtered out- logger.warning("All articles filtered out, using unfiltered results")- filtered_items = previews[:self.max_filtered_results]+ logger.warning(+ "All articles filtered out, using unfiltered results"+ )+ filtered_items = previews[: self.max_filtered_results]else:filtered_items = previews-+# Get full content for relevant itemsresults = self._get_full_content(filtered_items)-+# Add source information to make it clear these are from The Guardianfor result in results:if "source" not in result:result["source"] = "The Guardian"-+# Clean up the cache after use- if hasattr(self, '_full_articles'):+ if hasattr(self, "_full_articles"):del self._full_articles-+# Restore original date parametersself.from_date = self._original_date_params["from_date"]self.to_date = self._original_date_params["to_date"]-+# Log search metadata if available- if hasattr(self, '_search_metadata'):+ if hasattr(self, "_search_metadata"):logger.info(f"Search metadata: {self._search_metadata}")del self._search_metadata-+return results-+except Exception as e:logger.error(f"Error in Guardian search: {e}")-+# Restore original date parameters on errorself.from_date = self._original_date_params["from_date"]self.to_date = self._original_date_params["to_date"]-+return []-- def search_by_section(self, section: str, max_results: Optional[int] = None) -> List[Dict[str, Any]]:++ def search_by_section(+ self, section: str, max_results: Optional[int] = None+ ) -> List[Dict[str, Any]]:"""Search for articles in a specific section.-+Args:section: The Guardian section name (e.g., "politics", "technology")max_results: Maximum number of results (defaults to self.max_results)-+Returns:List of articles in the section"""original_section = self.sectionoriginal_max_results = self.max_results-+try:# Set section and max_results for this searchself.section = sectionif max_results:self.max_results = max_results-+# Use empty query to get all articles in the sectionreturn self.run("")-+finally:# Restore original valuesself.section = original_sectionself.max_results = original_max_results-- def get_recent_articles(self, days: int = 7, max_results: Optional[int] = None) -> List[Dict[str, Any]]:++ def get_recent_articles(+ self, days: int = 7, max_results: Optional[int] = None+ ) -> List[Dict[str, Any]]:"""Get recent articles from The Guardian.-+Args:days: Number of days to look backmax_results: Maximum number of results (defaults to self.max_results)-+Returns:List of recent articles"""original_from_date = self.from_dateoriginal_order_by = self.order_byoriginal_max_results = self.max_results-+try:# Set parameters for this search- self.from_date = (datetime.now() - timedelta(days=days)).strftime("%Y-%m-%d")+ self.from_date = (datetime.now() - timedelta(days=days)).strftime(+ "%Y-%m-%d"+ )self.order_by = "newest"if max_results:self.max_results = max_results-+# Use empty query to get all recent articlesreturn self.run("")-+finally:# Restore original valuesself.from_date = original_from_dateself.order_by = original_order_by- self.max_results = original_max_results\ No newline at end of file+ self.max_results = original_max_resultsdiff --git a/src/local_deep_research/web_search_engines/engines/search_engine_local.py b/src/local_deep_research/web_search_engines/engines/search_engine_local.pyindex 144e5762d2..840e6e2f46 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_local.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_local.py@@ -1,40 +1,41 @@-from typing import Dict, List, Any, Optional-import os-import jsonimport hashlib+import json+import logging+import osimport timefrom datetime import datetimefrom pathlib import Path-import logging+from typing import Any, Dict, List, Optional-from langchain_core.language_models import BaseLLMfrom langchain_community.document_loaders import (- PyPDFLoader,- TextLoader,- UnstructuredMarkdownLoader,- UnstructuredWordDocumentLoader,CSVLoader,+ PyPDFLoader,+ TextLoader,UnstructuredExcelLoader,+ UnstructuredMarkdownLoader,+ UnstructuredWordDocumentLoader,)from langchain_community.document_loaders.base import BaseLoader-from langchain_text_splitters import RecursiveCharacterTextSplitter-from langchain_community.vectorstores import FAISSfrom langchain_community.embeddings import (HuggingFaceEmbeddings,OllamaEmbeddings,- SentenceTransformerEmbeddings+ SentenceTransformerEmbeddings,)+from langchain_community.vectorstores import FAISS+from langchain_core.language_models import BaseLLM+from langchain_text_splitters import RecursiveCharacterTextSplitter-from ..search_engine_base import BaseSearchEnginefrom ... import config+from ..search_engine_base import BaseSearchEngine# Setup logginglogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)+class LocalEmbeddingManager:"""Handles embedding generation and storage for local document search"""-+def __init__(self,embedding_model: str = "all-MiniLM-L6-v2",@@ -47,7 +48,7 @@ class LocalEmbeddingManager:):"""Initialize the embedding manager for local document search.-+Args:embedding_model: Name of the embedding model to useembedding_device: Device to run embeddings on ('cpu' or 'cuda')@@ -57,7 +58,7 @@ class LocalEmbeddingManager:chunk_overlap: Overlap between chunkscache_dir: Directory to store embedding cache and index"""-+self.embedding_model = embedding_modelself.embedding_device = embedding_deviceself.embedding_model_type = embedding_model_type@@ -65,29 +66,29 @@ class LocalEmbeddingManager:self.chunk_size = chunk_sizeself.chunk_overlap = chunk_overlapself.cache_dir = Path(cache_dir)-+# Create cache directory if it doesn't existself.cache_dir.mkdir(parents=True, exist_ok=True)-+# Initialize the embedding modelself._embeddings = None-+# Initialize the text splitterself.text_splitter = RecursiveCharacterTextSplitter(- chunk_size=chunk_size,- chunk_overlap=chunk_overlap+ chunk_size=chunk_size, chunk_overlap=chunk_overlap)-+# Track indexed folders and their metadataself.indexed_folders = self._load_indexed_folders()-+# Vector store cacheself.vector_stores = {}+@propertydef embeddings(self):"""Lazily initialize embeddings when first accessed.- This allows the LocalEmbeddingManager to be created without+ This allows the LocalEmbeddingManager to be created withoutimmediately loading models, which is helpful when no local search is performed."""if self._embeddings is None:@@ -101,30 +102,38 @@ class LocalEmbeddingManager:if self.embedding_model_type == "ollama":# Use Ollama for embeddingsif not self.ollama_base_url:- self.ollama_base_url = os.getenv("OLLAMA_BASE_URL", "http://localhost:11434")-- logger.info(f"Initializing Ollama embeddings with model {self.embedding_model}")+ self.ollama_base_url = os.getenv(+ "OLLAMA_BASE_URL", "http://localhost:11434"+ )++ logger.info(+ f"Initializing Ollama embeddings with model {self.embedding_model}"+ )return OllamaEmbeddings(- model=self.embedding_model,- base_url=self.ollama_base_url+ model=self.embedding_model, base_url=self.ollama_base_url)else:# Default: Use SentenceTransformers/HuggingFace- logger.info(f"Initializing SentenceTransformerEmbeddings with model {self.embedding_model}")+ logger.info(+ f"Initializing SentenceTransformerEmbeddings with model {self.embedding_model}"+ )return SentenceTransformerEmbeddings(model_name=self.embedding_model,- model_kwargs={"device": self.embedding_device}+ model_kwargs={"device": self.embedding_device},)except Exception as e:logger.error(f"Error initializing embeddings: {e}")- logger.warning("Falling back to HuggingFaceEmbeddings with all-MiniLM-L6-v2")+ logger.warning(+ "Falling back to HuggingFaceEmbeddings with all-MiniLM-L6-v2"+ )return HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")+def _load_or_create_vector_store(self):"""Load the vector store from disk or create it if needed"""vector_store_path = self._get_vector_store_path()-+# Check if vector store exists and is up to dateif vector_store_path.exists() and not self._check_folders_modified():logger.info(f"Loading existing vector store from {vector_store_path}")@@ -133,43 +142,44 @@ class LocalEmbeddingManager:str(vector_store_path),self.embeddings,allow_dangerous_deserialization=True,- normalize_L2=True+ normalize_L2=True,)-+# Add this code to show document countdoc_count = len(vector_store.index_to_docstore_id)logger.info(f"Loaded index with {doc_count} document chunks")-+return vector_storeexcept Exception as e:logger.error(f"Error loading vector store: {e}")logger.info("Will create a new vector store")-+# Create a new vector store- return self._create_vector_store()+ return self._create_vector_store()+def _load_indexed_folders(self) -> Dict[str, Dict[str, Any]]:"""Load metadata about indexed folders from disk"""index_metadata_path = self.cache_dir / "index_metadata.json"-+if index_metadata_path.exists():try:with open(index_metadata_path, "r") as f:return json.load(f)except Exception as e:logger.error(f"Error loading index metadata: {e}")-+return {}-+def _save_indexed_folders(self):"""Save metadata about indexed folders to disk"""index_metadata_path = self.cache_dir / "index_metadata.json"-+try:with open(index_metadata_path, "w") as f:json.dump(self.indexed_folders, f, indent=2)except Exception as e:logger.error(f"Error saving index metadata: {e}")-+def _get_folder_hash(self, folder_path: str) -> str:"""Generate a hash for a folder based on its path"""# Strip trailing slashes if we have them.@@ -177,34 +187,34 @@ class LocalEmbeddingManager:folder_path = folder_path[:-1]return hashlib.md5(folder_path.encode()).hexdigest()-+def _get_index_path(self, folder_path: str) -> Path:"""Get the path where the index for a specific folder should be stored"""folder_hash = self._get_folder_hash(folder_path)return self.cache_dir / f"index_{folder_hash}"-+def _check_folder_modified(self, folder_path: str) -> bool:"""Check if a folder has been modified since it was last indexed"""folder_path = Path(folder_path)-+if not folder_path.exists() or not folder_path.is_dir():return False-+folder_hash = self._get_folder_hash(str(folder_path))-+# If folder has never been indexed, it's considered modifiedif folder_hash not in self.indexed_folders:return True-+last_indexed = self.indexed_folders[folder_hash].get("last_indexed", 0)-+# Check if any file in the folder has been modified since last indexingfor root, _, files in os.walk(folder_path):for file in files:file_path = Path(root) / fileif file_path.stat().st_mtime > last_indexed:return True-+return Falsedef _check_config_changed(self, folder_path: str) -> bool:@@ -225,19 +235,19 @@ class LocalEmbeddingManager:embedding_model = embedding_config.get("embedding_model", "")if (chunk_size, chunk_overlap, embedding_model) != (- self.chunk_size, self.chunk_overlap, self.embedding_model+ self.chunk_size,+ self.chunk_overlap,+ self.embedding_model,):- logger.info(- "Embedding configuration has changed, re-indexing folder."- )+ logger.info("Embedding configuration has changed, re-indexing folder.")return Truereturn False-+def get_file_loader(self, file_path: str) -> Optional[BaseLoader]:"""Get an appropriate document loader for a file based on its extension"""file_path = Path(file_path)extension = file_path.suffix.lower()-+try:if extension == ".pdf":return PyPDFLoader(str(file_path))@@ -253,43 +263,50 @@ class LocalEmbeddingManager:return UnstructuredExcelLoader(str(file_path))else:# Try the text loader as a fallback for unknown extensions- logger.warning(f"Unknown file extension for {file_path}, trying TextLoader")+ logger.warning(+ f"Unknown file extension for {file_path}, trying TextLoader"+ )return TextLoader(str(file_path), encoding="utf-8")except Exception as e:logger.error(f"Error creating loader for {file_path}: {e}")return None-+def index_folder(self, folder_path: str, force_reindex: bool = False) -> bool:"""Index all documents in a folder for vector search.-+Args:folder_path: Path to the folder to indexforce_reindex: Whether to force reindexing even if unchanged-+Returns:bool: True if indexing was successful, False otherwise"""folder_path = Path(folder_path)-+# Validate folderif not folder_path.exists():logger.error(f"Folder not found: {folder_path}")return False-+if not folder_path.is_dir():logger.error(f"Path is not a directory: {folder_path}")return False-+folder_str = str(folder_path)folder_hash = self._get_folder_hash(folder_str)index_path = self._get_index_path(folder_str)# Check if folder needs to be reindexed- if (not force_reindex and not self._check_folder_modified(folder_str)- and not self._check_config_changed(folder_str)):- logger.info(f"Folder {folder_path} has not been modified since last indexing")-+ if (+ not force_reindex+ and not self._check_folder_modified(folder_str)+ and not self._check_config_changed(folder_str)+ ):+ logger.info(+ f"Folder {folder_path} has not been modified since last indexing"+ )+# Load the vector store from disk if not already loadedif folder_hash not in self.vector_stores:try:@@ -306,70 +323,70 @@ class LocalEmbeddingManager:force_reindex = Trueelse:logger.info(f"Using cached index for {folder_path}")-+# If no reindexing is needed and vector store loaded successfullyif not force_reindex and folder_hash in self.vector_stores:return True-+logger.info(f"Indexing folder: {folder_path}")start_time = time.time()-+# Find documents to indexall_docs = []file_count = 0error_count = 0-+for root, _, files in os.walk(folder_path):for file in files:file_path = Path(root) / file-+# Skip hidden files and directories- if file.startswith(".") or any(part.startswith(".") for part in file_path.parts):+ if file.startswith(".") or any(+ part.startswith(".") for part in file_path.parts+ ):continue-+# Get a loader for this fileloader = self.get_file_loader(str(file_path))-+if loader:try:# Load the documentdocs = loader.load()-+# Add source path metadatafor doc in docs:doc.metadata["source"] = str(file_path)doc.metadata["filename"] = file-+all_docs.extend(docs)file_count += 1except Exception as e:logger.error(f"Error loading {file_path}: {e}")error_count += 1-+if not all_docs:- logger.warning(f"No documents found in {folder_path} or all documents failed to load")+ logger.warning(+ f"No documents found in {folder_path} or all documents failed to load"+ )return False-+# Split documents into chunkslogger.info(f"Splitting {len(all_docs)} documents into chunks")splits = self.text_splitter.split_documents(all_docs)logger.info(f"Created {len(splits)} chunks from {file_count} files")-+# Create vector storelogger.info(f"Creating vector store with {len(splits)} chunks")- vector_store = FAISS.from_documents(- splits,- self.embeddings,- normalize_L2=True- )-+ vector_store = FAISS.from_documents(splits, self.embeddings, normalize_L2=True)+# Save the vector store to disklogger.info(f"Saving index to {index_path}")vector_store.save_local(str(index_path))-+# Update cacheself.vector_stores[folder_hash] = vector_store-+# Update metadataself.indexed_folders[folder_hash] = {"path": folder_str,@@ -379,33 +396,33 @@ class LocalEmbeddingManager:"error_count": error_count,"embedding_model": self.embedding_model,"chunk_size": self.chunk_size,- "chunk_overlap": self.chunk_overlap+ "chunk_overlap": self.chunk_overlap,}-+# Save updated metadataself._save_indexed_folders()-+elapsed_time = time.time() - start_timelogger.info(f"Indexed {file_count} files in {elapsed_time:.2f} seconds")-+return True-+def search(- self,- query: str,+ self,+ query: str,folder_paths: List[str],limit: int = 10,score_threshold: float = 0.0,) -> List[Dict[str, Any]]:"""Search for documents relevant to a query across specified folders.-+Args:query: The search queryfolder_paths: List of folder paths to search inlimit: Maximum number of results to returnscore_threshold: Minimum similarity score threshold-+Returns:List of results with document content and metadata"""@@ -413,17 +430,21 @@ class LocalEmbeddingManager:for folder_path in folder_paths:folder_hash = self._get_folder_hash(folder_path)index_path = self._get_index_path(folder_path)-+logger.info(f"Diagnostic for {folder_path}:")logger.info(f" - Folder hash: {folder_hash}")logger.info(f" - Index path: {index_path}")logger.info(f" - Index exists on disk: {index_path.exists()}")- logger.info(f" - Is in indexed_folders: {folder_hash in self.indexed_folders}")-+ logger.info(+ f" - Is in indexed_folders: {folder_hash in self.indexed_folders}"+ )+if folder_hash in self.indexed_folders:meta = self.indexed_folders[folder_hash]- logger.info(f" - Metadata: file_count={meta.get('file_count', 0)}, chunk_count={meta.get('chunk_count', 0)}")-+ logger.info(+ f" - Metadata: file_count={meta.get('file_count', 0)}, chunk_count={meta.get('chunk_count', 0)}"+ )+# Validate folders existvalid_folder_paths = []for path in folder_paths:@@ -431,22 +452,22 @@ class LocalEmbeddingManager:valid_folder_paths.append(path)else:logger.warning(f"Skipping non-existent folder in search: {path}")-+# If no valid folders, return empty resultsif not valid_folder_paths:logger.warning(f"No valid folders to search among: {folder_paths}")return []-+all_results = []-+for folder_path in valid_folder_paths:folder_hash = self._get_folder_hash(folder_path)-+# Skip folders that haven't been indexedif folder_hash not in self.indexed_folders:logger.warning(f"Folder {folder_path} has not been indexed")continue-+# Make sure the vector store is loadedif folder_hash not in self.vector_stores:index_path = self._get_index_path(folder_path)@@ -455,74 +476,71 @@ class LocalEmbeddingManager:str(index_path),self.embeddings,allow_dangerous_deserialization=True,- nomalize_L2=True+ nomalize_L2=True,)except Exception as e:logger.error(f"Error loading index for {folder_path}: {e}")continue-+# Search in this foldervector_store = self.vector_stores[folder_hash]-+try:- docs_with_scores = (- vector_store.similarity_search_with_relevance_scores(- query,- k=limit- )+ docs_with_scores = vector_store.similarity_search_with_relevance_scores(+ query, k=limit)-+for doc, similarity in docs_with_scores:# Skip results below the thresholdif similarity < score_threshold:continue-+result = {"content": doc.page_content,"metadata": doc.metadata,"similarity": float(similarity),- "folder": folder_path+ "folder": folder_path,}-+all_results.append(result)except Exception as e:logger.error(f"Error searching in {folder_path}: {e}")-+# Sort by similarity (highest first)all_results.sort(key=lambda x: x["similarity"], reverse=True)-+# Limit to the requested numberreturn all_results[:limit]-+def clear_cache(self):"""Clear all cached vector stores from memory (not disk)"""self.vector_stores.clear()-+def get_indexed_folders_info(self) -> List[Dict[str, Any]]:"""Get information about all indexed folders"""info = []-+for folder_hash, metadata in self.indexed_folders.items():folder_info = metadata.copy()-+# Add formatted last indexed timeif "last_indexed" in folder_info:folder_info["last_indexed_formatted"] = datetime.fromtimestamp(folder_info["last_indexed"]).strftime("%Y-%m-%d %H:%M:%S")-+# Check if index file existsindex_path = self._get_index_path(folder_info["path"])folder_info["index_exists"] = index_path.exists()-+info.append(folder_info)-+return infoclass LocalSearchEngine(BaseSearchEngine):"""Local document search engine with two-phase retrieval"""-+def __init__(self,paths: List[str],@@ -541,7 +559,7 @@ class LocalSearchEngine(BaseSearchEngine):):"""Initialize the local search engine.-+Args:paths: List of folder paths to search inllm: Language model for relevance filtering@@ -559,7 +577,7 @@ class LocalSearchEngine(BaseSearchEngine):"""# Initialize the base search enginesuper().__init__(llm=llm, max_filtered_results=max_filtered_results)-+# Validate folder pathsself.folder_paths = pathsself.valid_folder_paths = []@@ -568,15 +586,19 @@ class LocalSearchEngine(BaseSearchEngine):self.valid_folder_paths.append(path)else:logger.warning(f"Folder not found or is not a directory: {path}")-+# If no valid folders, log a clear messageif not self.valid_folder_paths and paths:logger.warning(f"No valid folders found among: {paths}")- logger.warning("This search engine will return no results until valid folders are configured")-+ logger.warning(+ "This search engine will return no results until valid folders are configured"+ )+self.max_results = max_results- self.collections = collections or {"default": {"paths": paths, "description": "Default collection"}}-+ self.collections = collections or {+ "default": {"paths": paths, "description": "Default collection"}+ }+# Initialize the embedding manager with only valid foldersself.embedding_manager = LocalEmbeddingManager(embedding_model=embedding_model,@@ -585,339 +607,393 @@ class LocalSearchEngine(BaseSearchEngine):ollama_base_url=ollama_base_url,chunk_size=chunk_size,chunk_overlap=chunk_overlap,- cache_dir=cache_dir+ cache_dir=cache_dir,)-+# Index all foldersself._index_folders(force_reindex)-+def _index_folders(self, force_reindex: bool = False):"""Index all valid configured folders"""indexed = []failed = []skipped = []-+# Keep track of invalid foldersfor folder in self.folder_paths:if folder not in self.valid_folder_paths:skipped.append(folder)continue-+success = self.embedding_manager.index_folder(folder, force_reindex)if success:indexed.append(folder)else:failed.append(folder)-+if indexed:- logger.info(f"Successfully indexed {len(indexed)} folders: {', '.join(indexed)}")-+ logger.info(+ f"Successfully indexed {len(indexed)} folders: {', '.join(indexed)}"+ )+if failed:- logger.warning(f"Failed to index {len(failed)} folders: {', '.join(failed)}")-+ logger.warning(+ f"Failed to index {len(failed)} folders: {', '.join(failed)}"+ )+if skipped:- logger.warning(f"Skipped {len(skipped)} invalid folders: {', '.join(skipped)}")-- def _get_previews(self, query: str, collection_names: Optional[List[str]] = None) -> List[Dict[str, Any]]:+ logger.warning(+ f"Skipped {len(skipped)} invalid folders: {', '.join(skipped)}"+ )++ def _get_previews(+ self, query: str, collection_names: Optional[List[str]] = None+ ) -> List[Dict[str, Any]]:"""Get preview information for documents matching the query.-+Args:query: The search querycollection_names: Specific collections to search within (if None, search all)-+Returns:List of preview dictionaries"""# Determine which collections to searchif collection_names:# Search only in specified collections- collections_to_search = {name: self.collections[name] for name in collection_names- if name in self.collections}+ collections_to_search = {+ name: self.collections[name]+ for name in collection_names+ if name in self.collections+ }if not collections_to_search:logger.warning(f"No valid collections found among: {collection_names}")return []else:# Search in all collectionscollections_to_search = self.collections-+# Extract all folder paths from the collections to searchsearch_paths = []for collection_config in collections_to_search.values():if "paths" in collection_config:search_paths.extend(collection_config["paths"])-- logger.info(f"Searching local documents in collections: {list(collections_to_search.keys())}")-++ logger.info(+ f"Searching local documents in collections: {list(collections_to_search.keys())}"+ )+# Filter out invalid paths- valid_search_paths = [path for path in search_paths if path in self.valid_folder_paths]-+ valid_search_paths = [+ path for path in search_paths if path in self.valid_folder_paths+ ]+if not valid_search_paths:- logger.warning(f"No valid folders to search in collections: {list(collections_to_search.keys())}")+ logger.warning(+ f"No valid folders to search in collections: {list(collections_to_search.keys())}"+ )return []-+# Search across the valid selected foldersraw_results = self.embedding_manager.search(query=query,folder_paths=valid_search_paths,limit=self.max_results,- score_threshold=0.1 # Skip very low relevance results+ score_threshold=0.1, # Skip very low relevance results)-+if not raw_results:logger.info(f"No local documents found for query: {query}")return []-+# Convert to preview formatpreviews = []for i, result in enumerate(raw_results):# Create a unique ID- result_id = f"local-{i}-{hashlib.md5(result['content'][:50].encode()).hexdigest()}"-+ result_id = (+ f"local-{i}-{hashlib.md5(result['content'][:50].encode()).hexdigest()}"+ )+# Extract filename and path- source_path = result['metadata'].get('source', 'Unknown')- filename = result['metadata'].get('filename', os.path.basename(source_path))-+ source_path = result["metadata"].get("source", "Unknown")+ filename = result["metadata"].get("filename", os.path.basename(source_path))+# Create preview snippet (first ~200 chars of content)- snippet = result['content'][:200] + "..." if len(result['content']) > 200 else result['content']-+ snippet = (+ result["content"][:200] + "..."+ if len(result["content"]) > 200+ else result["content"]+ )+# Determine which collection this document belongs tocollection_name = "Unknown"- folder_path = result['folder']+ folder_path = result["folder"]for name, collection in self.collections.items():- if any(folder_path.startswith(path) for path in collection.get("paths", [])):+ if any(+ folder_path.startswith(path) for path in collection.get("paths", [])+ ):collection_name = namebreak-+# Format the previewpreview = {"id": result_id,"title": filename,"snippet": snippet,"link": source_path,- "similarity": result['similarity'],+ "similarity": result["similarity"],"folder": folder_path,"collection": collection_name,- "collection_description": self.collections.get(collection_name, {}).get("description", ""),- "_full_content": result['content'], # Store full content for later- "_metadata": result['metadata'] # Store metadata for later+ "collection_description": self.collections.get(collection_name, {}).get(+ "description", ""+ ),+ "_full_content": result["content"], # Store full content for later+ "_metadata": result["metadata"], # Store metadata for later}-+previews.append(preview)-+logger.info(f"Found {len(previews)} local document matches")return previews-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant documents.For local search, the full content is already available.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""# Check if we should add full content- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:+ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Snippet-only mode, skipping full content addition")return relevant_items-+# For local search, we already have the full contentresults = []for item in relevant_items:# Create a copy with full contentresult = item.copy()-+# Add full content if we have itif "_full_content" in item:result["content"] = item["_full_content"]result["full_content"] = item["_full_content"]-+# Remove temporary fieldsif "_full_content" in result:del result["_full_content"]-+# Add metadata if we have itif "_metadata" in item:result["document_metadata"] = item["_metadata"]-+# Remove temporary fieldsif "_metadata" in result:del result["_metadata"]-+results.append(result)-+return results-- def run(self, query: str, collection_names: Optional[List[str]] = None) -> List[Dict[str, Any]]:++ def run(+ self, query: str, collection_names: Optional[List[str]] = None+ ) -> List[Dict[str, Any]]:"""Execute a search using the two-phase approach.-+Args:query: The search querycollection_names: Specific collections to search within (if None, search all)-+Returns:List of search result dictionaries with full content"""- logger.info(f"---Execute a search using Local Documents---")-+ logger.info("---Execute a search using Local Documents---")+# Check if we have any special collection parameters in the querycollection_prefix = "collection:"remaining_query = queryspecified_collections = []-+# Parse query for collection specifications like "collection:research_papers query terms"query_parts = query.split()for part in query_parts:if part.lower().startswith(collection_prefix):- collection_name = part[len(collection_prefix):].strip()+ collection_name = part[len(collection_prefix) :].strip()if collection_name in self.collections:specified_collections.append(collection_name)# Remove this part from the queryremaining_query = remaining_query.replace(part, "", 1).strip()-+# If collections were specified in the query, they override the parameterif specified_collections:collection_names = specified_collectionsquery = remaining_query-+# Phase 1: Get previews (with collection filtering)previews = self._get_previews(query, collection_names)-+if not previews:return []-+# Phase 2: Filter for relevancerelevant_items = self._filter_for_relevance(previews, query)-+if not relevant_items:return []-+# Phase 3: Get full content for relevant items- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:+ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Returning snippet-only results as per config")results = relevant_itemselse:results = self._get_full_content(relevant_items)-+# Clean up temporary dataself.embedding_manager.clear_cache()-+return results-+def get_collections_info(self) -> List[Dict[str, Any]]:"""Get information about all collections, including indexing status.-+Returns:List of collection information dictionaries"""collections_info = []-+for name, collection in self.collections.items():paths = collection.get("paths", [])description = collection.get("description", "")-+# Get indexing information for each pathpaths_info = []for path in paths:# Check if folder existsexists = os.path.exists(path) and os.path.isdir(path)-+# Check if folder is indexedfolder_hash = self.embedding_manager._get_folder_hash(path)indexed = folder_hash in self.embedding_manager.indexed_folders-+# Get index details if availableindex_info = {}if indexed:- index_info = self.embedding_manager.indexed_folders[folder_hash].copy()-- paths_info.append({- "path": path,- "exists": exists,- "indexed": indexed,- "index_info": index_info- })-- collections_info.append({- "name": name,- "description": description,- "paths": paths,- "paths_info": paths_info,- "document_count": sum(info.get("index_info", {}).get("file_count", 0) for info in paths_info),- "chunk_count": sum(info.get("index_info", {}).get("chunk_count", 0) for info in paths_info),- "all_indexed": all(info["indexed"] for info in paths_info if info["exists"])- })-+ index_info = self.embedding_manager.indexed_folders[+ folder_hash+ ].copy()++ paths_info.append(+ {+ "path": path,+ "exists": exists,+ "indexed": indexed,+ "index_info": index_info,+ }+ )++ collections_info.append(+ {+ "name": name,+ "description": description,+ "paths": paths,+ "paths_info": paths_info,+ "document_count": sum(+ info.get("index_info", {}).get("file_count", 0)+ for info in paths_info+ ),+ "chunk_count": sum(+ info.get("index_info", {}).get("chunk_count", 0)+ for info in paths_info+ ),+ "all_indexed": all(+ info["indexed"] for info in paths_info if info["exists"]+ ),+ }+ )+return collections_info-+def reindex_collection(self, collection_name: str) -> bool:"""Reindex a specific collection.-+Args:collection_name: Name of the collection to reindex-+Returns:True if reindexing was successful, False otherwise"""if collection_name not in self.collections:logger.error(f"Collection '{collection_name}' not found")return False-+paths = self.collections[collection_name].get("paths", [])success = True-+for path in paths:if not self.embedding_manager.index_folder(path, force_reindex=True):success = False-+return success-+@classmethod- def from_config(cls, config_dict: Dict[str, Any], llm: Optional[BaseLLM] = None) -> "LocalSearchEngine":+ def from_config(+ cls, config_dict: Dict[str, Any], llm: Optional[BaseLLM] = None+ ) -> "LocalSearchEngine":"""Create a LocalSearchEngine instance from a configuration dictionary.-+Args:config_dict: Configuration dictionaryllm: Language model for relevance filtering-+Returns:Initialized LocalSearchEngine instance"""# Required parametersfolder_paths = []collections = config_dict.get("collections", {})-+# Extract all folder paths from collectionsfor collection_config in collections.values():if "paths" in collection_config:folder_paths.extend(collection_config["paths"])-+# Fall back to folder_paths if no collections definedif not folder_paths:folder_paths = config_dict.get("folder_paths", [])# Create a default collection if using folder_pathsif folder_paths:- collections = {"default": {"paths": folder_paths, "description": "Default collection"}}-+ collections = {+ "default": {+ "paths": folder_paths,+ "description": "Default collection",+ }+ }+# Optional parameters with defaultsmax_results = config_dict.get("max_results", 10)max_filtered_results = config_dict.get("max_filtered_results")embedding_model = config_dict.get("embedding_model", "all-MiniLM-L6-v2")embedding_device = config_dict.get("embedding_device", "cpu")- embedding_model_type = config_dict.get("embedding_model_type", "sentence_transformers")+ embedding_model_type = config_dict.get(+ "embedding_model_type", "sentence_transformers"+ )ollama_base_url = config_dict.get("ollama_base_url")force_reindex = config_dict.get("force_reindex", False)chunk_size = config_dict.get("chunk_size", 1000)chunk_overlap = config_dict.get("chunk_overlap", 200)cache_dir = config_dict.get("cache_dir", ".cache/local_search")-+return cls(paths=folder_paths,collections=collections,@@ -931,5 +1007,5 @@ class LocalSearchEngine(BaseSearchEngine):force_reindex=force_reindex,chunk_size=chunk_size,chunk_overlap=chunk_overlap,- cache_dir=cache_dir+ cache_dir=cache_dir,)diff --git a/src/local_deep_research/web_search_engines/engines/search_engine_local_all.py b/src/local_deep_research/web_search_engines/engines/search_engine_local_all.pyindex d57894f775..2c869ee8f9 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_local_all.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_local_all.py@@ -3,18 +3,19 @@ Search engine that searches across all local collections"""import logging-from typing import Dict, List, Any, Optional+from typing import Any, Dict, List, Optionalimport tomlfrom langchain_core.language_models import BaseLLM+from ...config import LOCAL_COLLECTIONS_FILEfrom ..search_engine_base import BaseSearchEnginefrom ..search_engine_factory import create_search_engine-from ...config import LOCAL_COLLECTIONS_FILE# Setup logginglogger = logging.getLogger(__name__)+class LocalAllSearchEngine(BaseSearchEngine):"""Search engine that searches across all local document collections.@@ -26,11 +27,11 @@ class LocalAllSearchEngine(BaseSearchEngine):llm: Optional[BaseLLM] = None,max_results: int = 10,max_filtered_results: Optional[int] = None,- **kwargs+ **kwargs,):"""Initialize the local all-collections search engine.-+Args:llm: Language model for relevance filteringmax_results: Maximum number of search results@@ -38,8 +39,10 @@ class LocalAllSearchEngine(BaseSearchEngine):**kwargs: Additional parameters passed to LocalSearchEngine instances"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)-+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )+# Find all local collection search enginesself.local_engines = {}try:@@ -48,78 +51,79 @@ class LocalAllSearchEngine(BaseSearchEngine):for collection_id, collection in local_collections.items():if not collection.get("enabled", True):continue-+# Create a search engine for this collectiontry:engine = create_search_engine(collection_id,llm=llm,- max_filtered_results=max_filtered_results+ max_filtered_results=max_filtered_results,)-+if engine:self.local_engines[collection_id] = {"engine": engine,"name": collection.get("name", collection_id),- "description": collection.get("description", "")+ "description": collection.get("description", ""),}except Exception as e:- logger.error(f"Error creating search engine for collection '{collection_id}': {e}")+ logger.error(+ f"Error creating search engine for collection '{collection_id}': {e}"+ )except ImportError:logger.warning("No local collections configuration found")-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information for documents from all local collections.-+Args:query: The search query-+Returns:List of preview dictionaries"""logger.info(f"Searching across all local collections for query: {query}")-+all_previews = []-+# Get previews from each local search enginefor collection_id, engine_info in self.local_engines.items():engine = engine_info["engine"]try:# Get previews from this enginepreviews = engine._get_previews(query)-+# Add collection info to each previewfor preview in previews:preview["collection_id"] = collection_idpreview["collection_name"] = engine_info["name"]preview["collection_description"] = engine_info["description"]-+all_previews.extend(previews)except Exception as e:logger.error(f"Error searching collection '{collection_id}': {e}")-+if not all_previews:logger.info(f"No local documents found for query: {query}")return []-+# Sort by similarity score if available- all_previews.sort(- key=lambda x: float(x.get("similarity", 0)),- reverse=True- )-+ all_previews.sort(key=lambda x: float(x.get("similarity", 0)), reverse=True)+# Limit to max_results- return all_previews[:self.max_results]-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:+ return all_previews[: self.max_results]++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant documents.Delegates to the appropriate collection's search engine.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""@@ -131,7 +135,7 @@ class LocalAllSearchEngine(BaseSearchEngine):if collection_id not in items_by_collection:items_by_collection[collection_id] = []items_by_collection[collection_id].append(item)-+# Process each collection's items with its own engineall_results = []for collection_id, items in items_by_collection.items():@@ -140,14 +144,16 @@ class LocalAllSearchEngine(BaseSearchEngine):results = engine._get_full_content(items)all_results.extend(results)except Exception as e:- logger.error(f"Error getting full content from collection '{collection_id}': {e}")+ logger.error(+ f"Error getting full content from collection '{collection_id}': {e}"+ )# Fall back to returning the items without full contentall_results.extend(items)-+# Add any items that weren't processedprocessed_ids = set(item["id"] for item in all_results)for item in relevant_items:if item["id"] not in processed_ids:all_results.append(item)-+return all_resultsdiff --git a/src/local_deep_research/web_search_engines/engines/search_engine_pubmed.py b/src/local_deep_research/web_search_engines/engines/search_engine_pubmed.pyindex e7f1ea63b1..8f52453f0c 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_pubmed.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_pubmed.py@@ -1,37 +1,41 @@-import requestsimport logging+import re+import timeimport xml.etree.ElementTree as ET-from typing import Dict, List, Any, Optional, Tuple+from typing import Any, Dict, List, Optional, Tuple++import requestsfrom langchain_core.language_models import BaseLLM-import time-import re-from ..search_engine_base import BaseSearchEnginefrom ... import config+from ..search_engine_base import BaseSearchEngine# Setup logginglogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)+class PubMedSearchEngine(BaseSearchEngine):"""PubMed search engine implementation with two-phase approach and adaptive search.Provides efficient access to biomedical literature while minimizing API usage."""-- def __init__(self,- max_results: int = 10,- api_key: Optional[str] = None,- days_limit: Optional[int] = None,- get_abstracts: bool = True,- get_full_text: bool = False,- full_text_limit: int = 3,- llm: Optional[BaseLLM] = None,- max_filtered_results: Optional[int] = None,- optimize_queries: bool = True):++ def __init__(+ self,+ max_results: int = 10,+ api_key: Optional[str] = None,+ days_limit: Optional[int] = None,+ get_abstracts: bool = True,+ get_full_text: bool = False,+ full_text_limit: int = 3,+ llm: Optional[BaseLLM] = None,+ max_filtered_results: Optional[int] = None,+ optimize_queries: bool = True,+ ):"""Initialize the PubMed search engine.-+Args:max_results: Maximum number of search resultsapi_key: NCBI API key for higher rate limits (optional)@@ -44,32 +48,34 @@ class PubMedSearchEngine(BaseSearchEngine):optimize_queries: Whether to optimize natural language queries for PubMed"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)- self.max_results=max(self.max_results,25)+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )+ self.max_results = max(self.max_results, 25)self.api_key = api_keyself.days_limit = days_limitself.get_abstracts = get_abstractsself.get_full_text = get_full_textself.full_text_limit = full_text_limitself.optimize_queries = optimize_queries-+# Base API URLsself.base_url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils"self.search_url = f"{self.base_url}/esearch.fcgi"self.summary_url = f"{self.base_url}/esummary.fcgi"self.fetch_url = f"{self.base_url}/efetch.fcgi"self.link_url = f"{self.base_url}/elink.fcgi"-+# PMC base URL for full textself.pmc_url = "https://www.ncbi.nlm.nih.gov/pmc/articles/"-+def _get_result_count(self, query: str) -> int:"""Get the total number of results for a query without retrieving the results themselves.-+Args:query: The search query-+Returns:Total number of matching results"""@@ -79,69 +85,70 @@ class PubMedSearchEngine(BaseSearchEngine):"db": "pubmed","term": query,"retmode": "json",- "retmax": 0 # Don't need actual results, just the count+ "retmax": 0, # Don't need actual results, just the count}-+# Add API key if availableif self.api_key:params["api_key"] = self.api_key-+# Execute search requestresponse = requests.get(self.search_url, params=params)response.raise_for_status()-+# Parse responsedata = response.json()count = int(data["esearchresult"]["count"])-+logger.info(f"Query '{query}' has {count} total results in PubMed")return count-+except Exception as e:logger.error(f"Error getting result count: {e}")return 0-+def _extract_core_terms(self, query: str) -> str:"""Extract core terms from a complex query for volume estimation.-+Args:query: PubMed query string-+Returns:Simplified query with core terms"""# Remove field specifications and operators- simplified = re.sub(r'\[\w+\]', '', query) # Remove [Field] tags- simplified = re.sub(r'\b(AND|OR|NOT)\b', '', simplified) # Remove operators-+ simplified = re.sub(r"\[\w+\]", "", query) # Remove [Field] tags+ simplified = re.sub(r"\b(AND|OR|NOT)\b", "", simplified) # Remove operators+# Remove quotes and parentheses- simplified = simplified.replace('"', '').replace('(', '').replace(')', '')-+ simplified = simplified.replace('"', "").replace("(", "").replace(")", "")+# Split by whitespace and join terms with 4+ chars (likely meaningful)terms = [term for term in simplified.split() if len(term) >= 4]-+# Join with AND to create a basic searchreturn " ".join(terms[:5]) # Limit to top 5 terms-+def _expand_time_window(self, time_filter: str) -> str:"""Expand a time window to get more results.-+Args:time_filter: Current time filter-+Returns:Expanded time filter"""# Parse current time windowimport re+match = re.match(r'"last (\d+) (\w+)"[pdat]', time_filter)if not match:return '"last 10 years"[pdat]'-+amount, unit = int(match.group(1)), match.group(2)-+# Expand based on current unitif unit == "months" or unit == "month":if amount < 6:@@ -157,24 +164,24 @@ class PubMedSearchEngine(BaseSearchEngine):return '"last 5 years"[pdat]'else:return '"last 10 years"[pdat]'-+return '"last 10 years"[pdat]'-+def _optimize_query_for_pubmed(self, query: str) -> str:"""Optimize a natural language query for PubMed search.Uses LLM to transform questions into effective keyword-based queries.-+Args:query: Natural language query-+Returns:Optimized query string for PubMed"""if not self.llm or not self.optimize_queries:# Return original query if no LLM available or optimization disabledreturn query-+try:# Prompt for query optimizationprompt = f"""Transform this natural language question into an optimized PubMed search query.@@ -199,138 +206,194 @@ EXAMPLE QUERIES:Return ONLY the search query without any explanations."""-+# Get response from LLMresponse = self.llm.invoke(prompt)raw_response = response.content.strip()-+# Clean up the query - extract only the actual query and remove any explanations# First check if there are multiple lines and take the first non-empty line- lines = raw_response.split('\n')+ lines = raw_response.split("\n")cleaned_lines = [line.strip() for line in lines if line.strip()]-+if cleaned_lines:optimized_query = cleaned_lines[0]-+# Remove any quotes that wrap the entire queryif optimized_query.startswith('"') and optimized_query.endswith('"'):optimized_query = optimized_query[1:-1]-+# Remove any explanation phrases that might be at the beginning- explanation_starters = ["here is", "here's", "this query", "the following"]+ explanation_starters = [+ "here is",+ "here's",+ "this query",+ "the following",+ ]for starter in explanation_starters:if optimized_query.lower().startswith(starter):# Find the actual query part - typically after a colon- colon_pos = optimized_query.find(':')+ colon_pos = optimized_query.find(":")if colon_pos > 0:- optimized_query = optimized_query[colon_pos + 1:].strip()-+ optimized_query = optimized_query[colon_pos + 1 :].strip()+# Check if the query still seems to contain explanations- if len(optimized_query) > 200 or "this query will" in optimized_query.lower():+ if (+ len(optimized_query) > 200+ or "this query will" in optimized_query.lower()+ ):# It's probably still an explanation - try to extract just the query part# Look for common patterns in the explanation like parentheses- pattern = r'\([^)]+\)\s+AND\s+'+ pattern = r"\([^)]+\)\s+AND\s+"import re+matches = re.findall(pattern, optimized_query)if matches:# Extract just the query syntax partsquery_parts = []- for part in re.split(r'\.\s+', optimized_query):- if '(' in part and ')' in part and ('AND' in part or 'OR' in part):+ for part in re.split(r"\.\s+", optimized_query):+ if (+ "(" in part+ and ")" in part+ and ("AND" in part or "OR" in part)+ ):query_parts.append(part)if query_parts:- optimized_query = ' '.join(query_parts)+ optimized_query = " ".join(query_parts)else:# Fall back to original query if cleaning failslogger.warning("Failed to extract a clean query from LLM response")optimized_query = query-+# Final safety check - if query looks too much like an explanation, use originalif len(optimized_query.split()) > 30:logger.warning("Query too verbose, falling back to simpler form")# Create a simple query from the original- words = [w for w in query.split() if len(w) > 3 and w.lower() not in ('what', 'are', 'the', 'and', 'for', 'with', 'from', 'have', 'been', 'recent')]- optimized_query = ' AND '.join(words[:3])-- # Safety check for invalid or overly complex MeSH terms+ words = [+ w+ for w in query.split()+ if len(w) > 3+ and w.lower()+ not in (+ "what",+ "are",+ "the",+ "and",+ "for",+ "with",+ "from",+ "have",+ "been",+ "recent",+ )+ ]+ optimized_query = " AND ".join(words[:3])++ # Safety check for invalid or overly complex MeSH terms# This helps prevent errors with non-existent or complex MeSH termsimport re+mesh_terms = re.findall(r'"[^"]+"[Mesh]', optimized_query)- known_valid_mesh = ["Vaccines", "COVID-19", "Influenza", "Infectious Disease Medicine",- "Communicable Diseases", "RNA, Messenger", "Vaccination",- "Immunization"]-+ known_valid_mesh = [+ "Vaccines",+ "COVID-19",+ "Influenza",+ "Infectious Disease Medicine",+ "Communicable Diseases",+ "RNA, Messenger",+ "Vaccination",+ "Immunization",+ ]+# Replace potentially problematic MeSH terms with Title/Abstract searchesfor term in mesh_terms:- term_name = term.split('"')[1] # Extract term name without quotes and [Mesh]+ term_name = term.split('"')[+ 1+ ] # Extract term name without quotes and [Mesh]if not any(valid in term_name for valid in known_valid_mesh):# Replace with Title/Abstract searchreplacement = f"{term_name.lower()}[Title/Abstract]"optimized_query = optimized_query.replace(term, replacement)-+# Simplify the query if still no results are foundself._simplify_query_cache = optimized_query-+# Log original and optimized querieslogger.info(f"Original query: '{query}'")logger.info(f"Optimized for PubMed: '{optimized_query}'")-+return optimized_query-+except Exception as e:logger.error(f"Error optimizing query: {e}")return query # Fall back to original query on error-+def _simplify_query(self, query: str) -> str:"""Simplify a PubMed query that returned no results.Progressively removes elements to get a more basic query.-+Args:query: The original query that returned no results-+Returns:Simplified query"""logger.info(f"Simplifying query: {query}")-+# Attempt different simplification strategies-+# 1. Remove any MeSH terms and replace with Title/Abstractimport re- simplified = re.sub(r'"[^"]+"[Mesh]', lambda m: m.group(0).split('"')[1].lower() + "[Title/Abstract]", query)-++ simplified = re.sub(+ r'"[^"]+"[Mesh]',+ lambda m: m.group(0).split('"')[1].lower() + "[Title/Abstract]",+ query,+ )+# 2. If that doesn't work, focus on just mRNA and vaccines - the core conceptsif simplified == query: # No changes were made- simplified = "(mRNA[Title/Abstract] OR \"messenger RNA\"[Title/Abstract]) AND vaccin*[Title/Abstract]"-+ simplified = '(mRNA[Title/Abstract] OR "messenger RNA"[Title/Abstract]) AND vaccin*[Title/Abstract]'+logger.info(f"Simplified query: {simplified}")return simplified-+def _is_historical_focused(self, query: str) -> bool:"""Determine if a query is specifically focused on historical/older information using LLM.Default assumption is that queries should prioritize recent information unlessexplicitly asking for historical content.-+Args:query: The search query-+Returns:Boolean indicating if the query is focused on historical information"""if not self.llm:# Fall back to basic keyword check if no LLM available- historical_terms = ["history", "historical", "early", "initial", "first", "original",- "before", "prior to", "origins", "evolution", "development"]+ historical_terms = [+ "history",+ "historical",+ "early",+ "initial",+ "first",+ "original",+ "before",+ "prior to",+ "origins",+ "evolution",+ "development",+ ]historical_years = [str(year) for year in range(1900, 2020)]-+query_lower = query.lower()has_historical_term = any(term in query_lower for term in historical_terms)has_past_year = any(year in query for year in historical_years)-+return has_historical_term or has_past_year-+try:# Use LLM to determine if the query is focused on historical informationprompt = f"""Determine if this query is specifically asking for HISTORICAL or OLDER information.@@ -342,40 +405,51 @@ Answer ONLY "no" if the query is asking about recent, current, or new informatioThe default assumption should be that medical and scientific queries want RECENT information unless clearly specified otherwise."""-+response = self.llm.invoke(prompt)answer = response.content.strip().lower()-+# Log the determinationlogger.info(f"Historical focus determination for query: '{query}'")logger.info(f"LLM determined historical focus: {answer}")-+return "yes" in answer-+except Exception as e:logger.error(f"Error determining historical focus: {e}")# Fall back to basic keyword check- historical_terms = ["history", "historical", "early", "initial", "first", "original",- "before", "prior to", "origins", "evolution", "development"]+ historical_terms = [+ "history",+ "historical",+ "early",+ "initial",+ "first",+ "original",+ "before",+ "prior to",+ "origins",+ "evolution",+ "development",+ ]return any(term in query.lower() for term in historical_terms)-+def _adaptive_search(self, query: str) -> Tuple[List[str], str]:"""Perform an adaptive search that adjusts based on topic volume and whetherthe query focuses on historical information.-+Args:query: The search query (already optimized)-+Returns:Tuple of (list of PMIDs, search strategy used)"""# Estimate topic volumeestimated_volume = self._get_result_count(query)-+# Determine if the query is focused on historical informationis_historical_focused = self._is_historical_focused(query)-+if is_historical_focused:# User wants historical information - no date filteringtime_filter = None@@ -396,44 +470,52 @@ The default assumption should be that medical and scientific queries want RECENT# Rare topic - still use recency but with wider rangetime_filter = '"last 10 years"[pdat]'strategy = "rare_topic"-+# Run search based on strategyif time_filter:# Try with adaptive time filterquery_with_time = f"({query}) AND {time_filter}"- logger.info(f"Using adaptive search strategy: {strategy} with filter: {time_filter}")+ logger.info(+ f"Using adaptive search strategy: {strategy} with filter: {time_filter}"+ )results = self._search_pubmed(query_with_time)-+# If too few results, gradually expand time window- if len(results) < 5 and not '"last 10 years"[pdat]' in time_filter:- logger.info(f"Insufficient results ({len(results)}), expanding time window")+ if len(results) < 5 and '"last 10 years"[pdat]' not in time_filter:+ logger.info(+ f"Insufficient results ({len(results)}), expanding time window"+ )expanded_time = self._expand_time_window(time_filter)query_with_expanded_time = f"({query}) AND {expanded_time}"expanded_results = self._search_pubmed(query_with_expanded_time)-+if len(expanded_results) > len(results):- logger.info(f"Expanded time window yielded {len(expanded_results)} results")+ logger.info(+ f"Expanded time window yielded {len(expanded_results)} results"+ )return expanded_results, f"{strategy}_expanded"-+# If still no results, try without time filterif not results:- logger.info("No results with time filter, trying without time restrictions")+ logger.info(+ "No results with time filter, trying without time restrictions"+ )results = self._search_pubmed(query)strategy = "no_time_filter"else:# Historical query - run without time filter- logger.info(f"Using historical search strategy without date filtering")+ logger.info("Using historical search strategy without date filtering")results = self._search_pubmed(query)-+return results, strategy-+def _search_pubmed(self, query: str) -> List[str]:"""Search PubMed and return a list of article IDs.-+Args:query: The search query-+Returns:List of PubMed IDs matching the query"""@@ -444,76 +526,76 @@ The default assumption should be that medical and scientific queries want RECENT"term": query,"retmode": "json","retmax": self.max_results,- "usehistory": "y"+ "usehistory": "y",}-+# Add API key if availableif self.api_key:params["api_key"] = self.api_key-+# Add date restriction if specifiedif self.days_limit:params["reldate"] = self.days_limitparams["datetype"] = "pdat" # Publication date-+# Execute search requestresponse = requests.get(self.search_url, params=params)response.raise_for_status()-+# Parse responsedata = response.json()id_list = data["esearchresult"]["idlist"]-+logger.info(f"PubMed search for '{query}' found {len(id_list)} results")return id_list-+except Exception as e:logger.error(f"Error searching PubMed: {e}")return []-+def _get_article_summaries(self, id_list: List[str]) -> List[Dict[str, Any]]:"""Get summaries for a list of PubMed article IDs.-+Args:id_list: List of PubMed IDs-+Returns:List of article summary dictionaries"""if not id_list:return []-+try:# Prepare parametersparams = {"db": "pubmed","id": ",".join(id_list),"retmode": "json",- "rettype": "summary"+ "rettype": "summary",}-+# Add API key if availableif self.api_key:params["api_key"] = self.api_key-+# Execute requestresponse = requests.get(self.summary_url, params=params)response.raise_for_status()-+# Parse responsedata = response.json()summaries = []-+for pmid in id_list:if pmid in data["result"]:article = data["result"][pmid]-+# Extract authors (if available)authors = []if "authors" in article:authors = [author["name"] for author in article["authors"]]-+# Create summary dictionarysummary = {"id": pmid,@@ -523,73 +605,73 @@ The default assumption should be that medical and scientific queries want RECENT"authors": authors,"journal": article.get("fulljournalname", ""),"doi": article.get("doi", ""),- "link": f"https://pubmed.ncbi.nlm.nih.gov/{pmid}/"+ "link": f"https://pubmed.ncbi.nlm.nih.gov/{pmid}/",}-+summaries.append(summary)-+return summaries-+except Exception as e:logger.error(f"Error getting article summaries: {e}")return []-+def _get_article_abstracts(self, id_list: List[str]) -> Dict[str, str]:"""Get abstracts for a list of PubMed article IDs.-+Args:id_list: List of PubMed IDs-+Returns:Dictionary mapping PubMed IDs to their abstracts"""if not id_list:return {}-+try:# Prepare parametersparams = {"db": "pubmed","id": ",".join(id_list),"retmode": "xml",- "rettype": "abstract"+ "rettype": "abstract",}-+# Add API key if availableif self.api_key:params["api_key"] = self.api_key-+# Execute requestresponse = requests.get(self.fetch_url, params=params)response.raise_for_status()-+# Parse XML responseroot = ET.fromstring(response.text)-+# Extract abstractsabstracts = {}-+for article in root.findall(".//PubmedArticle"):pmid_elem = article.find(".//PMID")pmid = pmid_elem.text if pmid_elem is not None else None-+if pmid is None:continue-+# Find abstract textabstract_text = ""abstract_elem = article.find(".//AbstractText")-+if abstract_elem is not None:abstract_text = abstract_elem.text or ""-+# Some abstracts are split into multiple sectionsfor section in article.findall(".//AbstractText"):# Get section label if it existslabel = section.get("Label")section_text = section.text or ""-+if label and section_text:if abstract_text:abstract_text += f"\n\n{label}: {section_text}"@@ -600,30 +682,30 @@ The default assumption should be that medical and scientific queries want RECENTabstract_text += f"\n\n{section_text}"else:abstract_text = section_text-+# Store in dictionaryif pmid and abstract_text:abstracts[pmid] = abstract_text-+return abstracts-+except Exception as e:logger.error(f"Error getting article abstracts: {e}")return {}-+def _find_pmc_ids(self, pmid_list: List[str]) -> Dict[str, str]:"""Find PMC IDs for the given PubMed IDs (for full-text access).-+Args:pmid_list: List of PubMed IDs-+Returns:Dictionary mapping PubMed IDs to their PMC IDs (if available)"""if not pmid_list or not self.get_full_text:return {}-+try:# Prepare parametersparams = {@@ -631,89 +713,84 @@ The default assumption should be that medical and scientific queries want RECENT"db": "pmc","linkname": "pubmed_pmc","id": ",".join(pmid_list),- "retmode": "json"+ "retmode": "json",}-+# Add API key if availableif self.api_key:params["api_key"] = self.api_key-+# Execute requestresponse = requests.get(self.link_url, params=params)response.raise_for_status()-+# Parse responsedata = response.json()-+# Map PubMed IDs to PMC IDspmid_to_pmcid = {}-+for linkset in data.get("linksets", []):pmid = linkset.get("ids", [None])[0]-+if not pmid:continue-+for link in linkset.get("linksetdbs", []):if link.get("linkname") == "pubmed_pmc":pmcids = link.get("links", [])if pmcids:pmid_to_pmcid[str(pmid)] = f"PMC{pmcids[0]}"-+logger.info(f"Found {len(pmid_to_pmcid)} PMC IDs for full-text access")return pmid_to_pmcid-+except Exception as e:logger.error(f"Error finding PMC IDs: {e}")return {}-+def _get_pmc_full_text(self, pmcid: str) -> str:"""Get full text for a PMC article.-+Args:pmcid: PMC ID of the article-+Returns:Full text content or empty string if not available"""try:# Prepare parameters- params = {- "db": "pmc",- "id": pmcid,- "retmode": "xml",- "rettype": "full"- }-+ params = {"db": "pmc", "id": pmcid, "retmode": "xml", "rettype": "full"}+# Add API key if availableif self.api_key:params["api_key"] = self.api_key-+# Execute requestresponse = requests.get(self.fetch_url, params=params)response.raise_for_status()-+# Parse XML responseroot = ET.fromstring(response.text)-+# Extract full textfull_text = []-+# Extract article titletitle_elem = root.find(".//article-title")if title_elem is not None and title_elem.text:full_text.append(f"# {title_elem.text}")-+# Extract abstractabstract_paras = root.findall(".//abstract//p")if abstract_paras:full_text.append("\n## Abstract\n")for p in abstract_paras:- text = ''.join(p.itertext())+ text = "".join(p.itertext())if text:full_text.append(text)-+# Extract body contentbody = root.find(".//body")if body is not None:@@ -722,37 +799,37 @@ The default assumption should be that medical and scientific queries want RECENTtitle = section.find(".//title")if title is not None and title.text:full_text.append(f"\n## {title.text}\n")-+# Get paragraphsfor p in section.findall(".//p"):- text = ''.join(p.itertext())+ text = "".join(p.itertext())if text:full_text.append(text)-+return "\n\n".join(full_text)-+except Exception as e:logger.error(f"Error getting PMC full text: {e}")return ""-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information for PubMed articles.-+Args:query: The search query-+Returns:List of preview dictionaries"""logger.info(f"Getting PubMed previews for query: {query}")-+# Optimize the query for PubMed if LLM is availableoptimized_query = self._optimize_query_for_pubmed(query)-+# Perform adaptive searchpmid_list, strategy = self._adaptive_search(optimized_query)-+# If no results, try a simplified queryif not pmid_list:logger.warning(f"No PubMed results found using strategy: {strategy}")@@ -762,17 +839,17 @@ The default assumption should be that medical and scientific queries want RECENTpmid_list, strategy = self._adaptive_search(simplified_query)if pmid_list:logger.info(f"Simplified query found {len(pmid_list)} results")-+if not pmid_list:- logger.warning(f"No PubMed results found after query simplification")+ logger.warning("No PubMed results found after query simplification")return []-+# Get article summariessummaries = self._get_article_summaries(pmid_list)-+# Rate limit compliance (NCBI allows 10 requests per second with an API key, 3 without)time.sleep(0.1 if self.api_key else 0.33)-+# Format as previewspreviews = []for summary in summaries:@@ -781,7 +858,7 @@ The default assumption should be that medical and scientific queries want RECENTif len(authors_text) > 100:# Truncate long author listsauthors_text = authors_text[:97] + "..."-+# Create preview with basic informationpreview = {"id": summary["id"],@@ -794,73 +871,78 @@ The default assumption should be that medical and scientific queries want RECENT"doi": summary.get("doi", ""),"source": "PubMed","_pmid": summary["id"], # Store PMID for later use- "_search_strategy": strategy # Store search strategy for analytics+ "_search_strategy": strategy, # Store search strategy for analytics}-+previews.append(preview)-+logger.info(f"Found {len(previews)} PubMed previews using strategy: {strategy}")return previews-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant PubMed articles.Efficiently manages which content to retrieve (abstracts and/or full text).-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""# Check if we should add full content- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:+ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Snippet-only mode, skipping full content retrieval")return relevant_items-+logger.info(f"Getting content for {len(relevant_items)} PubMed articles")-+# Collect all PMIDs for relevant itemspmids = []for item in relevant_items:if "_pmid" in item:pmids.append(item["_pmid"])-+# Get abstracts if requested and PMIDs existabstracts = {}if self.get_abstracts and pmids:abstracts = self._get_article_abstracts(pmids)-+# Find PMC IDs for full-text retrieval (if enabled)pmid_to_pmcid = {}if self.get_full_text and pmids:pmid_to_pmcid = self._find_pmc_ids(pmids)-+# Add content to resultsresults = []for item in relevant_items:result = item.copy()pmid = item.get("_pmid", "")-+# Add abstract if availableif pmid in abstracts:result["abstract"] = abstracts[pmid]-+# Use abstract as content if no full textif pmid not in pmid_to_pmcid:result["full_content"] = abstracts[pmid]result["content"] = abstracts[pmid]result["content_type"] = "abstract"-+# Add full text for a limited number of top articles- if (pmid in pmid_to_pmcid and- self.get_full_text and- len([r for r in results if r.get("content_type") == "full_text"]) < self.full_text_limit):-+ if (+ pmid in pmid_to_pmcid+ and self.get_full_text+ and len([r for r in results if r.get("content_type") == "full_text"])+ < self.full_text_limit+ ):+# Get full text contentpmcid = pmid_to_pmcid[pmid]full_text = self._get_pmc_full_text(pmcid)-+if full_text:result["full_content"] = full_textresult["content"] = full_text@@ -871,120 +953,128 @@ The default assumption should be that medical and scientific queries want RECENTresult["full_content"] = abstracts[pmid]result["content"] = abstracts[pmid]result["content_type"] = "abstract"-+# Remove temporary fieldsif "_pmid" in result:del result["_pmid"]if "_search_strategy" in result:del result["_search_strategy"]-+results.append(result)-+return results-- def search_by_author(self, author_name: str, max_results: Optional[int] = None) -> List[Dict[str, Any]]:++ def search_by_author(+ self, author_name: str, max_results: Optional[int] = None+ ) -> List[Dict[str, Any]]:"""Search for articles by a specific author.-+Args:author_name: Name of the authormax_results: Maximum number of results (defaults to self.max_results)-+Returns:List of articles by the author"""original_max_results = self.max_results-+try:if max_results:self.max_results = max_results-+query = f"{author_name}[Author]"return self.run(query)-+finally:# Restore original valueself.max_results = original_max_results-- def search_by_journal(self, journal_name: str, max_results: Optional[int] = None) -> List[Dict[str, Any]]:++ def search_by_journal(+ self, journal_name: str, max_results: Optional[int] = None+ ) -> List[Dict[str, Any]]:"""Search for articles in a specific journal.-+Args:journal_name: Name of the journalmax_results: Maximum number of results (defaults to self.max_results)-+Returns:List of articles from the journal"""original_max_results = self.max_results-+try:if max_results:self.max_results = max_results-+query = f"{journal_name}[Journal]"return self.run(query)-+finally:# Restore original valueself.max_results = original_max_results-- def search_recent(self, query: str, days: int = 30, max_results: Optional[int] = None) -> List[Dict[str, Any]]:++ def search_recent(+ self, query: str, days: int = 30, max_results: Optional[int] = None+ ) -> List[Dict[str, Any]]:"""Search for recent articles matching the query.-+Args:query: The search querydays: Number of days to look backmax_results: Maximum number of results (defaults to self.max_results)-+Returns:List of recent articles matching the query"""original_max_results = self.max_resultsoriginal_days_limit = self.days_limit-+try:if max_results:self.max_results = max_results-+# Set days limit for this searchself.days_limit = days-+return self.run(query)-+finally:# Restore original valuesself.max_results = original_max_resultsself.days_limit = original_days_limit-- def advanced_search(self, terms: Dict[str, str], max_results: Optional[int] = None) -> List[Dict[str, Any]]:++ def advanced_search(+ self, terms: Dict[str, str], max_results: Optional[int] = None+ ) -> List[Dict[str, Any]]:"""Perform an advanced search with field-specific terms.-+Args:terms: Dictionary mapping fields to search termsValid fields: Author, Journal, Title, MeSH, Affiliation, etc.max_results: Maximum number of results (defaults to self.max_results)-+Returns:List of articles matching the advanced query"""original_max_results = self.max_results-+try:if max_results:self.max_results = max_results-+# Build advanced query stringquery_parts = []for field, term in terms.items():query_parts.append(f"{term}[{field}]")-+query = " AND ".join(query_parts)return self.run(query)-+finally:# Restore original value- self.max_results = original_max_results\ No newline at end of file+ self.max_results = original_max_resultsdiff --git a/src/local_deep_research/web_search_engines/engines/search_engine_searxng.py b/src/local_deep_research/web_search_engines/engines/search_engine_searxng.pyindex 2ce16218d1..0ef4c9eb07 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_searxng.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_searxng.py@@ -1,42 +1,45 @@-import requestsimport loggingimport os-from typing import Dict, List, Any, Optional-from langchain_core.language_models import BaseLLMimport time-import json+from typing import Any, Dict, List, Optional++import requests+from langchain_core.language_models import BaseLLM-from web_search_engines.search_engine_base import BaseSearchEngine-from web_search_engines.engines.full_search import FullSearchResults-import config+from ... import config+from ..search_engine_base import BaseSearchEngine+from .full_search import FullSearchResults# Setup logginglogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)+class SearXNGSearchEngine(BaseSearchEngine):"""SearXNG search engine implementation that requires an instance URL provided viaenvironment variable or configuration. Designed for ethical usage with properrate limiting and single-instance approach."""-- def __init__(self,- max_results: int = 15,- instance_url: Optional[str] = None, # Can be None if using env var- categories: Optional[List[str]] = None,- engines: Optional[List[str]] = None,- language: str = "en",- safe_search: int = 1,- time_range: Optional[str] = None,- delay_between_requests: float = 2.0,- llm: Optional[BaseLLM] = None,- max_filtered_results: Optional[int] = None,- include_full_content: bool = True,- api_key: Optional[str] = None): # API key is actually the instance URL++ def __init__(+ self,+ max_results: int = 15,+ instance_url: Optional[str] = None, # Can be None if using env var+ categories: Optional[List[str]] = None,+ engines: Optional[List[str]] = None,+ language: str = "en",+ safe_search: int = 1,+ time_range: Optional[str] = None,+ delay_between_requests: float = 2.0,+ llm: Optional[BaseLLM] = None,+ max_filtered_results: Optional[int] = None,+ include_full_content: bool = True,+ api_key: Optional[str] = None,+ ): # API key is actually the instance URL"""Initialize the SearXNG search engine with ethical usage patterns.-+Args:max_results: Maximum number of search resultsinstance_url: URL of your SearXNG instance (preferably self-hosted)@@ -53,48 +56,62 @@ class SearXNGSearchEngine(BaseSearchEngine):"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)-+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )+# Get instance URL from various sources in priority order:# 1. api_key parameter (which is actually the instance URL)# 2. SEARXNG_INSTANCE environment variable# 3. instance_url parameter# 4. Default to None, which will disable the engineself.instance_url = api_key or os.getenv("SEARXNG_INSTANCE") or instance_url-+# Add debug logging for instance URL- logger.info(f"SearXNG init - Instance URL sources: api_key={api_key}, env={os.getenv('SEARXNG_INSTANCE')}, param={instance_url}")-+ logger.info(+ f"SearXNG init - Instance URL sources: api_key={api_key}, env={os.getenv('SEARXNG_INSTANCE')}, param={instance_url}"+ )+# Validate and normalize the instance URL if providedif self.instance_url:- self.instance_url = self.instance_url.rstrip('/')+ self.instance_url = self.instance_url.rstrip("/")self.is_available = Truelogger.info(f"SearXNG initialized with instance URL: {self.instance_url}")else:self.is_available = False- logger.error("No SearXNG instance URL provided. The engine is disabled. "- "Set SEARXNG_INSTANCE environment variable or provide instance_url parameter.")-+ logger.error(+ "No SearXNG instance URL provided. The engine is disabled. "+ "Set SEARXNG_INSTANCE environment variable or provide instance_url parameter."+ )+# Add debug logging for all parameters- logger.info(f"SearXNG init params: max_results={max_results}, language={language}, "- f"max_filtered_results={max_filtered_results}, is_available={self.is_available}")-+ logger.info(+ f"SearXNG init params: max_results={max_results}, language={language}, "+ f"max_filtered_results={max_filtered_results}, is_available={self.is_available}"+ )+self.max_results = max_resultsself.categories = categories or ["general"]self.engines = enginesself.language = languageself.safe_search = safe_searchself.time_range = time_range-- self.delay_between_requests = float(os.getenv("SEARXNG_DELAY", delay_between_requests))-++ self.delay_between_requests = float(+ os.getenv("SEARXNG_DELAY", delay_between_requests)+ )+self.include_full_content = include_full_content-+if self.is_available:self.search_url = f"{self.instance_url}/search"- logger.info(f"SearXNG engine initialized with instance: {self.instance_url}")- logger.info(f"Rate limiting set to {self.delay_between_requests} seconds between requests")-+ logger.info(+ f"SearXNG engine initialized with instance: {self.instance_url}"+ )+ logger.info(+ f"Rate limiting set to {self.delay_between_requests} seconds between requests"+ )+self.full_search = FullSearchResults(llm=llm,web_search=self,@@ -102,56 +119,63 @@ class SearXNGSearchEngine(BaseSearchEngine):max_results=max_results,region="wt-wt",time="y",- safesearch="Moderate" if safe_search == 1 else "Off" if safe_search == 0 else "Strict"+ safesearch=(+ "Moderate"+ if safe_search == 1+ else "Off" if safe_search == 0 else "Strict"+ ),)-+self.last_request_time = 0-+def _respect_rate_limit(self):"""Apply self-imposed rate limiting between requests"""current_time = time.time()time_since_last_request = current_time - self.last_request_time-if time_since_last_request < self.delay_between_requests:wait_time = self.delay_between_requests - time_since_last_requestlogger.info(f"Rate limiting: waiting {wait_time:.2f} seconds")time.sleep(wait_time)-+self.last_request_time = time.time()-+def _get_search_results(self, query: str) -> List[Dict[str, Any]]:"""Get search results from SearXNG with ethical rate limiting.-+Args:query: The search query-+Returns:List of search results from SearXNG"""if not self.is_available:- logger.error("SearXNG engine is disabled (no instance URL provided) - cannot run search")+ logger.error(+ "SearXNG engine is disabled (no instance URL provided) - cannot run search"+ )return []-+logger.info(f"SearXNG running search for query: {query}")-+try:self._respect_rate_limit()-+initial_headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",- "Accept-Language": "en-US,en;q=0.9"+ "Accept-Language": "en-US,en;q=0.9",}-+try:- initial_response = requests.get(self.instance_url, headers=initial_headers, timeout=10)+ initial_response = requests.get(+ self.instance_url, headers=initial_headers, timeout=10+ )cookies = initial_response.cookiesexcept Exception as e:logger.warning(f"Failed to get initial cookies: {e}")cookies = None-+params = {"q": query,"categories": ",".join(self.categories),@@ -159,15 +183,15 @@ class SearXNGSearchEngine(BaseSearchEngine):"format": "html", # Use HTML format instead of JSON"pageno": 1,"safesearch": self.safe_search,- "count": self.max_results+ "count": self.max_results,}-+if self.engines:params["engines"] = ",".join(self.engines)-+if self.time_range:params["time_range"] = self.time_range-+# Browser-like headersheaders = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",@@ -175,91 +199,105 @@ class SearXNGSearchEngine(BaseSearchEngine):"Accept-Language": "en-US,en;q=0.9","Referer": self.instance_url + "/","Connection": "keep-alive",- "Upgrade-Insecure-Requests": "1"+ "Upgrade-Insecure-Requests": "1",}-+logger.info(f"Sending request to SearXNG instance at {self.instance_url}")response = requests.get(self.search_url,params=params,headers=headers,cookies=cookies,- timeout=15+ timeout=15,)-+if response.status_code == 200:try:from bs4 import BeautifulSoup-- soup = BeautifulSoup(response.text, 'html.parser')++ soup = BeautifulSoup(response.text, "html.parser")results = []-- result_elements = soup.select('.result-item')-++ result_elements = soup.select(".result-item")+if not result_elements:- result_elements = soup.select('.result')-+ result_elements = soup.select(".result")+if not result_elements:- result_elements = soup.select('article')-+ result_elements = soup.select("article")+if not result_elements:- logger.debug(f"Classes found in HTML: {[c['class'] for c in soup.select('[class]') if 'class' in c.attrs][:10]}")+ logger.debug(+ f"Classes found in HTML: {[c['class'] for c in soup.select('[class]') if 'class' in c.attrs][:10]}"+ )result_elements = soup.select('div[id^="result"]')-+logger.info(f"Found {len(result_elements)} search result elements")-+for idx, result_element in enumerate(result_elements):if idx >= self.max_results:break-+title_element = (- result_element.select_one('.result-title') or- result_element.select_one('.title') or- result_element.select_one('h3') or- result_element.select_one('a[href]')+ result_element.select_one(".result-title")+ or result_element.select_one(".title")+ or result_element.select_one("h3")+ or result_element.select_one("a[href]"))-+url_element = (- result_element.select_one('.result-url') or- result_element.select_one('.url') or- result_element.select_one('a[href]')+ result_element.select_one(".result-url")+ or result_element.select_one(".url")+ or result_element.select_one("a[href]"))-+content_element = (- result_element.select_one('.result-content') or- result_element.select_one('.content') or- result_element.select_one('.snippet') or- result_element.select_one('p')+ result_element.select_one(".result-content")+ or result_element.select_one(".content")+ or result_element.select_one(".snippet")+ or result_element.select_one("p")+ )++ title = (+ title_element.get_text(strip=True) if title_element else "")-- title = title_element.get_text(strip=True) if title_element else ""-+url = ""- if url_element and url_element.has_attr('href'):- url = url_element['href']+ if url_element and url_element.has_attr("href"):+ url = url_element["href"]elif url_element:url = url_element.get_text(strip=True)-- content = content_element.get_text(strip=True) if content_element else ""-- if not url and title_element and title_element.has_attr('href'):- url = title_element['href']-- logger.debug(f"Extracted result {idx}: title={title[:30]}..., url={url[:30]}..., content={content[:30]}...")-++ content = (+ content_element.get_text(strip=True)+ if content_element+ else ""+ )++ if not url and title_element and title_element.has_attr("href"):+ url = title_element["href"]++ logger.debug(+ f"Extracted result {idx}: title={title[:30]}..., url={url[:30]}..., content={content[:30]}..."+ )+# Add to results if we have at least a title or URLif title or url:- results.append({- "title": title,- "url": url,- "content": content,- "engine": "searxng",- "category": "general"- })-- logger.info(f"SearXNG returned {len(results)} results from HTML parsing")+ results.append(+ {+ "title": title,+ "url": url,+ "content": content,+ "engine": "searxng",+ "category": "general",+ }+ )++ logger.info(+ f"SearXNG returned {len(results)} results from HTML parsing"+ )return results-+except ImportError:logger.error("BeautifulSoup not available for HTML parsing")return []@@ -269,123 +307,129 @@ class SearXNGSearchEngine(BaseSearchEngine):else:logger.error(f"SearXNG returned status code {response.status_code}")return []-+except Exception as e:logger.error(f"Error getting SearXNG results: {e}")return []-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information for SearXNG search results.-+Args:query: The search query-+Returns:List of preview dictionaries"""if not self.is_available:logger.warning("SearXNG engine is disabled (no instance URL provided)")return []-+logger.info(f"Getting SearXNG previews for query: {query}")-+results = self._get_search_results(query)-+if not results:logger.warning(f"No SearXNG results found for query: {query}")return []-+previews = []for i, result in enumerate(results):title = result.get("title", "")url = result.get("url", "")content = result.get("content", "")-+preview = {"id": url or f"searxng-result-{i}","title": title,"link": url,"snippet": content,"engine": result.get("engine", ""),- "category": result.get("category", "")+ "category": result.get("category", ""),}-+previews.append(preview)-+return previews-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant search results.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""if not self.is_available:return relevant_items-- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:++ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Snippet-only mode, skipping full content retrieval")return relevant_items-+logger.info("Retrieving full webpage content")-+try:results_with_content = self.full_search._get_full_content(relevant_items)return results_with_content-+except Exception as e:logger.error(f"Error retrieving full content: {e}")return relevant_items-+def invoke(self, query: str) -> List[Dict[str, Any]]:"""Compatibility method for LangChain tools"""return self.run(query)-- def results(self, query: str, max_results: Optional[int] = None) -> List[Dict[str, Any]]:++ def results(+ self, query: str, max_results: Optional[int] = None+ ) -> List[Dict[str, Any]]:"""Get search results in a format compatible with other search engines.-+Args:query: The search querymax_results: Optional override for maximum results-+Returns:List of search result dictionaries"""if not self.is_available:return []-+original_max_results = self.max_results-+try:if max_results is not None:self.max_results = max_results-+results = self._get_search_results(query)-+formatted_results = []for result in results:- formatted_results.append({- "title": result.get("title", ""),- "link": result.get("url", ""),- "snippet": result.get("content", "")- })-+ formatted_results.append(+ {+ "title": result.get("title", ""),+ "link": result.get("url", ""),+ "snippet": result.get("content", ""),+ }+ )+return formatted_results-+finally:self.max_results = original_max_results-+@staticmethoddef get_self_hosting_instructions() -> str:"""Get instructions for self-hosting a SearXNG instance.-+Returns:String with installation instructions"""@@ -441,15 +485,17 @@ https://searxng.github.io/searxng/admin/installation.htmlOverride BaseSearchEngine run method to add SearXNG-specific error handling."""if not self.is_available:- logger.error("SearXNG run method called but engine is not available (missing instance URL)")+ logger.error(+ "SearXNG run method called but engine is not available (missing instance URL)"+ )return []-+logger.info(f"SearXNG run method called with query: {query}")-+try:# Call the parent class's run methodreturn super().run(query)except Exception as e:logger.error(f"Error in SearXNG run method: {str(e)}")# Return empty results on error- return []\ No newline at end of file+ return []diff --git a/src/local_deep_research/web_search_engines/engines/search_engine_semantic_scholar.py b/src/local_deep_research/web_search_engines/engines/search_engine_semantic_scholar.pyindex 1c79372a7b..6d0e4dfa0b 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_semantic_scholar.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_semantic_scholar.py@@ -1,46 +1,50 @@-import requestsimport logging-from typing import Dict, List, Any, Optional, Tuple-from langchain_core.language_models import BaseLLM-import timeimport re+import time+from typing import Any, Dict, List, Optional, Tuple++import requests+from langchain_core.language_models import BaseLLMfrom requests.adapters import HTTPAdapterfrom urllib3.util import Retry-from ..search_engine_base import BaseSearchEnginefrom ... import config+from ..search_engine_base import BaseSearchEngine# Setup logginglogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)+class SemanticScholarSearchEngine(BaseSearchEngine):"""Semantic Scholar search engine implementation with two-phase approach.Provides efficient access to scientific literature across all fields."""-- def __init__(self,- max_results: int = 10,- api_key: Optional[str] = None,- year_range: Optional[Tuple[int, int]] = None,- get_abstracts: bool = True,- get_references: bool = False,- get_citations: bool = False,- get_embeddings: bool = False,- get_tldr: bool = True,- citation_limit: int = 10,- reference_limit: int = 10,- llm: Optional[BaseLLM] = None,- max_filtered_results: Optional[int] = None,- optimize_queries: bool = True,- max_retries: int = 5,- retry_backoff_factor: float = 1.0,- fields_of_study: Optional[List[str]] = None,- publication_types: Optional[List[str]] = None):++ def __init__(+ self,+ max_results: int = 10,+ api_key: Optional[str] = None,+ year_range: Optional[Tuple[int, int]] = None,+ get_abstracts: bool = True,+ get_references: bool = False,+ get_citations: bool = False,+ get_embeddings: bool = False,+ get_tldr: bool = True,+ citation_limit: int = 10,+ reference_limit: int = 10,+ llm: Optional[BaseLLM] = None,+ max_filtered_results: Optional[int] = None,+ optimize_queries: bool = True,+ max_retries: int = 5,+ retry_backoff_factor: float = 1.0,+ fields_of_study: Optional[List[str]] = None,+ publication_types: Optional[List[str]] = None,+ ):"""Initialize the Semantic Scholar search engine.-+Args:max_results: Maximum number of search resultsapi_key: Semantic Scholar API key for higher rate limits (optional)@@ -61,8 +65,10 @@ class SemanticScholarSearchEngine(BaseSearchEngine):publication_types: List of publication types to filter results"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)-+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )+self.api_key = api_keyself.year_range = year_rangeself.get_abstracts = get_abstracts@@ -77,71 +83,76 @@ class SemanticScholarSearchEngine(BaseSearchEngine):self.retry_backoff_factor = retry_backoff_factorself.fields_of_study = fields_of_studyself.publication_types = publication_types-+# Base API URLsself.base_url = "https://api.semanticscholar.org/graph/v1"self.paper_search_url = f"{self.base_url}/paper/search"self.paper_details_url = f"{self.base_url}/paper"-+# Create a session with retry capabilitiesself.session = self._create_session()-+# Rate limitingself.rate_limit_wait = 1.0 # Default 1 second between requestsself.last_request_time = 0-+def _create_session(self) -> requests.Session:"""Create and configure a requests session with retry capabilities"""session = requests.Session()-+# Configure automatic retries with exponential backoffretry_strategy = Retry(total=self.max_retries,backoff_factor=self.retry_backoff_factor,status_forcelist=[429, 500, 502, 503, 504],- allowed_methods={"HEAD", "GET", "POST", "OPTIONS"}+ allowed_methods={"HEAD", "GET", "POST", "OPTIONS"},)-+adapter = HTTPAdapter(max_retries=retry_strategy)session.mount("https://", adapter)-+# Set up headersheaders = {"Accept": "application/json"}if self.api_key:headers["x-api-key"] = self.api_key-+session.headers.update(headers)-+return session-+def _respect_rate_limit(self):"""Apply rate limiting between requests"""current_time = time.time()elapsed = current_time - self.last_request_time-+if elapsed < self.rate_limit_wait:wait_time = self.rate_limit_wait - elapsedlogger.debug(f"Rate limiting: waiting {wait_time:.2f}s")time.sleep(wait_time)-+self.last_request_time = time.time()-- def _make_request(self, url: str, params: Optional[Dict] = None, data: Optional[Dict] = None,- method: str = "GET") -> Dict:++ def _make_request(+ self,+ url: str,+ params: Optional[Dict] = None,+ data: Optional[Dict] = None,+ method: str = "GET",+ ) -> Dict:"""Make a request to the Semantic Scholar API.-+Args:url: API endpoint URLparams: Query parametersdata: JSON data for POST requestsmethod: HTTP method (GET or POST)-+Returns:API response as dictionary"""self._respect_rate_limit()-+try:if method.upper() == "GET":response = self.session.get(url, params=params, timeout=30)@@ -149,34 +160,34 @@ class SemanticScholarSearchEngine(BaseSearchEngine):response = self.session.post(url, params=params, json=data, timeout=30)else:raise ValueError(f"Unsupported HTTP method: {method}")-+# Handle rate limiting manually if retry strategy failsif response.status_code == 429:logger.warning("Rate limit exceeded, waiting and retrying...")time.sleep(2.0) # Wait longer on rate limitself.rate_limit_wait *= 1.5 # Increase wait time for future requestsreturn self._make_request(url, params, data, method) # Retry-+response.raise_for_status()return response.json()except requests.RequestException as e:logger.error(f"API request failed: {e}")return {}-+def _optimize_query(self, query: str) -> str:"""Optimize a natural language query for Semantic Scholar search.If LLM is available, uses it to extract key terms and concepts.-+Args:query: Natural language query-+Returns:Optimized query string"""if not self.llm or not self.optimize_queries:return query-+try:prompt = f"""Transform this natural language question into an optimized academic search query.@@ -196,113 +207,121 @@ EXAMPLE TRANSFORMATIONS:Return ONLY the optimized search query with no explanation."""-+response = self.llm.invoke(prompt)optimized_query = response.content.strip()-+# Clean up the query - remove any explanations- lines = optimized_query.split('\n')+ lines = optimized_query.split("\n")optimized_query = lines[0].strip()-+# Safety check - if query looks too much like an explanation, use originalif len(optimized_query.split()) > 15 or ":" in optimized_query:- logger.warning("Query optimization result looks too verbose, using original")+ logger.warning(+ "Query optimization result looks too verbose, using original"+ )return query-+logger.info(f"Original query: '{query}'")logger.info(f"Optimized for search: '{optimized_query}'")-+return optimized_queryexcept Exception as e:logger.error(f"Error optimizing query: {e}")return query # Fall back to original query on error-+def _direct_search(self, query: str) -> List[Dict[str, Any]]:"""Make a direct search request to the Semantic Scholar API.-+Args:query: The search query-+Returns:List of paper dictionaries"""try:# Configure fields to retrievefields = [- "paperId",- "externalIds",- "url",- "title",- "abstract",- "venue",- "year",- "authors"+ "paperId",+ "externalIds",+ "url",+ "title",+ "abstract",+ "venue",+ "year",+ "authors",]-+if self.get_tldr:fields.append("tldr")-+params = {"query": query,"limit": min(self.max_results, 100), # API limit is 100 per request- "fields": ",".join(fields)+ "fields": ",".join(fields),}-+# Add year filter if specifiedif self.year_range:start_year, end_year = self.year_rangeparams["year"] = f"{start_year}-{end_year}"-+# Add fields of study filter if specifiedif self.fields_of_study:params["fieldsOfStudy"] = ",".join(self.fields_of_study)-+# Add publication types filter if specifiedif self.publication_types:params["publicationTypes"] = ",".join(self.publication_types)-+response = self._make_request(self.paper_search_url, params)-+if "data" in response:papers = response["data"]- logger.info(f"Found {len(papers)} papers with direct search for query: '{query}'")+ logger.info(+ f"Found {len(papers)} papers with direct search for query: '{query}'"+ )return paperselse:- logger.warning(f"No data in response for direct search query: '{query}'")+ logger.warning(+ f"No data in response for direct search query: '{query}'"+ )return []-+except Exception as e:logger.error(f"Error in direct search: {e}")return []-+def _adaptive_search(self, query: str) -> Tuple[List[Dict[str, Any]], str]:"""Perform an adaptive search that adjusts based on result volume.Uses LLM to generate better fallback queries when available.-+Args:query: The search query-+Returns:Tuple of (list of paper results, search strategy used)"""# Start with a standard searchpapers = self._direct_search(query)strategy = "standard"-+# If no results, try different variationsif not papers:# Try removing quotes to broaden searchif '"' in query:- unquoted_query = query.replace('"', '')- logger.info(f"No results with quoted terms, trying without quotes: {unquoted_query}")+ unquoted_query = query.replace('"', "")+ logger.info(+ f"No results with quoted terms, trying without quotes: {unquoted_query}"+ )papers = self._direct_search(unquoted_query)-+if papers:strategy = "unquoted"return papers, strategy-+# If LLM is available, use it to generate better fallback queriesif self.llm:try:@@ -323,99 +342,107 @@ Format each query on a new line with no numbering or explanation. Keep each quer"""# Get the LLM's responseresponse = self.llm.invoke(prompt)-+# Extract the alternative queriesalt_queries = []- if hasattr(response, 'content'): # Handle various LLM response formats+ if hasattr(+ response, "content"+ ): # Handle various LLM response formatscontent = response.content- alt_queries = [q.strip() for q in content.strip().split('\n') if q.strip()]+ alt_queries = [+ q.strip() for q in content.strip().split("\n") if q.strip()+ ]elif isinstance(response, str):- alt_queries = [q.strip() for q in response.strip().split('\n') if q.strip()]-+ alt_queries = [+ q.strip() for q in response.strip().split("\n") if q.strip()+ ]+# Try each alternative queryfor alt_query in alt_queries[:3]: # Limit to first 3 alternativeslogger.info(f"Trying LLM-suggested query: {alt_query}")alt_papers = self._direct_search(alt_query)-+if alt_papers:- logger.info(f"Found {len(alt_papers)} papers using LLM-suggested query: {alt_query}")+ logger.info(+ f"Found {len(alt_papers)} papers using LLM-suggested query: {alt_query}"+ )strategy = "llm_alternative"return alt_papers, strategyexcept Exception as e:logger.error(f"Error using LLM for query refinement: {e}")# Fall through to simpler strategies-+# Fallback: Try with the longest words (likely specific terms)- words = re.findall(r'\w+', query)+ words = re.findall(r"\w+", query)longer_words = [word for word in words if len(word) > 6]if longer_words:# Use up to 3 of the longest wordslonger_words = sorted(longer_words, key=len, reverse=True)[:3]- key_terms_query = ' '.join(longer_words)+ key_terms_query = " ".join(longer_words)logger.info(f"Trying with key terms: {key_terms_query}")papers = self._direct_search(key_terms_query)-+if papers:strategy = "key_terms"return papers, strategy-+# Final fallback: Try with just the longest wordif words:longest_word = max(words, key=len)if len(longest_word) > 5: # Only use if it's reasonably longlogger.info(f"Trying with single key term: {longest_word}")papers = self._direct_search(longest_word)-+if papers:strategy = "single_term"return papers, strategy-+return papers, strategy-+def _get_paper_details(self, paper_id: str) -> Dict[str, Any]:"""Get detailed information about a specific paper.-+Args:paper_id: Semantic Scholar Paper ID-+Returns:Dictionary with paper details"""try:# Construct fields parameterfields = [- "paperId",- "externalIds",- "corpusId",- "url",- "title",- "abstract",- "venue",- "year",- "authors",- "fieldsOfStudy"+ "paperId",+ "externalIds",+ "corpusId",+ "url",+ "title",+ "abstract",+ "venue",+ "year",+ "authors",+ "fieldsOfStudy",]-+if self.get_tldr:fields.append("tldr")-+if self.get_embeddings:fields.append("embedding")-+# Add citation and reference fields if requestedif self.get_citations:fields.append(f"citations.limit({self.citation_limit})")-+if self.get_references:fields.append(f"references.limit({self.reference_limit})")-+# Make the requesturl = f"{self.paper_details_url}/{paper_id}"params = {"fields": ",".join(fields)}-+return self._make_request(url, params)-+except Exception as e:logger.error(f"Error getting paper details for {paper_id}: {e}")return {}@@ -423,25 +450,25 @@ Format each query on a new line with no numbering or explanation. Keep each querdef _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information for Semantic Scholar papers.-+Args:query: The search query-+Returns:List of preview dictionaries"""logger.info(f"Getting Semantic Scholar previews for query: {query}")-+# Optimize the query if LLM is availableoptimized_query = self._optimize_query(query)-+# Use the adaptive search approachpapers, strategy = self._adaptive_search(optimized_query)-+if not papers:- logger.warning(f"No Semantic Scholar results found")+ logger.warning("No Semantic Scholar results found")return []-+# Format as previewspreviews = []for paper in papers:@@ -449,28 +476,34 @@ Format each query on a new line with no numbering or explanation. Keep each quer# Format authors - ensure we have a valid list with string valuesauthors = []if "authors" in paper and paper["authors"]:- authors = [author.get("name", "") for author in paper["authors"] if author and author.get("name")]-+ authors = [+ author.get("name", "")+ for author in paper["authors"]+ if author and author.get("name")+ ]+# Ensure we have valid strings for all fieldspaper_id = paper.get("paperId", "")title = paper.get("title", "")url = paper.get("url", "")-+# Handle abstract safely, ensuring we always have a stringabstract = paper.get("abstract")snippet = ""if abstract:- snippet = abstract[:250] + "..." if len(abstract) > 250 else abstract-+ snippet = (+ abstract[:250] + "..." if len(abstract) > 250 else abstract+ )+venue = paper.get("venue", "")year = paper.get("year")external_ids = paper.get("externalIds", {})-+# Handle TLDR safelytldr_text = ""if paper.get("tldr") and isinstance(paper.get("tldr"), dict):tldr_text = paper.get("tldr", {}).get("text", "")-+# Create preview with basic information, ensuring no None valuespreview = {"id": paper_id if paper_id else "",@@ -484,76 +517,82 @@ Format each query on a new line with no numbering or explanation. Keep each quer"source": "Semantic Scholar","_paper_id": paper_id if paper_id else "","_search_strategy": strategy,- "tldr": tldr_text+ "tldr": tldr_text,}-+# Store the full paper object for later referencepreview["_full_paper"] = paper-+previews.append(preview)except Exception as e:logger.error(f"Error processing paper preview: {e}")# Continue with the next paper-+# Sort by year (newer first) if availablepreviews = sorted(previews,key=lambda p: p.get("year", 0) if p.get("year") is not None else 0,- reverse=True+ reverse=True,+ )++ logger.info(+ f"Found {len(previews)} Semantic Scholar previews using strategy: {strategy}")-- logger.info(f"Found {len(previews)} Semantic Scholar previews using strategy: {strategy}")return previews-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant Semantic Scholar papers.Gets additional details like citations, references, and full metadata.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""# Check if we should add full content- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:+ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Snippet-only mode, skipping full content retrieval")return relevant_items-- logger.info(f"Getting content for {len(relevant_items)} Semantic Scholar papers")-++ logger.info(+ f"Getting content for {len(relevant_items)} Semantic Scholar papers"+ )+results = []for item in relevant_items:result = item.copy()paper_id = item.get("_paper_id", "")-+# Skip if no paper IDif not paper_id:results.append(result)continue-+# Get paper details if citations or references are requestedif self.get_citations or self.get_references or self.get_embeddings:paper_details = self._get_paper_details(paper_id)-+if paper_details:# Add citation informationif self.get_citations and "citations" in paper_details:result["citations"] = paper_details["citations"]-+# Add reference informationif self.get_references and "references" in paper_details:result["references"] = paper_details["references"]-+# Add embedding if availableif self.get_embeddings and "embedding" in paper_details:result["embedding"] = paper_details["embedding"]-+# Add fields of studyif "fieldsOfStudy" in paper_details:result["fields_of_study"] = paper_details["fieldsOfStudy"]-+# Remove temporary fieldsif "_paper_id" in result:del result["_paper_id"]@@ -561,7 +600,7 @@ Format each query on a new line with no numbering or explanation. Keep each querdel result["_search_strategy"]if "_full_paper" in result:del result["_full_paper"]-+results.append(result)-- return results\ No newline at end of file++ return resultsdiff --git a/src/local_deep_research/web_search_engines/engines/search_engine_serpapi.py b/src/local_deep_research/web_search_engines/engines/search_engine_serpapi.pyindex 51b6a2f3f1..f243601b09 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_serpapi.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_serpapi.py@@ -1,31 +1,36 @@-from langchain_community.utilities import SerpAPIWrapper-from typing import Dict, List, Any, Optional+import loggingimport os+from typing import Any, Dict, List, Optional++from langchain_community.utilities import SerpAPIWrapperfrom langchain_core.language_models import BaseLLM-from ..search_engine_base import BaseSearchEnginefrom ... import config-import logging+from ..search_engine_base import BaseSearchEngine+logger = logging.getLogger(__name__)+class SerpAPISearchEngine(BaseSearchEngine):"""Google search engine implementation using SerpAPI with two-phase approach"""- def __init__(self,- max_results: int = 10,- region: str = "us",- time_period: str = "y",- safe_search: bool = True,- search_language: str = "English",- api_key: Optional[str] = None,- language_code_mapping: Optional[Dict[str, str]] = None,- llm: Optional[BaseLLM] = None,- include_full_content: bool = False,- max_filtered_results: Optional[int] = None,- **kwargs):+ def __init__(+ self,+ max_results: int = 10,+ region: str = "us",+ time_period: str = "y",+ safe_search: bool = True,+ search_language: str = "English",+ api_key: Optional[str] = None,+ language_code_mapping: Optional[Dict[str, str]] = None,+ llm: Optional[BaseLLM] = None,+ include_full_content: bool = False,+ max_filtered_results: Optional[int] = None,+ **kwargs,+ ):"""Initialize the SerpAPI search engine.-+Args:max_results: Maximum number of search resultsregion: Region code for search results@@ -40,9 +45,11 @@ class SerpAPISearchEngine(BaseSearchEngine):**kwargs: Additional parameters (ignored but accepted for compatibility)"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )self.include_full_content = include_full_content-+# Set up language code mappingif language_code_mapping is None:language_code_mapping = {@@ -56,15 +63,17 @@ class SerpAPISearchEngine(BaseSearchEngine):"portuguese": "pt","russian": "ru",}-+# Get API keyserpapi_api_key = api_key or os.getenv("SERP_API_KEY")if not serpapi_api_key:- raise ValueError("SERP_API_KEY not found. Please provide api_key or set the SERP_API_KEY environment variable.")-+ raise ValueError(+ "SERP_API_KEY not found. Please provide api_key or set the SERP_API_KEY environment variable."+ )+# Get language codelanguage_code = language_code_mapping.get(search_language.lower(), "en")-+# Initialize SerpAPI wrapperself.engine = SerpAPIWrapper(serpapi_api_key=serpapi_api_key,@@ -75,14 +84,15 @@ class SerpAPISearchEngine(BaseSearchEngine):"safe": "active" if safe_search else "off","tbs": f"qdr:{time_period}","num": max_results,- }+ },)-+# If full content is requested, initialize FullSearchResultsif include_full_content:# Import FullSearchResults only if neededtry:- from .full_search import FullSearchResults+ from .full_search import FullSearchResults+self.full_search = FullSearchResults(llm=llm,web_search=self.engine,@@ -90,28 +100,30 @@ class SerpAPISearchEngine(BaseSearchEngine):max_results=max_results,region=region,time=time_period,- safesearch="Moderate" if safe_search else "Off"+ safesearch="Moderate" if safe_search else "Off",)except ImportError:- logger.warning("Warning: FullSearchResults not available. Full content retrieval disabled.")+ logger.warning(+ "Warning: FullSearchResults not available. Full content retrieval disabled."+ )self.include_full_content = False-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information from SerpAPI.-+Args:query: The search query-+Returns:List of preview dictionaries"""logger.info("Getting search results from SerpAPI")-+try:# Get search results from SerpAPIorganic_results = self.engine.results(query).get("organic_results", [])-+# Format results as previewspreviews = []for result in organic_results:@@ -121,39 +133,41 @@ class SerpAPISearchEngine(BaseSearchEngine):"link": result.get("link", ""),"snippet": result.get("snippet", ""),"displayed_link": result.get("displayed_link", ""),- "position": result.get("position")+ "position": result.get("position"),}-+# Store full SerpAPI result for laterpreview["_full_result"] = result-+previews.append(preview)-+# Store the previews for potential full content retrievalself._search_results = previews-+return previews-+except Exception as e:logger.error(f"Error getting SerpAPI results: {e}")return []-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant search results.If include_full_content is True and FullSearchResults is available,retrieves full webpage content for the results.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content if requested"""# Check if we should get full content- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:+ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Snippet-only mode, skipping full content retrieval")-+# Return the relevant items with their full SerpAPI informationresults = []for item in relevant_items:@@ -165,30 +179,29 @@ class SerpAPISearchEngine(BaseSearchEngine):del result["_full_result"]else:result = item-+results.append(result)-+return results-+# If full content retrieval is enabled- if self.include_full_content and hasattr(self, 'full_search'):+ if self.include_full_content and hasattr(self, "full_search"):logger.info("Retrieving full webpage content")-+try:- # Extract only the links from relevant items- links = [item.get("link") for item in relevant_items if item.get("link")]-# Use FullSearchResults to get full content# This is a simplified approach - in a real implementation,# you would need to fetch and process the URLs- results_with_content = self.full_search._get_full_content(relevant_items)-+ results_with_content = self.full_search._get_full_content(+ relevant_items+ )+return results_with_content-+except Exception as e:logger.info(f"Error retrieving full content: {e}")# Fall back to returning the items without full content-+# Return items with their full SerpAPI informationresults = []for item in relevant_items:@@ -202,28 +215,28 @@ class SerpAPISearchEngine(BaseSearchEngine):result = item.copy()if "_full_result" in result:del result["_full_result"]-+results.append(result)-+return results-+def run(self, query: str) -> List[Dict[str, Any]]:"""Execute a search using SerpAPI with the two-phase approach.-+Args:query: The search query-+Returns:List of search results"""logger.info("---Execute a search using SerpAPI (Google)---")-+# Use the implementation from the parent class which handles all phasesresults = super().run(query)-+# Clean up- if hasattr(self, '_search_results'):+ if hasattr(self, "_search_results"):del self._search_results-- return results\ No newline at end of file++ return resultsdiff --git a/src/local_deep_research/web_search_engines/engines/search_engine_wayback.py b/src/local_deep_research/web_search_engines/engines/search_engine_wayback.pyindex e7e9ff534c..153dcbb226 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_wayback.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_wayback.py@@ -1,34 +1,38 @@-import requestsimport logging-from typing import Dict, List, Any, Optional, Tuple-from langchain_core.language_models import BaseLLMimport reimport time+from typing import Any, Dict, List, Optional, Tuple-from ..search_engine_base import BaseSearchEngine-from ... import configimport justext+import requests+from langchain_core.language_models import BaseLLM++from ... import config+from ..search_engine_base import BaseSearchEngine# Setup logginglogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)+class WaybackSearchEngine(BaseSearchEngine):"""Internet Archive Wayback Machine search engine implementationProvides access to historical versions of web pages"""-- def __init__(self,- max_results: int = 10,- max_snapshots_per_url: int = 3,- llm: Optional[BaseLLM] = None,- language: str = "English",- max_filtered_results: Optional[int] = None,- closest_only: bool = False):++ def __init__(+ self,+ max_results: int = 10,+ max_snapshots_per_url: int = 3,+ llm: Optional[BaseLLM] = None,+ language: str = "English",+ max_filtered_results: Optional[int] = None,+ closest_only: bool = False,+ ):"""Initialize the Wayback Machine search engine.-+Args:max_results: Maximum number of search resultsmax_snapshots_per_url: Maximum snapshots to retrieve per URL@@ -38,48 +42,51 @@ class WaybackSearchEngine(BaseSearchEngine):closest_only: If True, only retrieves the closest snapshot for each URL"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )self.max_snapshots_per_url = max_snapshots_per_urlself.language = languageself.closest_only = closest_only-+# API endpointsself.available_api = "https://archive.org/wayback/available"self.cdx_api = "https://web.archive.org/cdx/search/cdx"-+def _extract_urls_from_query(self, query: str) -> List[str]:"""Extract URLs from a query string or interpret as an URL if possible.For non-URL queries, use a DuckDuckGo search to find relevant URLs.-+Args:query: The search query or URL-+Returns:List of URLs to search in the Wayback Machine"""# Check if the query is already a URL- url_pattern = re.compile(r'https?://(?:[-\w.]|(?:%[\da-fA-F]{2}))+')+ url_pattern = re.compile(r"https?://(?:[-\w.]|(?:%[\da-fA-F]{2}))+")urls = url_pattern.findall(query)-+if urls:logger.info(f"Found {len(urls)} URLs in query")return urls-+# Check if query is a domain without http prefix- domain_pattern = re.compile(r'^(?:[-\w.]|(?:%[\da-fA-F]{2}))+\.\w+$')+ domain_pattern = re.compile(r"^(?:[-\w.]|(?:%[\da-fA-F]{2}))+\.\w+$")if domain_pattern.match(query):logger.info(f"Query appears to be a domain: {query}")return [f"http://{query}"]-+# For non-URL queries, use DuckDuckGo to find relevant URLs- logger.info(f"Query is not a URL, using DuckDuckGo to find relevant URLs")+ logger.info("Query is not a URL, using DuckDuckGo to find relevant URLs")try:# Import DuckDuckGo search enginefrom langchain_community.utilities import DuckDuckGoSearchAPIWrapper+ddg = DuckDuckGoSearchAPIWrapper(max_results=5)results = ddg.results(query)-+# Extract URLs from resultsddg_urls = [result.get("link") for result in results if result.get("link")]if ddg_urls:@@ -87,7 +94,7 @@ class WaybackSearchEngine(BaseSearchEngine):return ddg_urlsexcept Exception as e:logger.error(f"Error using DuckDuckGo for URL discovery: {e}")-+# Fallback: treat the query as a potential domain or pathif "/" in query and "." in query:logger.info(f"Treating query as a partial URL: {query}")@@ -95,16 +102,16 @@ class WaybackSearchEngine(BaseSearchEngine):elif "." in query:logger.info(f"Treating query as a domain: {query}")return [f"http://{query}"]-+# Return empty list if nothing workedlogger.warning(f"Could not extract any URLs from query: {query}")return []-+def _format_timestamp(self, timestamp: str) -> str:"""Format Wayback Machine timestamp into readable date"""if len(timestamp) < 14:return timestamp-+try:year = timestamp[0:4]month = timestamp[4:6]@@ -113,43 +120,45 @@ class WaybackSearchEngine(BaseSearchEngine):minute = timestamp[10:12]second = timestamp[12:14]return f"{year}-{month}-{day} {hour}:{minute}:{second}"- except:+ except Exception:return timestamp-+def _get_wayback_snapshots(self, url: str) -> List[Dict[str, Any]]:"""Get snapshots from the Wayback Machine for a specific URL.-+Args:url: URL to get snapshots for-+Returns:List of snapshot dictionaries"""snapshots = []-+try:if self.closest_only:# Get only the closest snapshot- response = requests.get(- self.available_api,- params={"url": url}- )+ response = requests.get(self.available_api, params={"url": url})data = response.json()-- if "archived_snapshots" in data and "closest" in data["archived_snapshots"]:++ if (+ "archived_snapshots" in data+ and "closest" in data["archived_snapshots"]+ ):snapshot = data["archived_snapshots"]["closest"]snapshot_url = snapshot["url"]timestamp = snapshot["timestamp"]-- snapshots.append({- "timestamp": timestamp,- "formatted_date": self._format_timestamp(timestamp),- "url": snapshot_url,- "original_url": url,- "available": snapshot.get("available", True),- "status": snapshot.get("status", "200")- })++ snapshots.append(+ {+ "timestamp": timestamp,+ "formatted_date": self._format_timestamp(timestamp),+ "url": snapshot_url,+ "original_url": url,+ "available": snapshot.get("available", True),+ "status": snapshot.get("status", "200"),+ }+ )else:# Get multiple snapshots using CDX APIresponse = requests.get(@@ -159,68 +168,70 @@ class WaybackSearchEngine(BaseSearchEngine):"output": "json","fl": "timestamp,original,statuscode,mimetype","collapse": "timestamp:4", # Group by year- "limit": self.max_snapshots_per_url- }+ "limit": self.max_snapshots_per_url,+ },)-+# Check if response is valid JSONdata = response.json()-+# First item is the headerif len(data) > 1:headers = data[0]for item in data[1:]:snapshot = dict(zip(headers, item))timestamp = snapshot.get("timestamp", "")-+wayback_url = f"https://web.archive.org/web/{timestamp}/{url}"-- snapshots.append({- "timestamp": timestamp,- "formatted_date": self._format_timestamp(timestamp),- "url": wayback_url,- "original_url": url,- "available": True,- "status": snapshot.get("statuscode", "200")- })-++ snapshots.append(+ {+ "timestamp": timestamp,+ "formatted_date": self._format_timestamp(timestamp),+ "url": wayback_url,+ "original_url": url,+ "available": True,+ "status": snapshot.get("statuscode", "200"),+ }+ )+# Limit to max snapshots per URL- snapshots = snapshots[:self.max_snapshots_per_url]-+ snapshots = snapshots[: self.max_snapshots_per_url]+except Exception as e:logger.error(f"Error getting Wayback snapshots for {url}: {e}")-+return snapshots-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information for Wayback Machine snapshots.-+Args:query: The search query-+Returns:List of preview dictionaries"""logger.info(f"Getting Wayback Machine previews for query: {query}")-+# Extract URLs from queryurls = self._extract_urls_from_query(query)-+if not urls:logger.warning(f"No URLs found in query: {query}")return []-+# Get snapshots for each URLall_snapshots = []for url in urls:snapshots = self._get_wayback_snapshots(url)all_snapshots.extend(snapshots)-+# Respect rate limitsif len(urls) > 1:time.sleep(0.5)-+# Format as previewspreviews = []for snapshot in all_snapshots:@@ -231,20 +242,20 @@ class WaybackSearchEngine(BaseSearchEngine):"snippet": f"Archived version from {snapshot['formatted_date']}","original_url": snapshot["original_url"],"timestamp": snapshot["timestamp"],- "formatted_date": snapshot["formatted_date"]+ "formatted_date": snapshot["formatted_date"],}previews.append(preview)-+logger.info(f"Found {len(previews)} Wayback Machine snapshots")return previews-+def _remove_boilerplate(self, html: str) -> str:"""Remove boilerplate content from HTML.-+Args:html: HTML content-+Returns:Cleaned text content"""@@ -257,14 +268,14 @@ class WaybackSearchEngine(BaseSearchEngine):except Exception as e:logger.error(f"Error removing boilerplate: {e}")return html-+def _get_wayback_content(self, url: str) -> Tuple[str, str]:"""Retrieve content from a Wayback Machine URL.-+Args:url: Wayback Machine URL-+Returns:Tuple of (raw_html, cleaned_text)"""@@ -274,76 +285,82 @@ class WaybackSearchEngine(BaseSearchEngine):}response = requests.get(url, headers=headers, timeout=10)raw_html = response.text-+# Clean the HTMLcleaned_text = self._remove_boilerplate(raw_html)-+return raw_html, cleaned_textexcept Exception as e:logger.error(f"Error retrieving content from {url}: {e}")return "", f"Error retrieving content: {str(e)}"-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant Wayback Machine snapshots.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""# Check if we should add full content- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:+ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Snippet-only mode, skipping full content retrieval")return relevant_items-- logger.info(f"Getting full content for {len(relevant_items)} Wayback Machine snapshots")-++ logger.info(+ f"Getting full content for {len(relevant_items)} Wayback Machine snapshots"+ )+results = []for item in relevant_items:wayback_url = item.get("link")if not wayback_url:results.append(item)continue-+logger.info(f"Retrieving content from {wayback_url}")-+try:# Retrieve contentraw_html, full_content = self._get_wayback_content(wayback_url)-+# Add full content to the resultresult = item.copy()result["raw_html"] = raw_htmlresult["full_content"] = full_content-+results.append(result)-+# Brief pause for rate limitingtime.sleep(0.5)except Exception as e:logger.error(f"Error processing {wayback_url}: {e}")results.append(item)-+return results-- def search_by_url(self, url: str, max_snapshots: int = None) -> List[Dict[str, Any]]:++ def search_by_url(+ self, url: str, max_snapshots: int = None+ ) -> List[Dict[str, Any]]:"""Search for archived versions of a specific URL.-+Args:url: The URL to search for archivesmax_snapshots: Maximum number of snapshots to return-+Returns:List of snapshot dictionaries"""max_snapshots = max_snapshots or self.max_snapshots_per_url-+snapshots = self._get_wayback_snapshots(url)previews = []-+for snapshot in snapshots[:max_snapshots]:preview = {"id": f"{snapshot['timestamp']}_{snapshot['original_url']}",@@ -352,25 +369,30 @@ class WaybackSearchEngine(BaseSearchEngine):"snippet": f"Archived version from {snapshot['formatted_date']}","original_url": snapshot["original_url"],"timestamp": snapshot["timestamp"],- "formatted_date": snapshot["formatted_date"]+ "formatted_date": snapshot["formatted_date"],}previews.append(preview)-+# Get full content if not in snippets-only mode- if not hasattr(config, 'SEARCH_SNIPPETS_ONLY') or not config.SEARCH_SNIPPETS_ONLY:+ if (+ not hasattr(config, "SEARCH_SNIPPETS_ONLY")+ or not config.SEARCH_SNIPPETS_ONLY+ ):return self._get_full_content(previews)-+return previews-- def search_by_date_range(self, url: str, start_date: str, end_date: str) -> List[Dict[str, Any]]:++ def search_by_date_range(+ self, url: str, start_date: str, end_date: str+ ) -> List[Dict[str, Any]]:"""Search for archived versions of a URL within a date range.-+Args:url: The URL to search for archivesstart_date: Start date in format YYYYMMDDend_date: End date in format YYYYMMDD-+Returns:List of snapshot dictionaries"""@@ -384,68 +406,70 @@ class WaybackSearchEngine(BaseSearchEngine):"fl": "timestamp,original,statuscode,mimetype","from": start_date,"to": end_date,- "limit": self.max_snapshots_per_url- }+ "limit": self.max_snapshots_per_url,+ },)-+# Process responsedata = response.json()-+# First item is the headerif len(data) <= 1:return []-+headers = data[0]snapshots = []-+for item in data[1:]:snapshot = dict(zip(headers, item))timestamp = snapshot.get("timestamp", "")-+wayback_url = f"https://web.archive.org/web/{timestamp}/{url}"-- snapshots.append({- "id": f"{timestamp}_{url}",- "title": f"Archive of {url} ({self._format_timestamp(timestamp)})",- "link": wayback_url,- "snippet": f"Archived version from {self._format_timestamp(timestamp)}",- "original_url": url,- "timestamp": timestamp,- "formatted_date": self._format_timestamp(timestamp)- })-++ snapshots.append(+ {+ "id": f"{timestamp}_{url}",+ "title": f"Archive of {url} ({self._format_timestamp(timestamp)})",+ "link": wayback_url,+ "snippet": f"Archived version from {self._format_timestamp(timestamp)}",+ "original_url": url,+ "timestamp": timestamp,+ "formatted_date": self._format_timestamp(timestamp),+ }+ )+# Get full content if not in snippets-only mode- if not hasattr(config, 'SEARCH_SNIPPETS_ONLY') or not config.SEARCH_SNIPPETS_ONLY:+ if (+ not hasattr(config, "SEARCH_SNIPPETS_ONLY")+ or not config.SEARCH_SNIPPETS_ONLY+ ):return self._get_full_content(snapshots)-+return snapshots-+except Exception as e:logger.error(f"Error searching date range for {url}: {e}")return []-+def get_latest_snapshot(self, url: str) -> Optional[Dict[str, Any]]:"""Get the most recent snapshot of a URL.-+Args:url: The URL to get the latest snapshot for-+Returns:Dictionary with snapshot information or None if not found"""try:- response = requests.get(- self.available_api,- params={"url": url}- )+ response = requests.get(self.available_api, params={"url": url})data = response.json()-+if "archived_snapshots" in data and "closest" in data["archived_snapshots"]:snapshot = data["archived_snapshots"]["closest"]timestamp = snapshot["timestamp"]wayback_url = snapshot["url"]-+result = {"id": f"{timestamp}_{url}","title": f"Latest archive of {url} ({self._format_timestamp(timestamp)})",@@ -453,19 +477,22 @@ class WaybackSearchEngine(BaseSearchEngine):"snippet": f"Archived version from {self._format_timestamp(timestamp)}","original_url": url,"timestamp": timestamp,- "formatted_date": self._format_timestamp(timestamp)+ "formatted_date": self._format_timestamp(timestamp),}-+# Get full content if not in snippets-only mode- if not hasattr(config, 'SEARCH_SNIPPETS_ONLY') or not config.SEARCH_SNIPPETS_ONLY:+ if (+ not hasattr(config, "SEARCH_SNIPPETS_ONLY")+ or not config.SEARCH_SNIPPETS_ONLY+ ):raw_html, full_content = self._get_wayback_content(wayback_url)result["raw_html"] = raw_htmlresult["full_content"] = full_content-+return result-+return None-+except Exception as e:logger.error(f"Error getting latest snapshot for {url}: {e}")- return None\ No newline at end of file+ return Nonediff --git a/src/local_deep_research/web_search_engines/engines/search_engine_wikipedia.py b/src/local_deep_research/web_search_engines/engines/search_engine_wikipedia.pyindex f8500ec4d0..2ea44d93fd 100644--- a/src/local_deep_research/web_search_engines/engines/search_engine_wikipedia.py+++ b/src/local_deep_research/web_search_engines/engines/search_engine_wikipedia.py@@ -1,10 +1,11 @@+import logging+from typing import Any, Dict, List, Optional+import wikipedia-from typing import Dict, List, Any, Optionalfrom langchain_core.language_models import BaseLLM-import logging-from ..search_engine_base import BaseSearchEnginefrom ... import config+from ..search_engine_base import BaseSearchEngine# Setup logginglogger = logging.getLogger(__name__)@@ -12,18 +13,20 @@ logger = logging.getLogger(__name__)class WikipediaSearchEngine(BaseSearchEngine):"""Wikipedia search engine implementation with two-phase approach"""-- def __init__(self,- max_results: int = 10,- language: str = "en",- include_content: bool = True,- sentences: int = 5,- llm: Optional[BaseLLM] = None,- max_filtered_results: Optional[int] = None,- **kwargs):++ def __init__(+ self,+ max_results: int = 10,+ language: str = "en",+ include_content: bool = True,+ sentences: int = 5,+ llm: Optional[BaseLLM] = None,+ max_filtered_results: Optional[int] = None,+ **kwargs,+ ):"""Initialize the Wikipedia search engine.-+Args:max_results: Maximum number of search resultslanguage: Language code for Wikipedia (e.g., 'en', 'fr', 'es')@@ -34,38 +37,42 @@ class WikipediaSearchEngine(BaseSearchEngine):**kwargs: Additional parameters (ignored but accepted for compatibility)"""# Initialize the BaseSearchEngine with LLM, max_filtered_results, and max_results- super().__init__(llm=llm, max_filtered_results=max_filtered_results, max_results=max_results)+ super().__init__(+ llm=llm, max_filtered_results=max_filtered_results, max_results=max_results+ )self.include_content = include_contentself.sentences = sentences-+# Set the Wikipedia languagewikipedia.set_lang(language)-+def _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information (titles and summaries) for Wikipedia pages.-+Args:query: The search query-+Returns:List of preview dictionaries"""logger.info(f"Getting Wikipedia page previews for query: {query}")-+try:# Get search results (just titles)search_results = wikipedia.search(query, results=self.max_results)-- logger.info(f"Found {len(search_results)} Wikipedia results: {search_results}")-++ logger.info(+ f"Found {len(search_results)} Wikipedia results: {search_results}"+ )+if not search_results:logger.info(f"No Wikipedia results found for query: {query}")return []-+# Create a cache for full pages (will be populated on-demand)self._page_cache = {}-+# Generate previews with summariespreviews = []for title in search_results:@@ -73,83 +80,101 @@ class WikipediaSearchEngine(BaseSearchEngine):# Get just the summary, with auto_suggest=False to be more precisesummary = Nonetry:- summary = wikipedia.summary(title, sentences=self.sentences, auto_suggest=False)+ summary = wikipedia.summary(+ title, sentences=self.sentences, auto_suggest=False+ )except wikipedia.exceptions.DisambiguationError as e:# If disambiguation error, try the first optionif e.options and len(e.options) > 0:- logger.info(f"Disambiguation for '{title}', trying first option: {e.options[0]}")+ logger.info(+ f"Disambiguation for '{title}', trying first option: {e.options[0]}"+ )try:- summary = wikipedia.summary(e.options[0], sentences=self.sentences, auto_suggest=False)+ summary = wikipedia.summary(+ e.options[0],+ sentences=self.sentences,+ auto_suggest=False,+ )title = e.options[0] # Use the new titleexcept Exception as inner_e:- logger.error(f"Error with disambiguation option: {inner_e}")+ logger.error(+ f"Error with disambiguation option: {inner_e}"+ )continueelse:- logger.warning(f"Disambiguation with no options for '{title}'")+ logger.warning(+ f"Disambiguation with no options for '{title}'"+ )continue-+if summary:preview = {"id": title, # Use title as ID"title": title,"snippet": summary,- "link": f"https://en.wikipedia.org/wiki/{title.replace(' ', '_')}"+ "link": f"https://en.wikipedia.org/wiki/{title.replace(' ', '_')}",}-+previews.append(preview)-- except (wikipedia.exceptions.PageError,- wikipedia.exceptions.WikipediaException) as e:++ except (+ wikipedia.exceptions.PageError,+ wikipedia.exceptions.WikipediaException,+ ) as e:# Skip pages with errorslogger.warning(f"Error getting summary for '{title}': {e}")continueexcept Exception as e:logger.error(f"Unexpected error for '{title}': {e}")continue-+logger.info(f"Successfully created {len(previews)} previews from Wikipedia")return previews-+except Exception as e:logger.error(f"Error getting Wikipedia previews: {e}")return []-- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:++ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant Wikipedia pages.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""# Check if we should add full content- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:+ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Snippet-only mode, skipping full content retrieval")return relevant_items-- logger.info(f"Getting full content for {len(relevant_items)} relevant Wikipedia pages")-++ logger.info(+ f"Getting full content for {len(relevant_items)} relevant Wikipedia pages"+ )+results = []for item in relevant_items:title = item.get("id") # Title stored as ID-+if not title:results.append(item)continue-+try:# Get the full pagepage = wikipedia.page(title, auto_suggest=False)-+# Create a full result with all informationresult = {"title": page.title,"link": page.url,- "snippet": item.get("snippet", "") # Keep existing snippet+ "snippet": item.get("snippet", ""), # Keep existing snippet}-+# Add additional informationresult["content"] = page.contentresult["full_content"] = page.content@@ -158,29 +183,33 @@ class WikipediaSearchEngine(BaseSearchEngine):result["links"] = page.linksresult["images"] = page.imagesresult["sections"] = page.sections-+results.append(result)-- except (wikipedia.exceptions.DisambiguationError,- wikipedia.exceptions.PageError,- wikipedia.exceptions.WikipediaException) as e:++ except (+ wikipedia.exceptions.DisambiguationError,+ wikipedia.exceptions.PageError,+ wikipedia.exceptions.WikipediaException,+ ) as e:# If error, use the previewlogger.warning(f"Error getting full content for '{title}': {e}")results.append(item)except Exception as e:- logger.error(f"Unexpected error getting full content for '{title}': {e}")+ logger.error(+ f"Unexpected error getting full content for '{title}': {e}"+ )results.append(item)-+return results-+def get_summary(self, title: str, sentences: Optional[int] = None) -> str:"""Get a summary of a specific Wikipedia page.-+Args:title: Title of the Wikipedia pagesentences: Number of sentences to include (defaults to self.sentences)-+Returns:Summary of the page"""@@ -189,31 +218,35 @@ class WikipediaSearchEngine(BaseSearchEngine):return wikipedia.summary(title, sentences=sentences, auto_suggest=False)except wikipedia.exceptions.DisambiguationError as e:if e.options and len(e.options) > 0:- return wikipedia.summary(e.options[0], sentences=sentences, auto_suggest=False)+ return wikipedia.summary(+ e.options[0], sentences=sentences, auto_suggest=False+ )raise-+def get_page(self, title: str) -> Dict[str, Any]:"""Get detailed information about a specific Wikipedia page.-+Args:title: Title of the Wikipedia page-+Returns:Dictionary with page information"""# Check if we should include full content- include_content = not (hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY)-+ include_content = not (+ hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY+ )+try:page = wikipedia.page(title, auto_suggest=False)-+result = {"title": page.title,"link": page.url,- "snippet": self.get_summary(title, self.sentences)+ "snippet": self.get_summary(title, self.sentences),}-+# Add additional information if requestedif include_content:result["content"] = page.content@@ -223,18 +256,18 @@ class WikipediaSearchEngine(BaseSearchEngine):result["links"] = page.linksresult["images"] = page.imagesresult["sections"] = page.sections-+return resultexcept wikipedia.exceptions.DisambiguationError as e:if e.options and len(e.options) > 0:return self.get_page(e.options[0])raise-+def set_language(self, language: str) -> None:"""Change the Wikipedia language.-+Args:language: Language code (e.g., 'en', 'fr', 'es')"""- wikipedia.set_lang(language)\ No newline at end of file+ wikipedia.set_lang(language)diff --git a/src/local_deep_research/web_search_engines/search_engine_base.py b/src/local_deep_research/web_search_engines/search_engine_base.pyindex 96bc115704..d6297fe544 100644--- a/src/local_deep_research/web_search_engines/search_engine_base.py+++ b/src/local_deep_research/web_search_engines/search_engine_base.py@@ -1,117 +1,129 @@+import json+import loggingfrom abc import ABC, abstractmethod-from typing import Dict, List, Any, Optional-from langchain_core.language_models import BaseLLMfrom datetime import datetime-import json+from typing import Any, Dict, List, Optional++from langchain_core.language_models import BaseLLM+from ..utilties.search_utilities import remove_think_tags-import logginglogger = logging.getLogger(__name__)+class BaseSearchEngine(ABC):"""Abstract base class for search engines with two-phase retrieval capability.Handles common parameters and implements the two-phase search approach."""-- def __init__(self,- llm: Optional[BaseLLM] = None,- max_filtered_results: Optional[int] = None,- max_results: Optional[int] = 10, # Default value if not provided- **kwargs):++ def __init__(+ self,+ llm: Optional[BaseLLM] = None,+ max_filtered_results: Optional[int] = None,+ max_results: Optional[int] = 10, # Default value if not provided+ **kwargs,+ ):"""Initialize the search engine with common parameters.-+Args:llm: Optional language model for relevance filteringmax_filtered_results: Maximum number of results to keep after filteringmax_results: Maximum number of search results to return**kwargs: Additional engine-specific parameters"""- if max_filtered_results == None: max_filtered_results = 5+ if max_filtered_results is None:+ max_filtered_results = 5self.llm = llm # LLM for relevance filteringself.max_filtered_results = max_filtered_results # Limit filtered results-+# Ensure max_results is never None and is a positive integerif max_results is None:self.max_results = 25 # Default if Noneelse:- self.max_results = max(1, int(max_results))-+ self.max_results = max(1, int(max_results))+def run(self, query: str) -> List[Dict[str, Any]]:"""Run the search engine with a given query, retrieving and filtering results.- This implements a two-phase retrieval approach:+ This implements a two-phase retrieval approach:1. Get preview information for many results2. Filter the previews for relevance3. Get full content for only the relevant results-+Args:query: The search query-+Returns:List of search results with full content (if available)"""# Ensure we're measuring time correctly for citation tracking-# Step 1: Get preview information for itemspreviews = self._get_previews(query)if not previews:- logger.info(f"Search engine {self.__class__.__name__} returned no preview results for query: {query}")+ logger.info(+ f"Search engine {self.__class__.__name__} returned no preview results for query: {query}"+ )return []-+# Step 2: Filter previews for relevance with LLMfiltered_items = self._filter_for_relevance(previews, query)if not filtered_items:- logger.info(f"All preview results were filtered out as irrelevant for query: {query}")+ logger.info(+ f"All preview results were filtered out as irrelevant for query: {query}"+ )# Do not fall back to previews, return empty list insteadreturn []-+# Step 3: Get full content for filtered items# Import config inside the method to avoid circular importfrom .. import config- if hasattr(config, 'SEARCH_SNIPPETS_ONLY') and config.SEARCH_SNIPPETS_ONLY:++ if hasattr(config, "SEARCH_SNIPPETS_ONLY") and config.SEARCH_SNIPPETS_ONLY:logger.info("Returning snippet-only results as per config")results = filtered_itemselse:results = self._get_full_content(filtered_items)-+return results-+def invoke(self, query: str) -> List[Dict[str, Any]]:"""Compatibility method for LangChain tools"""return self.run(query)-- def _filter_for_relevance(self, previews: List[Dict[str, Any]], query: str) -> List[Dict[str, Any]]:++ def _filter_for_relevance(+ self, previews: List[Dict[str, Any]], query: str+ ) -> List[Dict[str, Any]]:"""Filter search results for relevance to the query using an LLM.-+Checks config.SKIP_RELEVANCE_FILTER to determine whether to perform filtering.-+Args:previews: List of search result dictionaries with preview informationquery: The original search query-+Returns:Filtered list of the most relevant search results"""# Import config inside the method to avoid circular importfrom .. import config-+# Skip filtering if configured to do so or if no LLM is available- if hasattr(config, 'SKIP_RELEVANCE_FILTER') and config.SKIP_RELEVANCE_FILTER:+ if hasattr(config, "SKIP_RELEVANCE_FILTER") and config.SKIP_RELEVANCE_FILTER:# Return all previews up to max_filtered_results if no filtering is performedlimit = self.max_filtered_results or 5return previews[:limit]-+# Default implementation uses LLM if availableif not self.llm or not previews:# If no LLM available, return all previews as relevantif self.max_filtered_results and len(previews) > self.max_filtered_results:- return previews[:self.max_filtered_results]+ return previews[: self.max_filtered_results]return previews-+now = datetime.now()current_time = now.strftime("%Y-%m-%d")prompt = f"""Analyze these search results and provide a ranked list of the most relevant ones.@@ -130,67 +142,76 @@ Include ONLY indices that meet ALL criteria, with the most relevant first.Example response: [4, 0, 2]Respond with ONLY the JSON array, no other text."""-+try:# Get LLM's evaluationresponse = self.llm.invoke(prompt)-+# Extract JSON array from responseresponse_text = remove_think_tags(response.content)# Clean up response to handle potential formatting issuesresponse_text = response_text.strip()-+# Find the first occurrence of '[' and the last occurrence of ']'- start_idx = response_text.find('[')- end_idx = response_text.rfind(']')-+ start_idx = response_text.find("[")+ end_idx = response_text.rfind("]")+if start_idx >= 0 and end_idx > start_idx:- array_text = response_text[start_idx:end_idx+1]+ array_text = response_text[start_idx : end_idx + 1]ranked_indices = json.loads(array_text)-+# Return the results in ranked orderranked_results = []for idx in ranked_indices:if idx < len(previews):ranked_results.append(previews[idx])-+# Limit to max_filtered_results if specified- if self.max_filtered_results and len(ranked_results) > self.max_filtered_results:- logger.info(f"Limiting filtered results to top {self.max_filtered_results}")- return ranked_results[:self.max_filtered_results]-+ if (+ self.max_filtered_results+ and len(ranked_results) > self.max_filtered_results+ ):+ logger.info(+ f"Limiting filtered results to top {self.max_filtered_results}"+ )+ return ranked_results[: self.max_filtered_results]+return ranked_resultselse:- logger.info("Could not find JSON array in response, returning no previews")+ logger.info(+ "Could not find JSON array in response, returning no previews"+ )return []-+except Exception as e:logger.info(f"Relevance filtering error: {e}")# Fall back to returning all previews (or top N) on error- return[]-+ return []+@abstractmethoddef _get_previews(self, query: str) -> List[Dict[str, Any]]:"""Get preview information (titles, summaries) for initial search results.-+Args:query: The search query-+Returns:List of preview dictionaries with at least 'id', 'title', and 'snippet' keys"""pass-+@abstractmethod- def _get_full_content(self, relevant_items: List[Dict[str, Any]]) -> List[Dict[str, Any]]:+ def _get_full_content(+ self, relevant_items: List[Dict[str, Any]]+ ) -> List[Dict[str, Any]]:"""Get full content for the relevant items.-+Args:relevant_items: List of relevant preview dictionaries-+Returns:List of result dictionaries with full content"""- pass\ No newline at end of file+ passdiff --git a/src/local_deep_research/web_search_engines/search_engine_factory.py b/src/local_deep_research/web_search_engines/search_engine_factory.pyindex a3804b853b..6f6f744428 100644--- a/src/local_deep_research/web_search_engines/search_engine_factory.py+++ b/src/local_deep_research/web_search_engines/search_engine_factory.py@@ -1,204 +1,255 @@-import osimport importlibimport inspectimport logging-from typing import Dict, Any, Optional+import os+from typing import Any, Dict, Optionalfrom .search_engine_base import BaseSearchEngine-from .search_engines_config import SEARCH_ENGINES, DEFAULT_SEARCH_ENGINE+from .search_engines_config import DEFAULT_SEARCH_ENGINE, SEARCH_ENGINES# Setup logginglogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)-def create_search_engine(engine_name: str, llm=None, **kwargs) -> Optional[BaseSearchEngine]:+def create_search_engine(+ engine_name: str, llm=None, **kwargs+) -> Optional[BaseSearchEngine]:"""Create a search engine instance based on the engine name.-+Args:engine_name: Name of the search engine to createllm: Language model instance (required for some engines like meta)**kwargs: Additional parameters to override defaults-+Returns:Initialized search engine instance or None if creation failed"""# If engine name not found, use defaultif engine_name not in SEARCH_ENGINES:- logger.warning(f"Search engine '{engine_name}' not found, using default: {DEFAULT_SEARCH_ENGINE}")+ logger.warning(+ f"Search engine '{engine_name}' not found, using default: {DEFAULT_SEARCH_ENGINE}"+ )engine_name = DEFAULT_SEARCH_ENGINE-+# Get engine configurationengine_config = SEARCH_ENGINES[engine_name]from ..config import settings-+# Set default max_results from config if not provided in kwargs- if 'max_results' not in kwargs:+ if "max_results" not in kwargs:max_results = settings.search.max_results- if max_results == None: max_results=20- kwargs['max_results'] = max_results-+ if max_results is None:+ max_results = 20+ kwargs["max_results"] = max_results+# Check for API key requirementsif engine_config.get("requires_api_key", False):api_key_env = engine_config.get("api_key_env")-+# First check environment variableapi_key = os.getenv(api_key_env)-+# If not found in environment, check Dynaconf settingsif not api_key and api_key_env:# Convert env var name to settings path (e.g., BRAVE_API_KEY -> brave_api_key)settings_key = api_key_env.lower()api_key = settings.get(settings_key)-+if not api_key:- logger.info(f"Required API key for {engine_name} not found in environment variable: {api_key_env} or settings")+ logger.info(+ f"Required API key for {engine_name} not found in environment variable: {api_key_env} or settings"+ )return None-+# Check for LLM requirementsif engine_config.get("requires_llm", False) and not llm:- logger.info(f"Engine {engine_name} requires an LLM instance but none was provided")+ logger.info(+ f"Engine {engine_name} requires an LLM instance but none was provided"+ )return None-+try:# Load the engine classmodule_path = engine_config["module_path"]class_name = engine_config["class_name"]-+module = importlib.import_module(module_path)engine_class = getattr(module, class_name)-+# Get the engine class's __init__ parameters to filter out unsupported onesengine_init_signature = inspect.signature(engine_class.__init__)engine_init_params = list(engine_init_signature.parameters.keys())-+# Combine default parameters with provided onesall_params = {**engine_config.get("default_params", {}), **kwargs}-+# Filter out parameters that aren't accepted by the engine class# Note: 'self' is always the first parameter of instance methods, so we skip it- filtered_params = {k: v for k, v in all_params.items() if k in engine_init_params[1:]}-+ filtered_params = {+ k: v for k, v in all_params.items() if k in engine_init_params[1:]+ }+# Add LLM if requiredif engine_config.get("requires_llm", False):filtered_params["llm"] = llm-+# Add API key if required and not already in filtered_params- if engine_config.get("requires_api_key", False) and "api_key" not in filtered_params:+ if (+ engine_config.get("requires_api_key", False)+ and "api_key" not in filtered_params+ ):api_key_env = engine_config.get("api_key_env")if api_key_env:api_key = os.getenv(api_key_env)if api_key:filtered_params["api_key"] = api_key-- logger.info(f"Creating {engine_name} with filtered parameters: {filtered_params.keys()}")-++ logger.info(+ f"Creating {engine_name} with filtered parameters: {filtered_params.keys()}"+ )+# Create the engine instance with filtered parametersengine = engine_class(**filtered_params)-+# Check if we need to wrap with full search capabilities- if kwargs.get("use_full_search", False) and engine_config.get("supports_full_search", False):+ if kwargs.get("use_full_search", False) and engine_config.get(+ "supports_full_search", False+ ):return _create_full_search_wrapper(engine_name, engine, llm, kwargs)-+return engine-+except Exception as e:logger.info(f"Failed to create search engine '{engine_name}': {str(e)}")return None-def _create_full_search_wrapper(engine_name: str, base_engine: BaseSearchEngine, llm, params: Dict[str, Any]) -> Optional[BaseSearchEngine]:+def _create_full_search_wrapper(+ engine_name: str, base_engine: BaseSearchEngine, llm, params: Dict[str, Any]+) -> Optional[BaseSearchEngine]:"""Create a full search wrapper for the base engine if supported"""try:engine_config = SEARCH_ENGINES[engine_name]-+# Get full search class detailsmodule_path = engine_config.get("full_search_module")class_name = engine_config.get("full_search_class")-+if not module_path or not class_name:logger.warning(f"Full search configuration missing for {engine_name}")return base_engine-+# Import the full search classmodule = importlib.import_module(module_path)full_search_class = getattr(module, class_name)-+# Get the wrapper's __init__ parameters to filter out unsupported oneswrapper_init_signature = inspect.signature(full_search_class.__init__)- wrapper_init_params = list(wrapper_init_signature.parameters.keys())[1:] # Skip 'self'-+ wrapper_init_params = list(wrapper_init_signature.parameters.keys())[+ 1:+ ] # Skip 'self'+# Extract relevant parameters for the full search wrapperwrapper_params = {k: v for k, v in params.items() if k in wrapper_init_params}-+# Special case for SerpAPI which needs the API key directlyif engine_name == "serpapi" and "serpapi_api_key" in wrapper_init_params:serpapi_api_key = os.getenv("SERP_API_KEY")if serpapi_api_key:wrapper_params["serpapi_api_key"] = serpapi_api_key-+# Map some parameter names to what the wrapper expects- if "language" in params and "search_language" not in params and "language" in wrapper_init_params:+ if (+ "language" in params+ and "search_language" not in params+ and "language" in wrapper_init_params+ ):wrapper_params["language"] = params["language"]-- if "safesearch" not in wrapper_params and "safe_search" in params and "safesearch" in wrapper_init_params:- wrapper_params["safesearch"] = "active" if params["safe_search"] else "off"-++ if (+ "safesearch" not in wrapper_params+ and "safe_search" in params+ and "safesearch" in wrapper_init_params+ ):+ wrapper_params["safesearch"] = (+ "active" if params["safe_search"] else "off"+ )+# Special case for Brave which needs the API key directlyif engine_name == "brave" and "api_key" in wrapper_init_params:brave_api_key = os.getenv("BRAVE_API_KEY")if brave_api_key:wrapper_params["api_key"] = brave_api_key-+# Map some parameter names to what the wrapper expects- if "language" in params and "search_language" not in params and "language" in wrapper_init_params:+ if (+ "language" in params+ and "search_language" not in params+ and "language" in wrapper_init_params+ ):wrapper_params["language"] = params["language"]-- if "safesearch" not in wrapper_params and "safe_search" in params and "safesearch" in wrapper_init_params:- wrapper_params["safesearch"] = "moderate" if params["safe_search"] else "off"-++ if (+ "safesearch" not in wrapper_params+ and "safe_search" in params+ and "safesearch" in wrapper_init_params+ ):+ wrapper_params["safesearch"] = (+ "moderate" if params["safe_search"] else "off"+ )+# Always include llm if it's a parameterif "llm" in wrapper_init_params:wrapper_params["llm"] = llm-+# If the wrapper needs the base engine and has a parameter for itif "web_search" in wrapper_init_params:wrapper_params["web_search"] = base_engine-- logger.debug(f"Creating full search wrapper for {engine_name} with filtered parameters: {wrapper_params.keys()}")-++ logger.debug(+ f"Creating full search wrapper for {engine_name} with filtered parameters: {wrapper_params.keys()}"+ )+# Create the full search wrapper with filtered parametersfull_search = full_search_class(**wrapper_params)-+return full_search-+except Exception as e:- logger.error(f"Failed to create full search wrapper for {engine_name}: {str(e)}")+ logger.error(+ f"Failed to create full search wrapper for {engine_name}: {str(e)}"+ )return base_engine-def get_available_engines(include_api_key_services: bool = True):"""Get a list of available engine names"""if include_api_key_services:return list(SEARCH_ENGINES.keys())else:- return [name for name, config in SEARCH_ENGINES.items()- if not config.get("requires_api_key", False)]---def get_search(search_tool: str, llm_instance,- max_results: int = 10,- region: str = "us",- time_period: str = "y",- safe_search: bool = True,- search_snippets_only: bool = False,- search_language: str = "English",- max_filtered_results: Optional[int] = None):+ return [+ name+ for name, config in SEARCH_ENGINES.items()+ if not config.get("requires_api_key", False)+ ]+++def get_search(+ search_tool: str,+ llm_instance,+ max_results: int = 10,+ region: str = "us",+ time_period: str = "y",+ safe_search: bool = True,+ search_snippets_only: bool = False,+ search_language: str = "English",+ max_filtered_results: Optional[int] = None,+):"""Get search tool instance based on the provided parameters.-+Args:search_tool: Name of the search engine to usellm_instance: Language model instance@@ -209,7 +260,7 @@ def get_search(search_tool: str, llm_instance,search_snippets_only: Whether to return just snippets (vs. full content)search_language: Language for search resultsmax_filtered_results: Maximum number of results to keep after filtering-+Returns:Initialized search engine instance"""@@ -218,43 +269,49 @@ def get_search(search_tool: str, llm_instance,"max_results": max_results,"llm": llm_instance, # Only used by engines that need it}-+# Add max_filtered_results if providedif max_filtered_results is not None:params["max_filtered_results"] = max_filtered_results-+# Add engine-specific parametersif search_tool in ["duckduckgo", "serpapi", "google_pse", "brave"]:- params.update({- "region": region,- "safe_search": safe_search,- "use_full_search": not search_snippets_only- })-+ params.update(+ {+ "region": region,+ "safe_search": safe_search,+ "use_full_search": not search_snippets_only,+ }+ )+if search_tool in ["serpapi", "brave", "google_pse"]:params["search_language"] = search_language-+if search_tool == "serpapi":params["time_period"] = time_period-+# Create and return the search engine- logger.info(f"Creating search engine for tool: {search_tool} with params: {params.keys()}")+ logger.info(+ f"Creating search engine for tool: {search_tool} with params: {params.keys()}"+ )engine = create_search_engine(search_tool, **params)-+# Add debugging to check if engine is Noneif engine is None:- logger.error(f"Failed to create search engine for {search_tool} - returned None")+ logger.error(+ f"Failed to create search engine for {search_tool} - returned None"+ )else:engine_type = type(engine).__name__logger.info(f"Successfully created search engine of type: {engine_type}")# Check if the engine has run method- if hasattr(engine, 'run'):+ if hasattr(engine, "run"):logger.info(f"Engine has 'run' method: {getattr(engine, 'run')}")else:- logger.error(f"Engine does NOT have 'run' method!")-+ logger.error("Engine does NOT have 'run' method!")+# For SearxNG, check availability flag- if hasattr(engine, 'is_available'):+ if hasattr(engine, "is_available"):logger.info(f"Engine availability flag: {engine.is_available}")-+return enginediff --git a/src/local_deep_research/web_search_engines/search_engines_config.py b/src/local_deep_research/web_search_engines/search_engines_config.pyindex 9c0ed707da..bedfbb9870 100644--- a/src/local_deep_research/web_search_engines/search_engines_config.py+++ b/src/local_deep_research/web_search_engines/search_engines_config.py@@ -2,9 +2,12 @@Configuration file for search engines.Loads search engine definitions from the user's configuration."""+import loggingimport os+import toml+from ..config import CONFIG_DIR, LOCAL_COLLECTIONS_FILElogger = logging.getLogger(__name__)@@ -21,23 +24,27 @@ if os.path.exists(SEARCH_ENGINES_FILE):try:# Load the TOML file directlyconfig_data = toml.load(SEARCH_ENGINES_FILE)-+# Extract search engine definitionsfor key, value in config_data.items():if key == "DEFAULT_SEARCH_ENGINE":DEFAULT_SEARCH_ENGINE = valueelif isinstance(value, dict):SEARCH_ENGINES[key] = value-- logger.info(f"Loaded {len(SEARCH_ENGINES)} search engines from configuration file")++ logger.info(+ f"Loaded {len(SEARCH_ENGINES)} search engines from configuration file"+ )except Exception as e:logger.error(f"Error loading search engines from TOML file: {e}")else:- logger.warning(f"Search engines configuration file not found: {SEARCH_ENGINES_FILE}")+ logger.warning(+ f"Search engines configuration file not found: {SEARCH_ENGINES_FILE}"+ )# Add alias for 'auto' if it exists-if 'auto' in SEARCH_ENGINES and 'meta' not in SEARCH_ENGINES:- SEARCH_ENGINES['meta'] = SEARCH_ENGINES['auto']+if "auto" in SEARCH_ENGINES and "meta" not in SEARCH_ENGINES:+ SEARCH_ENGINES["meta"] = SEARCH_ENGINES["auto"]# Register local document collections@@ -51,20 +58,20 @@ if os.path.exists(LOCAL_COLLECTIONS_FILE):"module_path": "local_deep_research.web_search_engines.engines.search_engine_local","class_name": "LocalSearchEngine","default_params": config,- "requires_llm": True+ "requires_llm": True,}-+# Copy these specific fields to the top level if they existfor field in ["strengths", "weaknesses", "reliability", "description"]:if field in config:engine_config[field] = config[field]-+SEARCH_ENGINES[collection] = engine_config-- logger.info(f"Registered local document collections as search engines")++ logger.info("Registered local document collections as search engines")except Exception as e:logger.error(f"Error loading local collections from TOML file: {e}")# Ensure the meta search engine is still available at the end if it exists-if 'auto' in SEARCH_ENGINES:+if "auto" in SEARCH_ENGINES:meta_config = SEARCH_ENGINES["auto"]- SEARCH_ENGINES["auto"] = meta_config\ No newline at end of file+ SEARCH_ENGINES["auto"] = meta_configdiff --git a/tests/__init__.py b/tests/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/tests/download_stuff_for_local_test.py b/tests/download_stuff_for_local_test.pyindex 92211e0e0d..a8120ec5f6 100644--- a/tests/download_stuff_for_local_test.py+++ b/tests/download_stuff_for_local_test.py@@ -1,13 +1,12 @@-import arxivimport os++import arxiv+from datasets import load_dataset+max_results = 50# Search for papers and limit to 400-search = arxiv.Search(- query="machine learning",- max_results=50-)+search = arxiv.Search(query="machine learning", max_results=50)client = arxiv.Client()-from datasets import load_dataset# Download papersos.makedirs("./../local_search_files/research_papers", exist_ok=True)@@ -15,15 +14,16 @@ for i, result in enumerate(client.results(search)):try:filename = f"./../local_search_files/research_papers/paper_{i}.pdf"result.download_pdf(filename=filename)- print(f"Downloaded {i+1}/{max_results}: {result.title}")+ print(f"Downloaded {i + 1} / {max_results}: {result.title}")except Exception as e:print(f"Error downloading {result.title}: {e}")-wiki = load_dataset("wikipedia", "20220301.en", split=f"train[:{max_results}]", trust_remote_code=True)-# Save to files-import os+wiki = load_dataset(+ "wikipedia", "20220301.en", split=f"train[:{max_results}]", trust_remote_code=True+)+os.makedirs("./../local_search_files/wiki_sample", exist_ok=True)for i, article in enumerate(wiki):with open(f"./../local_search_files/wiki_sample/article_{i}.txt", "w") as f:- f.write(article["title"] + "\n\n" + article["text"])\ No newline at end of file+ f.write(article["title"] + "\n\n" + article["text"])diff --git a/tests/test_google_pse.py b/tests/test_google_pse.pyindex a6419d747c..499ac3d8e6 100644--- a/tests/test_google_pse.py+++ b/tests/test_google_pse.py@@ -3,34 +3,35 @@ Test script for Google Programmable Search Engine integration.Run this script to verify that your Google PSE API key and search engine ID are working."""-import os-import sys-import timeimport logging-from dotenv import load_dotenv+import osimport random+import time+import requests+from dotenv import load_dotenvfrom requests.exceptions import RequestException+from local_deep_research.web_search_engines.search_engine_factory import (+ create_search_engine,+)+# Set up logging-logging.basicConfig(level=logging.DEBUG,- format='%(asctime)s - %(levelname)s - %(message)s')+logging.basicConfig(+ level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(message)s"+)logger = logging.getLogger(__name__)# Load environment variables from .env fileload_dotenv()-# Add parent directory to path to import modules-sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))--from web_search_engines.search_engine_factory import create_search_engine-from config import get_llmdef print_step(message):"""Helper function to print and log a step with a timestamp"""print(f"[{time.strftime('%H:%M:%S')}] {message}")logger.info(message)+def check_api_quota(api_key, search_engine_id):"""Make a direct minimal request to check API quota status@@ -41,64 +42,72 @@ def check_api_quota(api_key, search_engine_id):"key": api_key,"cx": search_engine_id,"q": "test", # Minimal query- "num": 1 # Request only 1 result+ "num": 1, # Request only 1 result}-+try:response = requests.get(url, params=params, timeout=10)-+# Check for quota errors specificallyif response.status_code == 429:- return False, "API quota exceeded. Google PSE has a limit of 100 requests per day on the free tier."+ return (+ False,+ "API quota exceeded. Google PSE has a limit of 100 requests per day on the free tier.",+ )elif response.status_code != 200:return False, f"API error: {response.status_code} - {response.text}"-+# If we get here, the API is workingreturn True, None-+except Exception as e:return False, f"Error checking API: {str(e)}"+def test_google_pse_search(max_retries=3, retry_delay=2):"""Test Google PSE search engine with retry logic and rate limiting-+Args:max_retries: Maximum number of retries on failureretry_delay: Base delay between retries in seconds"""print_step("Starting Google Programmable Search Engine test...")-+# Check if API key and search engine ID are setapi_key = os.getenv("GOOGLE_PSE_API_KEY")search_engine_id = os.getenv("GOOGLE_PSE_ENGINE_ID")-+# Mask the key for logging but show if it exists- api_key_masked = f"{api_key[:4]}...{api_key[-4:]}" if api_key and len(api_key) > 8 else None+ api_key_masked = (+ f"{api_key[:4]}...{api_key[-4:]}" if api_key and len(api_key) > 8 else None+ )print_step(f"API Key found: {api_key_masked is not None}")print_step(f"Search Engine ID: {search_engine_id}")-+if not api_key:print_step("❌ GOOGLE_PSE_API_KEY not set in environment variables")return False-+if not search_engine_id:print_step("❌ GOOGLE_PSE_ENGINE_ID not set in environment variables")return False-+print_step("✅ API key and search engine ID found")-+# Check API quota before proceedingprint_step("Checking API quota status...")quota_ok, error_message = check_api_quota(api_key, search_engine_id)-+if not quota_ok:print_step(f"❌ {error_message}")- print_step("Please wait for quota to reset (typically after 24 hours) or use a different API key.")+ print_step(+ "Please wait for quota to reset (typically after 24 hours) or use a different API key."+ )return False-+print_step("✅ API quota check passed")-+# Create search engine with reduced max_results to minimize API usagetry:print_step("Creating search engine instance...")@@ -110,97 +119,115 @@ def test_google_pse_search(max_retries=3, retry_delay=2):max_results=3, # Reduced from 5 to minimize API usageregion="us",safe_search=True,- search_language="English"+ search_language="English",)-+if not engine:print_step("❌ Failed to create Google PSE search engine")return False-+print_step("✅ Search engine created successfully")-+# Run a simple test query with retry logicquery = "artificial intelligence latest developments"print_step(f"Running test query: '{query}'")-+attempt = 0results = Nonerate_limited = False-+while attempt < max_retries:try:# Add a small random jitter to the delay to avoid thundering herdif attempt > 0:jitter = random.uniform(0.5, 1.5)sleep_time = retry_delay * (2 ** (attempt - 1)) * jitter- print_step(f"Retry attempt {attempt}/{max_retries}. Waiting {sleep_time:.2f} seconds...")+ print_step(+ f"Retry attempt {attempt}/{max_retries}. Waiting {sleep_time:.2f} seconds..."+ )time.sleep(sleep_time)-+# Execute the search- print_step(f"Executing search, attempt {attempt+1}/{max_retries}...")+ print_step(+ f"Executing search, attempt {attempt + 1} / {max_retries}..."+ )results = engine.run(query)-+# If successful, break out of the retry loopif results:print_step("Search successful!")breakelse:print_step("Search returned no results")-+except RequestException as e:- print_step(f"Network error on attempt {attempt+1}/{max_retries}: {str(e)}")-+ print_step(+ f"Network error on attempt {attempt + 1} / {max_retries}:"+ f" {str(e)}"+ )+# Check for rate limitingif "429" in str(e):rate_limited = Trueprint_step("⚠️ API quota has been exceeded")break-+except Exception as e:- print_step(f"Error on attempt {attempt+1}/{max_retries}: {str(e)}")-+ print_step(+ f"Error on attempt {attempt + 1} / {max_retries}:" f" {str(e)}"+ )+attempt += 1-+# Special handling for rate limitingif rate_limited:print_step("❌ Google PSE API quota exceeded (HTTP 429)")- print_step("The free tier of Google PSE allows 100 requests per day. Please wait for quota to reset or use a different API key.")+ print_step(+ "The free tier of Google PSE allows 100 requests per day. Please wait for quota to reset or use a different API key."+ )return False-+# Check results after all retry attemptsif not results:print_step("❌ No results returned after all retry attempts")return False-+print_step(f"✅ {len(results)} results returned")-+# Print the first resultprint_step("\nFirst result:")first_result = results[0]print_step(f"Title: {first_result['title']}")print_step(f"URL: {first_result['url']}")print_step(f"Snippet: {first_result['snippet'][:100]}...")-+return True-+except Exception as e:print_step(f"❌ Error: {str(e)}")logger.exception("Exception in test_google_pse_search")return False+if __name__ == "__main__":try:print_step("Test script started")success = test_google_pse_search()if success:- print_step("\n✅ Google Programmable Search Engine test completed successfully")+ print_step(+ "\n✅ Google Programmable Search Engine test completed successfully"+ )else:print_step("\n❌ Google Programmable Search Engine test failed")print_step("\nPlease check that:")- print_step("1. You have set GOOGLE_PSE_API_KEY and GOOGLE_PSE_ENGINE_ID in .env file")+ print_step(+ "1. You have set GOOGLE_PSE_API_KEY and GOOGLE_PSE_ENGINE_ID in .env file"+ )print_step("2. The API key is valid and has not reached its quota")- print_step("3. The search engine ID is correct and the search engine is properly configured")- print_step("4. Your network connection allows access to Google APIs")+ print_step(+ "3. The search engine ID is correct and the search engine is properly configured"+ )+ print_step("4. Your network connection allows access to Google APIs")except Exception as e:logger.exception("Unhandled exception in main")- print(f"Critical error: {str(e)}")\ No newline at end of file+ print(f"Critical error: {str(e)}")