diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..3296595a9fbec9932c6089ca97f05999ca723b39 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +__pycache__ +*.pyc +*.pyo +*.pyd +*.db +.env +.venv diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000000000000000000000000000000000000..4538f23ff6861bc73ce9043316a4f9a40648893c --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,16 @@ +name: Check file size +on: + pull_request: + branches: [main] + + # to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + sync-to-hub: + runs-on: ubuntu-latest + steps: + - name: Check large files + uses: ActionsDesk/lfs-warning@v2.0 + with: + filesizelimit: 10485760 # this is 10MB \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..59e1d89598c054989c2bc0f0869d7bc716e5552c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,63 @@ +name: CI + +on: + push: + branches: [main, dev] + pull_request: + branches: [main, dev] + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install Poetry + uses: abatilo/actions-poetry@v2 + with: + poetry-version: "2.1.1" + + - name: Verify Poetry Installation + run: poetry --version + + - name: Install dependencies + run: poetry install --with dev + + - name: Run Black and isort + run: | + poetry run black . + poetry run isort . + + - name: Commit and push changes + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "style: Automatic formatting via CI (Black + isort)" + branch: ${{ github.head_ref || github.ref_name }} + file_pattern: "*.py" + + - name: Run Mypy + run: poetry run mypy . + + - name: Run Pylint + run: | + poetry run pylint . | tee pylint-output.txt + score=$(tail -n 2 pylint-output.txt | grep -oP "rated at \K[0-9.]+") + echo "Pylint score: $score" + awk -v s="$score" 'BEGIN {exit (s >= 9.5) ? 0 : 1}' + + - name: Run Bandit security scan + run: poetry run bandit -r src/ + + - name: Run Safety vulnerability check (warnings only) + run: | + poetry run safety check --full-report || true + + - name: Build docs + working-directory: docs + run: poetry run sphinx-build -b html . _build/html \ No newline at end of file diff --git a/.github/workflows/hf_sync.yml b/.github/workflows/hf_sync.yml new file mode 100644 index 0000000000000000000000000000000000000000..f1eacdd0f65a3fb63aa325b7e3cb52dd9172b8fd --- /dev/null +++ b/.github/workflows/hf_sync.yml @@ -0,0 +1,19 @@ +name: Sync to Hugging Face hub +on: + push: + branches: [main] + # to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + sync-to-hub: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + lfs: true + - name: Push to hub + env: + HF_SECRET: ${{ secrets.HF_SECRET }} + run: git push https://eranmi:$HF_SECRET@huggingface.co/spaces/eranmi/RAGnTeX main \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..66c125a83b70edc3c53b5e48bfe6be6050dfc651 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,42 @@ +# Use official Python base image +FROM python:3.10-slim + +# Set environment variables +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 + +# Set work directory +WORKDIR /app + +# Install system dependencies +RUN apt-get update && apt-get install -y \ + build-essential \ + libgl1-mesa-glx \ + libglib2.0-0 \ + texlive-latex-base \ + texlive-fonts-recommended \ + texlive-latex-extra \ + && rm -rf /var/lib/apt/lists/* + +# Clean up +RUN rm -rf /var/lib/apt/lists/* + +# Install Poetry +RUN pip install --upgrade pip +RUN pip install poetry + +# Copy only poetry files first (for caching) +COPY pyproject.toml poetry.lock* /app/ + +# Install dependencies +RUN poetry config virtualenvs.create false \ + && poetry install --no-root --no-interaction --no-ansi + +# Copy the rest of the application +COPY . /app + +# Expose Gradio port +EXPOSE 7860 + +# Command to run the app +CMD ["python", "ragntex.py"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..1ca2ec56b0d957159116a2776f0b894685837e02 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 RAGnTeX + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 035fcabd5dfc36e86a3d74acfa4fb0077c691d79..dfdfdccb50e1c4b647dab90fa84f64d7f3efd954 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ +--- +title: RAGnTeX +emoji: πŸ“„ +colorFrom: indigo +colorTo: pink +sdk: docker +pinned: false +--- + # πŸ“š From Text to Visuals: Auto-Generating LaTeX Beamer Presentations with GenAI In this project, we explore how generative AI can automate the creation of professional-looking presentation slidesβ€”directly from extensive collections of PDF documents. @@ -42,3 +51,24 @@ The model outputs fully formatted compilable LaTeX code following a clear and co - **Summary**: Key takeawaysΒ Β  It also incorporates relevant images extracted from the documents, organizing them into LaTeX Beamer-friendly layouts (e.g., *Core Idea 2* and *Core Idea 3* slide formats). + +### Prerequisites + +This project requires the LaTeX toolchain, specifically `pdflatex`, to generate PDF presentations. + +Please install it before running the project: + +### On Debian/Ubuntu: + +```bash +sudo apt-get update && sudo apt-get install -y texlive-latex-base texlive-fonts-recommended texlive-latex-extra + + +### Run docker: +```bash +docker run \ + --env-file .env \ + -e IN_DOCKER=true \ + -p 7860:7860 \ + -v /path/to/your/output:/app/output \ + ragntex diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..d4bb2cbb9eddb1bb1b4f366623044af8e4830919 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,20 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line, and also +# from the environment for the first two. +SPHINXOPTS ?= +SPHINXBUILD ?= sphinx-build +SOURCEDIR = . +BUILDDIR = _build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/conf.py b/docs/conf.py new file mode 100644 index 0000000000000000000000000000000000000000..f924cd777501e77183a1421c33e22089b7b13b43 --- /dev/null +++ b/docs/conf.py @@ -0,0 +1,40 @@ +# Configuration file for the Sphinx documentation builder. +# +# For the full list of built-in configuration values, see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Project information ----------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information +import os +import sys + +project = "RAGnTeX" +copyright = "2025, Anna Ershova, Kajetan Niewczas" +author = "Anna Ershova, Kajetan Niewczas" +# release = "0.1.0" + +# ── allow β€œimport ragntex …” ──────────────────────────────────────────────── +sys.path.insert(0, os.path.abspath("../src")) +# -- General configuration --------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration + +extensions = [ + "sphinx.ext.autodoc", + "sphinx.ext.napoleon", + "sphinx_autodoc_typehints", +] + + +templates_path = ["_templates"] +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] + +# -- Options for Napoleon ---------------------------------------------------- + +napoleon_google_docstring = True +napoleon_numpy_docstring = False + +# -- Options for HTML output ------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output + +html_theme = "furo" +html_static_path = ["_static"] diff --git a/docs/index.rst b/docs/index.rst new file mode 100644 index 0000000000000000000000000000000000000000..889899609beefa8a27607d26131afe5405117056 --- /dev/null +++ b/docs/index.rst @@ -0,0 +1,104 @@ +.. RAGnTeX documentation master file, created by + sphinx-quickstart on Fri Jun 13 12:43:29 2025. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. +RAGnTeX documentation +===================== + +πŸ“š From Text to Visuals: Auto-Generating LaTeX Beamer Presentations with GenAI +------------------------------------------------------------------------------ + +In this project, we explore how generative AI can automate the creation of professional-looking presentation slidesβ€”directly from extensive collections of PDF documents. + +--- + +🧠 Use Case +=========== + +Creating slide decks from dense documents (like whitepapers or scientific articles) is a time-consuming and cognitively heavy task. Our goal is to streamline this process using generative AI. + +We built an AI assistant that transforms document collections into LaTeX Beamer presentationsβ€”complete with structure, content, and visualsβ€”based on a user-defined topic. + +--- + +πŸ” How It Works +============== + +πŸ’Ώ Database Creation +------------------- + +We start by creating a vector database from a collection of PDF documents (e.g., arXiv papers). Each document is processed to extract text chunks, and for each chunk, we store: + +- **Embeddings** of the text from the file +- **Associated metadata** (like images, their captions, how many images there are) + +πŸ—£οΈ User Prompt +-------------- + +A user enters a natural language query like: + +:: + + "I need a presentation about AI agents." + +πŸ“„ Document Retrieval +-------------------- + +We use **Chroma** as our vector database to retrieve the most relevant PDF documents based on the query. + +🧠 Content Understanding +------------------------ + +Using **Gemini 2.0 Flash** (``google-genai==1.7.0``), the assistant analyzes the retrieved content and extracts the most relevant ideas and insights. + +🎞️ Slide Generation (LaTeX Beamer) +---------------------------------- + +The model outputs fully formatted compilable LaTeX code following a clear and consistent structure: + +- **Introduction**: Topic overview and motivation +- **Main Content**: 2–4 slides, each presenting a core idea +- **Summary**: Key takeaways + +It also incorporates relevant images extracted from the documents, organizing them into LaTeX Beamer-friendly layouts (e.g., *Core Idea 2* and *Core Idea 3* slide formats). + +Installation +============ + +Install poetry to manage dependencies and virtual environments: + +.. code-block:: bash + + pip install poetry + +Then, install the project dependencies: + +.. code-block:: bash + + poetry install + +Running +======= + +Run project with: + +.. code-block:: bash + + poetry run python ragntex.py + +Or via Docker: + +.. code-block:: bash + + docker run \ + --env-file .env \ + -e IN_DOCKER=true \ + -p 7860:7860 \ + -v /path/to/your/output:/app/output \ + ragntex + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + src \ No newline at end of file diff --git a/docs/make.bat b/docs/make.bat new file mode 100644 index 0000000000000000000000000000000000000000..32bb24529f92346af26219baed295b7488b77534 --- /dev/null +++ b/docs/make.bat @@ -0,0 +1,35 @@ +@ECHO OFF + +pushd %~dp0 + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=sphinx-build +) +set SOURCEDIR=. +set BUILDDIR=_build + +%SPHINXBUILD% >NUL 2>NUL +if errorlevel 9009 ( + echo. + echo.The 'sphinx-build' command was not found. Make sure you have Sphinx + echo.installed, then set the SPHINXBUILD environment variable to point + echo.to the full path of the 'sphinx-build' executable. Alternatively you + echo.may add the Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.https://www.sphinx-doc.org/ + exit /b 1 +) + +if "%1" == "" goto help + +%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% +goto end + +:help +%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% + +:end +popd diff --git a/docs/modules.rst b/docs/modules.rst new file mode 100644 index 0000000000000000000000000000000000000000..e9ff8ac1a89c7bd18e69d633121f5a4022ac6fdf --- /dev/null +++ b/docs/modules.rst @@ -0,0 +1,7 @@ +src +=== + +.. toctree:: + :maxdepth: 4 + + src diff --git a/docs/source/modules.rst b/docs/source/modules.rst new file mode 100644 index 0000000000000000000000000000000000000000..189eca8ac35977116dad8682e9c79de372986c06 --- /dev/null +++ b/docs/source/modules.rst @@ -0,0 +1,8 @@ +RAGnTeX +======= + +.. toctree:: + :maxdepth: 4 + + ragntex + src diff --git a/docs/source/ragntex.rst b/docs/source/ragntex.rst new file mode 100644 index 0000000000000000000000000000000000000000..38d57b88a08d2562ad45ae39c8f0e03039c48997 --- /dev/null +++ b/docs/source/ragntex.rst @@ -0,0 +1,7 @@ +ragntex module +============== + +.. automodule:: ragntex + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/source/src.compilation.rst b/docs/source/src.compilation.rst new file mode 100644 index 0000000000000000000000000000000000000000..84b3140f6a54b3fc16b2bd56a75d2cc271ed9051 --- /dev/null +++ b/docs/source/src.compilation.rst @@ -0,0 +1,29 @@ +src.compilation package +======================= + +Submodules +---------- + +src.compilation.json\_to\_tex module +------------------------------------ + +.. automodule:: src.compilation.json_to_tex + :members: + :undoc-members: + :show-inheritance: + +src.compilation.latex\_compilation module +----------------------------------------- + +.. automodule:: src.compilation.latex_compilation + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src.compilation + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/source/src.database.rst b/docs/source/src.database.rst new file mode 100644 index 0000000000000000000000000000000000000000..4355ba9c1ec93eba036bbc91279be738327f6620 --- /dev/null +++ b/docs/source/src.database.rst @@ -0,0 +1,29 @@ +src.database package +==================== + +Submodules +---------- + +src.database.database module +---------------------------- + +.. automodule:: src.database.database + :members: + :undoc-members: + :show-inheritance: + +src.database.db\_manipulation module +------------------------------------ + +.. automodule:: src.database.db_manipulation + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src.database + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/source/src.interface.rst b/docs/source/src.interface.rst new file mode 100644 index 0000000000000000000000000000000000000000..b54b1d5df585cd52843e23e014096295094ba2a5 --- /dev/null +++ b/docs/source/src.interface.rst @@ -0,0 +1,37 @@ +src.interface package +===================== + +Submodules +---------- + +src.interface.download\_files module +------------------------------------ + +.. automodule:: src.interface.download_files + :members: + :undoc-members: + :show-inheritance: + +src.interface.gradio\_interface module +-------------------------------------- + +.. automodule:: src.interface.gradio_interface + :members: + :undoc-members: + :show-inheritance: + +src.interface.upload\_files module +---------------------------------- + +.. automodule:: src.interface.upload_files + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src.interface + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/source/src.processing.rst b/docs/source/src.processing.rst new file mode 100644 index 0000000000000000000000000000000000000000..91d1073a0609732a6efa1e1396ae8e367066f107 --- /dev/null +++ b/docs/source/src.processing.rst @@ -0,0 +1,37 @@ +src.processing package +====================== + +Submodules +---------- + +src.processing.document\_processing module +------------------------------------------ + +.. automodule:: src.processing.document_processing + :members: + :undoc-members: + :show-inheritance: + +src.processing.images\_processing module +---------------------------------------- + +.. automodule:: src.processing.images_processing + :members: + :undoc-members: + :show-inheritance: + +src.processing.output\_folder module +------------------------------------ + +.. automodule:: src.processing.output_folder + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src.processing + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/source/src.rst b/docs/source/src.rst new file mode 100644 index 0000000000000000000000000000000000000000..3faed940b2f692893099c828998e37e46df505d5 --- /dev/null +++ b/docs/source/src.rst @@ -0,0 +1,34 @@ +src package +=========== + +Subpackages +----------- + +.. toctree:: + :maxdepth: 4 + + src.compilation + src.database + src.interface + src.processing + src.services + src.telemetry + +Submodules +---------- + +src.generator module +-------------------- + +.. automodule:: src.generator + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/source/src.services.rst b/docs/source/src.services.rst new file mode 100644 index 0000000000000000000000000000000000000000..cceee16b5fbca6886dbe2fe74e137164177fffce --- /dev/null +++ b/docs/source/src.services.rst @@ -0,0 +1,37 @@ +src.services package +==================== + +Submodules +---------- + +src.services.google\_client module +---------------------------------- + +.. automodule:: src.services.google_client + :members: + :undoc-members: + :show-inheritance: + +src.services.output\_schema module +---------------------------------- + +.. automodule:: src.services.output_schema + :members: + :undoc-members: + :show-inheritance: + +src.services.prompt module +-------------------------- + +.. automodule:: src.services.prompt + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src.services + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/source/src.telemetry.rst b/docs/source/src.telemetry.rst new file mode 100644 index 0000000000000000000000000000000000000000..2869e20599dfc0190db332dbd84e3a3b53c42c3f --- /dev/null +++ b/docs/source/src.telemetry.rst @@ -0,0 +1,29 @@ +src.telemetry package +===================== + +Submodules +---------- + +src.telemetry.logging\_utils module +----------------------------------- + +.. automodule:: src.telemetry.logging_utils + :members: + :undoc-members: + :show-inheritance: + +src.telemetry.telemetry module +------------------------------ + +.. automodule:: src.telemetry.telemetry + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src.telemetry + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/src.compilation.rst b/docs/src.compilation.rst new file mode 100644 index 0000000000000000000000000000000000000000..84b3140f6a54b3fc16b2bd56a75d2cc271ed9051 --- /dev/null +++ b/docs/src.compilation.rst @@ -0,0 +1,29 @@ +src.compilation package +======================= + +Submodules +---------- + +src.compilation.json\_to\_tex module +------------------------------------ + +.. automodule:: src.compilation.json_to_tex + :members: + :undoc-members: + :show-inheritance: + +src.compilation.latex\_compilation module +----------------------------------------- + +.. automodule:: src.compilation.latex_compilation + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src.compilation + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/src.database.rst b/docs/src.database.rst new file mode 100644 index 0000000000000000000000000000000000000000..4355ba9c1ec93eba036bbc91279be738327f6620 --- /dev/null +++ b/docs/src.database.rst @@ -0,0 +1,29 @@ +src.database package +==================== + +Submodules +---------- + +src.database.database module +---------------------------- + +.. automodule:: src.database.database + :members: + :undoc-members: + :show-inheritance: + +src.database.db\_manipulation module +------------------------------------ + +.. automodule:: src.database.db_manipulation + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src.database + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/src.interface.rst b/docs/src.interface.rst new file mode 100644 index 0000000000000000000000000000000000000000..b54b1d5df585cd52843e23e014096295094ba2a5 --- /dev/null +++ b/docs/src.interface.rst @@ -0,0 +1,37 @@ +src.interface package +===================== + +Submodules +---------- + +src.interface.download\_files module +------------------------------------ + +.. automodule:: src.interface.download_files + :members: + :undoc-members: + :show-inheritance: + +src.interface.gradio\_interface module +-------------------------------------- + +.. automodule:: src.interface.gradio_interface + :members: + :undoc-members: + :show-inheritance: + +src.interface.upload\_files module +---------------------------------- + +.. automodule:: src.interface.upload_files + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src.interface + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/src.processing.rst b/docs/src.processing.rst new file mode 100644 index 0000000000000000000000000000000000000000..91d1073a0609732a6efa1e1396ae8e367066f107 --- /dev/null +++ b/docs/src.processing.rst @@ -0,0 +1,37 @@ +src.processing package +====================== + +Submodules +---------- + +src.processing.document\_processing module +------------------------------------------ + +.. automodule:: src.processing.document_processing + :members: + :undoc-members: + :show-inheritance: + +src.processing.images\_processing module +---------------------------------------- + +.. automodule:: src.processing.images_processing + :members: + :undoc-members: + :show-inheritance: + +src.processing.output\_folder module +------------------------------------ + +.. automodule:: src.processing.output_folder + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src.processing + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/src.rst b/docs/src.rst new file mode 100644 index 0000000000000000000000000000000000000000..3faed940b2f692893099c828998e37e46df505d5 --- /dev/null +++ b/docs/src.rst @@ -0,0 +1,34 @@ +src package +=========== + +Subpackages +----------- + +.. toctree:: + :maxdepth: 4 + + src.compilation + src.database + src.interface + src.processing + src.services + src.telemetry + +Submodules +---------- + +src.generator module +-------------------- + +.. automodule:: src.generator + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/src.services.rst b/docs/src.services.rst new file mode 100644 index 0000000000000000000000000000000000000000..cceee16b5fbca6886dbe2fe74e137164177fffce --- /dev/null +++ b/docs/src.services.rst @@ -0,0 +1,37 @@ +src.services package +==================== + +Submodules +---------- + +src.services.google\_client module +---------------------------------- + +.. automodule:: src.services.google_client + :members: + :undoc-members: + :show-inheritance: + +src.services.output\_schema module +---------------------------------- + +.. automodule:: src.services.output_schema + :members: + :undoc-members: + :show-inheritance: + +src.services.prompt module +-------------------------- + +.. automodule:: src.services.prompt + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src.services + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/src.telemetry.rst b/docs/src.telemetry.rst new file mode 100644 index 0000000000000000000000000000000000000000..2869e20599dfc0190db332dbd84e3a3b53c42c3f --- /dev/null +++ b/docs/src.telemetry.rst @@ -0,0 +1,29 @@ +src.telemetry package +===================== + +Submodules +---------- + +src.telemetry.logging\_utils module +----------------------------------- + +.. automodule:: src.telemetry.logging_utils + :members: + :undoc-members: + :show-inheritance: + +src.telemetry.telemetry module +------------------------------ + +.. automodule:: src.telemetry.telemetry + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: src.telemetry + :members: + :undoc-members: + :show-inheritance: diff --git a/gfx/favicon.ico b/gfx/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..0009040b0c1593b134f337cc4bc17425bc859525 Binary files /dev/null and b/gfx/favicon.ico differ diff --git a/gfx/github-mark-white.png b/gfx/github-mark-white.png new file mode 100644 index 0000000000000000000000000000000000000000..c3c0563d956c4025efb3d4234286ced95e8d7e22 --- /dev/null +++ b/gfx/github-mark-white.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:60d03f0f1a09aafcc2df2e10b4ffd24eab44787b451f8fdb367c3baf589cf95a +size 4837 diff --git a/gfx/icon_logo.png b/gfx/icon_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..321bb68792689378bd81275c3b5f2f451f882b1b --- /dev/null +++ b/gfx/icon_logo.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bd9b84f065b306abd8a2780bd39e88931dc98ae0e62ce75088b5add46cf4371 +size 382827 diff --git a/gfx/long_logo.png b/gfx/long_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..61d1b77fcbd4ef7a4f4044cbe24718b0716650f6 --- /dev/null +++ b/gfx/long_logo.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51fdbe2713564f222d57728adcafa9950fdce794f8af4eb149caabbffdd0d93a +size 1071976 diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000000000000000000000000000000000000..f4f92d6f0940ee5bc91a2b5abcff2ade34fe94a4 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,5 @@ +# mypy.ini + +[mypy] +ignore_missing_imports = True + diff --git a/poetry.lock b/poetry.lock index aea53a5784456ffb72a511adfd29d23a3c772d0d..9fbfa18d9e1b4df805c593d27becbb9d557e913f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -12,13 +12,25 @@ files = [ {file = "aiofiles-24.1.0.tar.gz", hash = "sha256:22a075c9e5a3810f0c2e48f3008c94d68c65d763b9b03857924c99e57355166c"}, ] +[[package]] +name = "alabaster" +version = "1.0.0" +description = "A light, configurable Sphinx theme" +optional = false +python-versions = ">=3.10" +groups = ["docs"] +files = [ + {file = "alabaster-1.0.0-py3-none-any.whl", hash = "sha256:fc6786402dc3fcb2de3cabd5fe455a2db534b371124f1f21de8731783dec828b"}, + {file = "alabaster-1.0.0.tar.gz", hash = "sha256:c00dca57bca26fa62a6d7d0a9fcce65f3e026e9bfe33e9c538fd3fbb2144fd9e"}, +] + [[package]] name = "annotated-types" version = "0.7.0" description = "Reusable constraint types to use with typing.Annotated" optional = false python-versions = ">=3.8" -groups = ["main"] +groups = ["main", "dev"] 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"}, @@ -30,15 +42,17 @@ version = "4.9.0" description = "High level compatibility layer for multiple asynchronous event loop implementations" optional = false python-versions = ">=3.9" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "anyio-4.9.0-py3-none-any.whl", hash = "sha256:9f76d541cad6e36af7beb62e978876f3b41e3e04f2c1fbf0884604c0a9c4d93c"}, {file = "anyio-4.9.0.tar.gz", hash = "sha256:673c0c244e15788651a4ff38710fea9675823028a6f08a5eda409e0c9840a028"}, ] [package.dependencies] +exceptiongroup = {version = ">=1.0.2", markers = "python_version < \"3.11\""} idna = ">=2.8" sniffio = ">=1.1" +typing_extensions = {version = ">=4.5", markers = "python_version < \"3.13\""} [package.extras] doc = ["Sphinx (>=8.2,<9.0)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphinx_rtd_theme"] @@ -57,9 +71,27 @@ files = [ {file = "asgiref-3.8.1.tar.gz", hash = "sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590"}, ] +[package.dependencies] +typing-extensions = {version = ">=4", markers = "python_version < \"3.11\""} + [package.extras] tests = ["mypy (>=0.800)", "pytest", "pytest-asyncio"] +[[package]] +name = "astroid" +version = "3.3.10" +description = "An abstract syntax tree for Python with inference support." +optional = false +python-versions = ">=3.9.0" +groups = ["dev"] +files = [ + {file = "astroid-3.3.10-py3-none-any.whl", hash = "sha256:104fb9cb9b27ea95e847a94c003be03a9e039334a8ebca5ee27dafaf5c5711eb"}, + {file = "astroid-3.3.10.tar.gz", hash = "sha256:c332157953060c6deb9caa57303ae0d20b0fbdb2e59b4a4f2a6ba49d0a7961ce"}, +] + +[package.dependencies] +typing-extensions = {version = ">=4", markers = "python_version < \"3.11\""} + [[package]] name = "attrs" version = "25.3.0" @@ -81,48 +113,35 @@ tests = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothe tests-mypy = ["mypy (>=1.11.1) ; platform_python_implementation == \"CPython\" and python_version >= \"3.10\"", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version >= \"3.10\""] [[package]] -name = "audioop-lts" -version = "0.2.1" -description = "LTS Port of Python audioop" -optional = false -python-versions = ">=3.13" -groups = ["main"] -files = [ - {file = "audioop_lts-0.2.1-cp313-abi3-macosx_10_13_universal2.whl", hash = "sha256:fd1345ae99e17e6910f47ce7d52673c6a1a70820d78b67de1b7abb3af29c426a"}, - {file = "audioop_lts-0.2.1-cp313-abi3-macosx_10_13_x86_64.whl", hash = "sha256:e175350da05d2087e12cea8e72a70a1a8b14a17e92ed2022952a4419689ede5e"}, - {file = "audioop_lts-0.2.1-cp313-abi3-macosx_11_0_arm64.whl", hash = "sha256:4a8dd6a81770f6ecf019c4b6d659e000dc26571b273953cef7cd1d5ce2ff3ae6"}, - {file = "audioop_lts-0.2.1-cp313-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1cd3c0b6f2ca25c7d2b1c3adeecbe23e65689839ba73331ebc7d893fcda7ffe"}, - {file = "audioop_lts-0.2.1-cp313-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ff3f97b3372c97782e9c6d3d7fdbe83bce8f70de719605bd7ee1839cd1ab360a"}, - {file = "audioop_lts-0.2.1-cp313-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a351af79edefc2a1bd2234bfd8b339935f389209943043913a919df4b0f13300"}, - {file = "audioop_lts-0.2.1-cp313-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2aeb6f96f7f6da80354330470b9134d81b4cf544cdd1c549f2f45fe964d28059"}, - {file = "audioop_lts-0.2.1-cp313-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c589f06407e8340e81962575fcffbba1e92671879a221186c3d4662de9fe804e"}, - {file = "audioop_lts-0.2.1-cp313-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:fbae5d6925d7c26e712f0beda5ed69ebb40e14212c185d129b8dfbfcc335eb48"}, - {file = "audioop_lts-0.2.1-cp313-abi3-musllinux_1_2_i686.whl", hash = "sha256:d2d5434717f33117f29b5691fbdf142d36573d751716249a288fbb96ba26a281"}, - {file = "audioop_lts-0.2.1-cp313-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:f626a01c0a186b08f7ff61431c01c055961ee28769591efa8800beadd27a2959"}, - {file = "audioop_lts-0.2.1-cp313-abi3-musllinux_1_2_s390x.whl", hash = "sha256:05da64e73837f88ee5c6217d732d2584cf638003ac72df124740460531e95e47"}, - {file = "audioop_lts-0.2.1-cp313-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:56b7a0a4dba8e353436f31a932f3045d108a67b5943b30f85a5563f4d8488d77"}, - {file = "audioop_lts-0.2.1-cp313-abi3-win32.whl", hash = "sha256:6e899eb8874dc2413b11926b5fb3857ec0ab55222840e38016a6ba2ea9b7d5e3"}, - {file = "audioop_lts-0.2.1-cp313-abi3-win_amd64.whl", hash = "sha256:64562c5c771fb0a8b6262829b9b4f37a7b886c01b4d3ecdbae1d629717db08b4"}, - {file = "audioop_lts-0.2.1-cp313-abi3-win_arm64.whl", hash = "sha256:c45317debeb64002e980077642afbd977773a25fa3dfd7ed0c84dccfc1fafcb0"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:3827e3fce6fee4d69d96a3d00cd2ab07f3c0d844cb1e44e26f719b34a5b15455"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:161249db9343b3c9780ca92c0be0d1ccbfecdbccac6844f3d0d44b9c4a00a17f"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:5b7b4ff9de7a44e0ad2618afdc2ac920b91f4a6d3509520ee65339d4acde5abf"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:72e37f416adb43b0ced93419de0122b42753ee74e87070777b53c5d2241e7fab"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:534ce808e6bab6adb65548723c8cbe189a3379245db89b9d555c4210b4aaa9b6"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d2de9b6fb8b1cf9f03990b299a9112bfdf8b86b6987003ca9e8a6c4f56d39543"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f24865991b5ed4b038add5edbf424639d1358144f4e2a3e7a84bc6ba23e35074"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bdb3b7912ccd57ea53197943f1bbc67262dcf29802c4a6df79ec1c715d45a78"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:120678b208cca1158f0a12d667af592e067f7a50df9adc4dc8f6ad8d065a93fb"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:54cd4520fc830b23c7d223693ed3e1b4d464997dd3abc7c15dce9a1f9bd76ab2"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:d6bd20c7a10abcb0fb3d8aaa7508c0bf3d40dfad7515c572014da4b979d3310a"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:f0ed1ad9bd862539ea875fb339ecb18fcc4148f8d9908f4502df28f94d23491a"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:e1af3ff32b8c38a7d900382646e91f2fc515fd19dea37e9392275a5cbfdbff63"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-win32.whl", hash = "sha256:f51bb55122a89f7a0817d7ac2319744b4640b5b446c4c3efcea5764ea99ae509"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-win_amd64.whl", hash = "sha256:f0f2f336aa2aee2bce0b0dcc32bbba9178995454c7b979cf6ce086a8801e14c7"}, - {file = "audioop_lts-0.2.1-cp313-cp313t-win_arm64.whl", hash = "sha256:78bfb3703388c780edf900be66e07de5a3d4105ca8e8720c5c4d67927e0b15d0"}, - {file = "audioop_lts-0.2.1.tar.gz", hash = "sha256:e81268da0baa880431b68b1308ab7257eb33f356e57a5f9b1f915dfb13dd1387"}, +name = "authlib" +version = "1.6.0" +description = "The ultimate Python library in building OAuth and OpenID Connect servers and clients." +optional = false +python-versions = ">=3.9" +groups = ["dev"] +files = [ + {file = "authlib-1.6.0-py2.py3-none-any.whl", hash = "sha256:91685589498f79e8655e8a8947431ad6288831d643f11c55c2143ffcc738048d"}, + {file = "authlib-1.6.0.tar.gz", hash = "sha256:4367d32031b7af175ad3a323d571dc7257b7099d55978087ceae4a0d88cd3210"}, ] +[package.dependencies] +cryptography = "*" + +[[package]] +name = "babel" +version = "2.17.0" +description = "Internationalization utilities" +optional = false +python-versions = ">=3.8" +groups = ["docs"] +files = [ + {file = "babel-2.17.0-py3-none-any.whl", hash = "sha256:4d0b53093fdfb4b21c92b5213dba5a1b23885afa8383709427046b21c366e5f2"}, + {file = "babel-2.17.0.tar.gz", hash = "sha256:0c54cffb19f690cdcc52a3b50bcbf71e07a808d1c80d549f2459b9d2cf0afb9d"}, +] + +[package.extras] +dev = ["backports.zoneinfo ; python_version < \"3.9\"", "freezegun (>=1.0,<2.0)", "jinja2 (>=3.0)", "pytest (>=6.0)", "pytest-cov", "pytz", "setuptools", "tzdata ; sys_platform == \"win32\""] + [[package]] name = "backoff" version = "1.11.1" @@ -135,6 +154,88 @@ files = [ {file = "backoff-1.11.1.tar.gz", hash = "sha256:ccb962a2378418c667b3c979b504fdeb7d9e0d29c0579e3b13b86467177728cb"}, ] +[[package]] +name = "backports-datetime-fromisoformat" +version = "2.0.3" +description = "Backport of Python 3.11's datetime.fromisoformat" +optional = false +python-versions = ">3" +groups = ["dev"] +files = [ + {file = "backports_datetime_fromisoformat-2.0.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:5f681f638f10588fa3c101ee9ae2b63d3734713202ddfcfb6ec6cea0778a29d4"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:cd681460e9142f1249408e5aee6d178c6d89b49e06d44913c8fdfb6defda8d1c"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp310-cp310-macosx_11_0_x86_64.whl", hash = "sha256:ee68bc8735ae5058695b76d3bb2aee1d137c052a11c8303f1e966aa23b72b65b"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8273fe7932db65d952a43e238318966eab9e49e8dd546550a41df12175cc2be4"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:39d57ea50aa5a524bb239688adc1d1d824c31b6094ebd39aa164d6cadb85de22"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:ac6272f87693e78209dc72e84cf9ab58052027733cd0721c55356d3c881791cf"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:44c497a71f80cd2bcfc26faae8857cf8e79388e3d5fbf79d2354b8c360547d58"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:6335a4c9e8af329cb1ded5ab41a666e1448116161905a94e054f205aa6d263bc"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e2e4b66e017253cdbe5a1de49e0eecff3f66cd72bcb1229d7db6e6b1832c0443"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:43e2d648e150777e13bbc2549cc960373e37bf65bd8a5d2e0cef40e16e5d8dd0"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp311-cp311-macosx_11_0_x86_64.whl", hash = "sha256:4ce6326fd86d5bae37813c7bf1543bae9e4c215ec6f5afe4c518be2635e2e005"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7c8fac333bf860208fd522a5394369ee3c790d0aa4311f515fcc4b6c5ef8d75"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:24a4da5ab3aa0cc293dc0662a0c6d1da1a011dc1edcbc3122a288cfed13a0b45"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:58ea11e3bf912bd0a36b0519eae2c5b560b3cb972ea756e66b73fb9be460af01"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:8a375c7dbee4734318714a799b6c697223e4bbb57232af37fbfff88fb48a14c6"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:ac677b1664c4585c2e014739f6678137c8336815406052349c85898206ec7061"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:66ce47ee1ba91e146149cf40565c3d750ea1be94faf660ca733d8601e0848147"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:8b7e069910a66b3bba61df35b5f879e5253ff0821a70375b9daf06444d046fa4"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp312-cp312-macosx_11_0_x86_64.whl", hash = "sha256:a3b5d1d04a9e0f7b15aa1e647c750631a873b298cdd1255687bb68779fe8eb35"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec1b95986430e789c076610aea704db20874f0781b8624f648ca9fb6ef67c6e1"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ffe5f793db59e2f1d45ec35a1cf51404fdd69df9f6952a0c87c3060af4c00e32"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:620e8e73bd2595dfff1b4d256a12b67fce90ece3de87b38e1dde46b910f46f4d"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:4cf9c0a985d68476c1cabd6385c691201dda2337d7453fb4da9679ce9f23f4e7"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:d144868a73002e6e2e6fef72333e7b0129cecdd121aa8f1edba7107fd067255d"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:e81b26497a17c29595bc7df20bc6a872ceea5f8c9d6537283945d4b6396aec10"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp38-cp38-macosx_11_0_universal2.whl", hash = "sha256:5ba00ead8d9d82fd6123eb4891c566d30a293454e54e32ff7ead7644f5f7e575"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp38-cp38-macosx_11_0_x86_64.whl", hash = "sha256:24d574cb4072e1640b00864e94c4c89858033936ece3fc0e1c6f7179f120d0a8"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9735695a66aad654500b0193525e590c693ab3368478ce07b34b443a1ea5e824"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:63d39709e17eb72685d052ac82acf0763e047f57c86af1b791505b1fec96915d"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:1ea2cc84224937d6b9b4c07f5cb7c667f2bde28c255645ba27f8a675a7af8234"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:4024e6d35a9fdc1b3fd6ac7a673bd16cb176c7e0b952af6428b7129a70f72cce"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp38-cp38-win_amd64.whl", hash = "sha256:5e2dcc94dc9c9ab8704409d86fcb5236316e9dcef6feed8162287634e3568f4c"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:fa2de871801d824c255fac7e5e7e50f2be6c9c376fd9268b40c54b5e9da91f42"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp39-cp39-macosx_11_0_universal2.whl", hash = "sha256:1314d4923c1509aa9696712a7bc0c7160d3b7acf72adafbbe6c558d523f5d491"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp39-cp39-macosx_11_0_x86_64.whl", hash = "sha256:b750ecba3a8815ad8bc48311552f3f8ab99dd2326d29df7ff670d9c49321f48f"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b2d5117dce805d8a2f78baeddc8c6127281fa0a5e2c40c6dd992ba6b2b367876"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fb35f607bd1cbe37b896379d5f5ed4dc298b536f4b959cb63180e05cacc0539d"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:61c74710900602637d2d145dda9720c94e303380803bf68811b2a151deec75c2"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:ece59af54ebf67ecbfbbf3ca9066f5687879e36527ad69d8b6e3ac565d565a62"}, + {file = "backports_datetime_fromisoformat-2.0.3-cp39-cp39-win_amd64.whl", hash = "sha256:d0a7c5f875068efe106f62233bc712d50db4d07c13c7db570175c7857a7b5dbd"}, + {file = "backports_datetime_fromisoformat-2.0.3-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:90e202e72a3d5aae673fcc8c9a4267d56b2f532beeb9173361293625fe4d2039"}, + {file = "backports_datetime_fromisoformat-2.0.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2df98ef1b76f5a58bb493dda552259ba60c3a37557d848e039524203951c9f06"}, + {file = "backports_datetime_fromisoformat-2.0.3-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7100adcda5e818b5a894ad0626e38118bb896a347f40ebed8981155675b9ba7b"}, + {file = "backports_datetime_fromisoformat-2.0.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5e410383f5d6a449a529d074e88af8bc80020bb42b402265f9c02c8358c11da5"}, + {file = "backports_datetime_fromisoformat-2.0.3-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f2797593760da6bcc32c4a13fa825af183cd4bfd333c60b3dbf84711afca26ef"}, + {file = "backports_datetime_fromisoformat-2.0.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:35a144fd681a0bea1013ccc4cd3fd4dc758ea17ee23dca019c02b82ec46fc0c4"}, + {file = "backports_datetime_fromisoformat-2.0.3.tar.gz", hash = "sha256:b58edc8f517b66b397abc250ecc737969486703a66eb97e01e6d51291b1a139d"}, +] + +[[package]] +name = "bandit" +version = "1.8.3" +description = "Security oriented static analyser for python code." +optional = false +python-versions = ">=3.9" +groups = ["dev"] +files = [ + {file = "bandit-1.8.3-py3-none-any.whl", hash = "sha256:28f04dc0d258e1dd0f99dee8eefa13d1cb5e3fde1a5ab0c523971f97b289bcd8"}, + {file = "bandit-1.8.3.tar.gz", hash = "sha256:f5847beb654d309422985c36644649924e0ea4425c76dec2e89110b87506193a"}, +] + +[package.dependencies] +colorama = {version = ">=0.3.9", markers = "platform_system == \"Windows\""} +PyYAML = ">=5.3.1" +rich = "*" +stevedore = ">=1.20.0" + +[package.extras] +baseline = ["GitPython (>=3.1.30)"] +sarif = ["jschema-to-python (>=1.2.3)", "sarif-om (>=1.0.4)"] +test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)"] +toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""] +yaml = ["PyYAML"] + [[package]] name = "bcrypt" version = "4.3.0" @@ -206,7 +307,7 @@ version = "4.13.4" description = "Screen-scraping library" optional = false python-versions = ">=3.7.0" -groups = ["main"] +groups = ["main", "docs"] files = [ {file = "beautifulsoup4-4.13.4-py3-none-any.whl", hash = "sha256:9bbbb14bfde9d79f38b8cd5f8c7c85f4b8f2523190ebed90e950a8dea4cb1c4b"}, {file = "beautifulsoup4-4.13.4.tar.gz", hash = "sha256:dbb3c4e1ceae6aefebdaf2423247260cd062430a410e38c66f2baa50a8437195"}, @@ -223,6 +324,53 @@ charset-normalizer = ["charset-normalizer"] html5lib = ["html5lib"] lxml = ["lxml"] +[[package]] +name = "black" +version = "25.1.0" +description = "The uncompromising code formatter." +optional = false +python-versions = ">=3.9" +groups = ["dev"] +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-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a1ee0a0c330f7b5130ce0caed9936a904793576ef4d2b98c40835d6a65afa6a0"}, + {file = "black-25.1.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f3df5f1bf91d36002b0a75389ca8663510cf0531cca8aa5c1ef695b46d98655f"}, + {file = "black-25.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d9e6827d563a2c820772b32ce8a42828dc6790f095f441beef18f96aa6f8294e"}, + {file = "black-25.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:bacabb307dca5ebaf9c118d2d2f6903da0d62c9faa82bd21a33eecc319559355"}, + {file = "black-25.1.0-py3-none-any.whl", hash = "sha256:95e8176dae143ba9097f351d174fdaf0ccd29efb414b362ae3fd72bf0f710717"}, + {file = "black-25.1.0.tar.gz", hash = "sha256:33496d5cd1222ad73391352b4ae8da15253c5de89b93a80b3e2c8d9a19ec2666"}, +] + +[package.dependencies] +click = ">=8.0.0" +mypy-extensions = ">=0.4.3" +packaging = ">=22.0" +pathspec = ">=0.9.0" +platformdirs = ">=2" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} +typing-extensions = {version = ">=4.0.1", markers = "python_version < \"3.11\""} + +[package.extras] +colorama = ["colorama (>=0.4.3)"] +d = ["aiohttp (>=3.10)"] +jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"] +uvloop = ["uvloop (>=0.15.2)"] + [[package]] name = "build" version = "1.2.2.post1" @@ -237,8 +385,10 @@ files = [ [package.dependencies] colorama = {version = "*", markers = "os_name == \"nt\""} +importlib-metadata = {version = ">=4.6", markers = "python_full_version < \"3.10.2\""} packaging = ">=19.1" pyproject_hooks = "*" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} [package.extras] docs = ["furo (>=2023.08.17)", "sphinx (>=7.0,<8.0)", "sphinx-argparse-cli (>=1.5)", "sphinx-autodoc-typehints (>=1.10)", "sphinx-issues (>=3.0.0)"] @@ -265,19 +415,100 @@ version = "2025.1.31" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" -groups = ["main"] +groups = ["main", "dev", "docs"] 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" +description = "Foreign Function Interface for Python calling C code." +optional = false +python-versions = ">=3.8" +groups = ["dev"] +markers = "platform_python_implementation != \"PyPy\"" +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-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:636062ea65bd0195bc012fea9321aca499c0504409f413dc88af450b57ffd03b"}, + {file = "cffi-1.17.1-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c7eac2ef9b63c79431bc4b25f1cd649d7f061a28808cbc6c47b534bd789ef964"}, + {file = "cffi-1.17.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e221cf152cff04059d011ee126477f0d9588303eb57e88923578ace7baad17f9"}, + {file = "cffi-1.17.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:31000ec67d4221a71bd3f67df918b1f88f676f1c3b535a7eb473255fdc0b83fc"}, + {file = "cffi-1.17.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6f17be4345073b0a7b8ea599688f692ac3ef23ce28e5df79c04de519dbc4912c"}, + {file = "cffi-1.17.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0e2b1fac190ae3ebfe37b979cc1ce69c81f4e4fe5746bb401dca63a9062cdaf1"}, + {file = "cffi-1.17.1-cp38-cp38-win32.whl", hash = "sha256:7596d6620d3fa590f677e9ee430df2958d2d6d6de2feeae5b20e82c00b76fbf8"}, + {file = "cffi-1.17.1-cp38-cp38-win_amd64.whl", hash = "sha256:78122be759c3f8a014ce010908ae03364d00a1f81ab5c7f4a7a5120607ea56e1"}, + {file = "cffi-1.17.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b2ab587605f4ba0bf81dc0cb08a41bd1c0a5906bd59243d56bad7668a6fc6c16"}, + {file = "cffi-1.17.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:28b16024becceed8c6dfbc75629e27788d8a3f9030691a1dbf9821a128b22c36"}, + {file = "cffi-1.17.1-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1d599671f396c4723d016dbddb72fe8e0397082b0a77a4fab8028923bec050e8"}, + {file = "cffi-1.17.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca74b8dbe6e8e8263c0ffd60277de77dcee6c837a3d0881d8c1ead7268c9e576"}, + {file = "cffi-1.17.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f7f5baafcc48261359e14bcd6d9bff6d4b28d9103847c9e136694cb0501aef87"}, + {file = "cffi-1.17.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:98e3969bcff97cae1b2def8ba499ea3d6f31ddfdb7635374834cf89a1a08ecf0"}, + {file = "cffi-1.17.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cdf5ce3acdfd1661132f2a9c19cac174758dc2352bfe37d98aa7512c6b7178b3"}, + {file = "cffi-1.17.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:9755e4345d1ec879e3849e62222a18c7174d65a6a92d5b346b1863912168b595"}, + {file = "cffi-1.17.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:f1e22e8c4419538cb197e4dd60acc919d7696e5ef98ee4da4e01d3f8cfa4cc5a"}, + {file = "cffi-1.17.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:c03e868a0b3bc35839ba98e74211ed2b05d2119be4e8a0f224fba9384f1fe02e"}, + {file = "cffi-1.17.1-cp39-cp39-win32.whl", hash = "sha256:e31ae45bc2e29f6b2abd0de1cc3b9d5205aa847cafaecb8af1476a609a2f6eb7"}, + {file = "cffi-1.17.1-cp39-cp39-win_amd64.whl", hash = "sha256:d016c76bdd850f3c626af19b0542c9677ba156e4ee4fccfdd7848803533ef662"}, + {file = "cffi-1.17.1.tar.gz", hash = "sha256:1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824"}, +] + +[package.dependencies] +pycparser = "*" + [[package]] name = "charset-normalizer" version = "3.4.1" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." optional = false python-versions = ">=3.7" -groups = ["main"] +groups = ["main", "dev", "docs"] 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"}, @@ -468,7 +699,7 @@ version = "8.1.8" description = "Composable command line interface toolkit" optional = false python-versions = ">=3.7" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2"}, {file = "click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a"}, @@ -483,12 +714,12 @@ version = "0.4.6" description = "Cross-platform colored terminal text." optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" -groups = ["main"] -markers = "os_name == \"nt\" or platform_system == \"Windows\" or sys_platform == \"win32\"" +groups = ["main", "dev", "docs"] files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, ] +markers = {main = "os_name == \"nt\" or platform_system == \"Windows\" or sys_platform == \"win32\"", dev = "platform_system == \"Windows\" or sys_platform == \"win32\"", docs = "sys_platform == \"win32\""} [[package]] name = "coloredlogs" @@ -508,6 +739,66 @@ humanfriendly = ">=9.1" [package.extras] cron = ["capturer (>=2.4)"] +[[package]] +name = "cryptography" +version = "45.0.4" +description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." +optional = false +python-versions = "!=3.9.0,!=3.9.1,>=3.7" +groups = ["dev"] +files = [ + {file = "cryptography-45.0.4-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:425a9a6ac2823ee6e46a76a21a4e8342d8fa5c01e08b823c1f19a8b74f096069"}, + {file = "cryptography-45.0.4-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:680806cf63baa0039b920f4976f5f31b10e772de42f16310a6839d9f21a26b0d"}, + {file = "cryptography-45.0.4-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4ca0f52170e821bc8da6fc0cc565b7bb8ff8d90d36b5e9fdd68e8a86bdf72036"}, + {file = "cryptography-45.0.4-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:f3fe7a5ae34d5a414957cc7f457e2b92076e72938423ac64d215722f6cf49a9e"}, + {file = "cryptography-45.0.4-cp311-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:25eb4d4d3e54595dc8adebc6bbd5623588991d86591a78c2548ffb64797341e2"}, + {file = "cryptography-45.0.4-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:ce1678a2ccbe696cf3af15a75bb72ee008d7ff183c9228592ede9db467e64f1b"}, + {file = "cryptography-45.0.4-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:49fe9155ab32721b9122975e168a6760d8ce4cffe423bcd7ca269ba41b5dfac1"}, + {file = "cryptography-45.0.4-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:2882338b2a6e0bd337052e8b9007ced85c637da19ef9ecaf437744495c8c2999"}, + {file = "cryptography-45.0.4-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:23b9c3ea30c3ed4db59e7b9619272e94891f8a3a5591d0b656a7582631ccf750"}, + {file = "cryptography-45.0.4-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b0a97c927497e3bc36b33987abb99bf17a9a175a19af38a892dc4bbb844d7ee2"}, + {file = "cryptography-45.0.4-cp311-abi3-win32.whl", hash = "sha256:e00a6c10a5c53979d6242f123c0a97cff9f3abed7f064fc412c36dc521b5f257"}, + {file = "cryptography-45.0.4-cp311-abi3-win_amd64.whl", hash = "sha256:817ee05c6c9f7a69a16200f0c90ab26d23a87701e2a284bd15156783e46dbcc8"}, + {file = "cryptography-45.0.4-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:964bcc28d867e0f5491a564b7debb3ffdd8717928d315d12e0d7defa9e43b723"}, + {file = "cryptography-45.0.4-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6a5bf57554e80f75a7db3d4b1dacaa2764611ae166ab42ea9a72bcdb5d577637"}, + {file = "cryptography-45.0.4-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:46cf7088bf91bdc9b26f9c55636492c1cce3e7aaf8041bbf0243f5e5325cfb2d"}, + {file = "cryptography-45.0.4-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:7bedbe4cc930fa4b100fc845ea1ea5788fcd7ae9562e669989c11618ae8d76ee"}, + {file = "cryptography-45.0.4-cp37-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:eaa3e28ea2235b33220b949c5a0d6cf79baa80eab2eb5607ca8ab7525331b9ff"}, + {file = "cryptography-45.0.4-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:7ef2dde4fa9408475038fc9aadfc1fb2676b174e68356359632e980c661ec8f6"}, + {file = "cryptography-45.0.4-cp37-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:6a3511ae33f09094185d111160fd192c67aa0a2a8d19b54d36e4c78f651dc5ad"}, + {file = "cryptography-45.0.4-cp37-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:06509dc70dd71fa56eaa138336244e2fbaf2ac164fc9b5e66828fccfd2b680d6"}, + {file = "cryptography-45.0.4-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:5f31e6b0a5a253f6aa49be67279be4a7e5a4ef259a9f33c69f7d1b1191939872"}, + {file = "cryptography-45.0.4-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:944e9ccf67a9594137f942d5b52c8d238b1b4e46c7a0c2891b7ae6e01e7c80a4"}, + {file = "cryptography-45.0.4-cp37-abi3-win32.whl", hash = "sha256:c22fe01e53dc65edd1945a2e6f0015e887f84ced233acecb64b4daadb32f5c97"}, + {file = "cryptography-45.0.4-cp37-abi3-win_amd64.whl", hash = "sha256:627ba1bc94f6adf0b0a2e35d87020285ead22d9f648c7e75bb64f367375f3b22"}, + {file = "cryptography-45.0.4-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:a77c6fb8d76e9c9f99f2f3437c1a4ac287b34eaf40997cfab1e9bd2be175ac39"}, + {file = "cryptography-45.0.4-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:7aad98a25ed8ac917fdd8a9c1e706e5a0956e06c498be1f713b61734333a4507"}, + {file = "cryptography-45.0.4-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:3530382a43a0e524bc931f187fc69ef4c42828cf7d7f592f7f249f602b5a4ab0"}, + {file = "cryptography-45.0.4-pp310-pypy310_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:6b613164cb8425e2f8db5849ffb84892e523bf6d26deb8f9bb76ae86181fa12b"}, + {file = "cryptography-45.0.4-pp310-pypy310_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:96d4819e25bf3b685199b304a0029ce4a3caf98947ce8a066c9137cc78ad2c58"}, + {file = "cryptography-45.0.4-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:b97737a3ffbea79eebb062eb0d67d72307195035332501722a9ca86bab9e3ab2"}, + {file = "cryptography-45.0.4-pp311-pypy311_pp73-macosx_10_9_x86_64.whl", hash = "sha256:4828190fb6c4bcb6ebc6331f01fe66ae838bb3bd58e753b59d4b22eb444b996c"}, + {file = "cryptography-45.0.4-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:03dbff8411206713185b8cebe31bc5c0eb544799a50c09035733716b386e61a4"}, + {file = "cryptography-45.0.4-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:51dfbd4d26172d31150d84c19bbe06c68ea4b7f11bbc7b3a5e146b367c311349"}, + {file = "cryptography-45.0.4-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:0339a692de47084969500ee455e42c58e449461e0ec845a34a6a9b9bf7df7fb8"}, + {file = "cryptography-45.0.4-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:0cf13c77d710131d33e63626bd55ae7c0efb701ebdc2b3a7952b9b23a0412862"}, + {file = "cryptography-45.0.4-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:bbc505d1dc469ac12a0a064214879eac6294038d6b24ae9f71faae1448a9608d"}, + {file = "cryptography-45.0.4.tar.gz", hash = "sha256:7405ade85c83c37682c8fe65554759800a4a8c54b2d96e0f8ad114d31b808d57"}, +] + +[package.dependencies] +cffi = {version = ">=1.14", markers = "platform_python_implementation != \"PyPy\""} + +[package.extras] +docs = ["sphinx (>=5.3.0)", "sphinx-inline-tabs ; python_full_version >= \"3.8.0\"", "sphinx-rtd-theme (>=3.0.0) ; python_full_version >= \"3.8.0\""] +docstest = ["pyenchant (>=3)", "readme-renderer (>=30.0)", "sphinxcontrib-spelling (>=7.3.1)"] +nox = ["nox (>=2024.4.15)", "nox[uv] (>=2024.3.2) ; python_full_version >= \"3.8.0\""] +pep8test = ["check-sdist ; python_full_version >= \"3.8.0\"", "click (>=8.0.1)", "mypy (>=1.4)", "ruff (>=0.3.6)"] +sdist = ["build (>=1.0.0)"] +ssh = ["bcrypt (>=3.1.5)"] +test = ["certifi (>=2024)", "cryptography-vectors (==45.0.4)", "pretend (>=0.7)", "pytest (>=7.4.0)", "pytest-benchmark (>=4.0)", "pytest-cov (>=2.10.1)", "pytest-xdist (>=3.5.0)"] +test-randomorder = ["pytest-randomly"] + [[package]] name = "deprecated" version = "1.2.18" @@ -526,6 +817,22 @@ wrapt = ">=1.10,<2" [package.extras] dev = ["PyTest", "PyTest-Cov", "bump2version (<1)", "setuptools ; python_version >= \"3.12\"", "tox"] +[[package]] +name = "dill" +version = "0.4.0" +description = "serialize all of Python" +optional = false +python-versions = ">=3.8" +groups = ["dev"] +files = [ + {file = "dill-0.4.0-py3-none-any.whl", hash = "sha256:44f54bf6412c2c8464c14e8243eb163690a9800dbe2c367330883b19c7561049"}, + {file = "dill-0.4.0.tar.gz", hash = "sha256:0633f1d2df477324f53a895b02c901fb961bdbf65a17122586ea7019292cbcf0"}, +] + +[package.extras] +graph = ["objgraph (>=1.7.2)"] +profile = ["gprof2dot (>=2022.7.29)"] + [[package]] name = "distro" version = "1.9.0" @@ -538,6 +845,18 @@ files = [ {file = "distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed"}, ] +[[package]] +name = "docutils" +version = "0.21.2" +description = "Docutils -- Python Documentation Utilities" +optional = false +python-versions = ">=3.9" +groups = ["docs"] +files = [ + {file = "docutils-0.21.2-py3-none-any.whl", hash = "sha256:dafca5b9e384f0e419294eb4d2ff9fa826435bf15f15b7bd45723e8ad76811b2"}, + {file = "docutils-0.21.2.tar.gz", hash = "sha256:3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f"}, +] + [[package]] name = "dotenv" version = "0.9.9" @@ -552,6 +871,28 @@ files = [ [package.dependencies] python-dotenv = "*" +[[package]] +name = "dparse" +version = "0.6.4" +description = "A parser for Python dependency files" +optional = false +python-versions = ">=3.7" +groups = ["dev"] +files = [ + {file = "dparse-0.6.4-py3-none-any.whl", hash = "sha256:fbab4d50d54d0e739fbb4dedfc3d92771003a5b9aa8545ca7a7045e3b174af57"}, + {file = "dparse-0.6.4.tar.gz", hash = "sha256:90b29c39e3edc36c6284c82c4132648eaf28a01863eb3c231c2512196132201a"}, +] + +[package.dependencies] +packaging = "*" +tomli = {version = "*", markers = "python_version < \"3.11\""} + +[package.extras] +all = ["pipenv", "poetry", "pyyaml"] +conda = ["pyyaml"] +pipenv = ["pipenv"] +poetry = ["poetry"] + [[package]] name = "durationpy" version = "0.9" @@ -564,6 +905,24 @@ files = [ {file = "durationpy-0.9.tar.gz", hash = "sha256:fd3feb0a69a0057d582ef643c355c40d2fa1c942191f914d12203b1a01ac722a"}, ] +[[package]] +name = "exceptiongroup" +version = "1.3.0" +description = "Backport of PEP 654 (exception groups)" +optional = false +python-versions = ">=3.7" +groups = ["main", "dev"] +files = [ + {file = "exceptiongroup-1.3.0-py3-none-any.whl", hash = "sha256:4d111e6e0c13d0644cad6ddaa7ed0261a0b36971f6d23e7ec9b4b9097da78a10"}, + {file = "exceptiongroup-1.3.0.tar.gz", hash = "sha256:b241f5885f560bc56a59ee63ca4c6a8bfa46ae4ad651af316d4e81817bb9fd88"}, +] + +[package.dependencies] +typing-extensions = {version = ">=4.6.0", markers = "python_version < \"3.13\""} + +[package.extras] +test = ["pytest (>=6)"] + [[package]] name = "fastapi" version = "0.115.9" @@ -598,19 +957,19 @@ files = [ [[package]] name = "filelock" -version = "3.18.0" +version = "3.16.1" description = "A platform independent file lock." optional = false -python-versions = ">=3.9" -groups = ["main"] +python-versions = ">=3.8" +groups = ["main", "dev"] files = [ - {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"}, - {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"}, + {file = "filelock-3.16.1-py3-none-any.whl", hash = "sha256:2082e5703d51fbf98ea75855d9d5527e33d8ff23099bec374a134febee6946b0"}, + {file = "filelock-3.16.1.tar.gz", hash = "sha256:c249fbfcd5db47e5e2d6d62198e565475ee65e4831e2561c8e313fa7eb961435"}, ] [package.extras] -docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"] -testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"] +docs = ["furo (>=2024.8.6)", "sphinx (>=8.0.2)", "sphinx-autodoc-typehints (>=2.4.1)"] +testing = ["covdefaults (>=2.3)", "coverage (>=7.6.1)", "diff-cover (>=9.2)", "pytest (>=8.3.3)", "pytest-asyncio (>=0.24)", "pytest-cov (>=5)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.26.4)"] typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""] [[package]] @@ -665,6 +1024,24 @@ test-downstream = ["aiobotocore (>=2.5.4,<3.0.0)", "dask[dataframe,test]", "moto test-full = ["adlfs", "aiohttp (!=4.0.0a0,!=4.0.0a1)", "cloudpickle", "dask", "distributed", "dropbox", "dropboxdrivefs", "fastparquet", "fusepy", "gcsfs", "jinja2", "kerchunk", "libarchive-c", "lz4", "notebook", "numpy", "ocifs", "pandas", "panel", "paramiko", "pyarrow", "pyarrow (>=1)", "pyftpdlib", "pygit2", "pytest", "pytest-asyncio (!=0.22.0)", "pytest-benchmark", "pytest-cov", "pytest-mock", "pytest-recording", "pytest-rerunfailures", "python-snappy", "requests", "smbprotocol", "tqdm", "urllib3", "zarr", "zstandard"] tqdm = ["tqdm"] +[[package]] +name = "furo" +version = "2024.8.6" +description = "A clean customisable Sphinx documentation theme." +optional = false +python-versions = ">=3.8" +groups = ["docs"] +files = [ + {file = "furo-2024.8.6-py3-none-any.whl", hash = "sha256:6cd97c58b47813d3619e63e9081169880fbe331f0ca883c871ff1f3f11814f5c"}, + {file = "furo-2024.8.6.tar.gz", hash = "sha256:b63e4cee8abfc3136d3bc03a3d45a76a850bada4d6374d24c1716b0e01394a01"}, +] + +[package.dependencies] +beautifulsoup4 = "*" +pygments = ">=2.7" +sphinx = ">=6.0,<9.0" +sphinx-basic-ng = ">=1.0.0.beta2" + [[package]] name = "google" version = "3.0.0" @@ -695,7 +1072,7 @@ files = [ [package.dependencies] google-auth = ">=2.14.1,<3.0.0" googleapis-common-protos = ">=1.56.2,<2.0.0" -proto-plus = {version = ">=1.25.0,<2.0.0", markers = "python_version >= \"3.13\""} +proto-plus = ">=1.22.3,<2.0.0" protobuf = ">=3.19.5,<3.20.0 || >3.20.0,<3.20.1 || >3.20.1,<4.21.0 || >4.21.0,<4.21.1 || >4.21.1,<4.21.2 || >4.21.2,<4.21.3 || >4.21.3,<4.21.4 || >4.21.4,<4.21.5 || >4.21.5,<7.0.0" requests = ">=2.18.0,<3.0.0" @@ -821,7 +1198,6 @@ files = [ [package.dependencies] aiofiles = ">=22.0,<25.0" anyio = ">=3.0,<5.0" -audioop-lts = {version = "<1.0", markers = "python_version >= \"3.13\""} fastapi = ">=0.115.2,<1.0" ffmpy = "*" gradio-client = "1.9.1" @@ -957,7 +1333,7 @@ version = "0.16.0" description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" optional = false python-versions = ">=3.8" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86"}, {file = "h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1"}, @@ -969,7 +1345,7 @@ version = "1.0.9" description = "A minimal low-level HTTP client." optional = false python-versions = ">=3.8" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55"}, {file = "httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8"}, @@ -1062,7 +1438,7 @@ version = "0.28.1" description = "The next generation HTTP client." optional = false python-versions = ">=3.8" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad"}, {file = "httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc"}, @@ -1138,7 +1514,7 @@ version = "3.10" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.6" -groups = ["main"] +groups = ["main", "dev", "docs"] files = [ {file = "idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"}, {file = "idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"}, @@ -1147,6 +1523,18 @@ files = [ [package.extras] all = ["flake8 (>=7.1.1)", "mypy (>=1.11.2)", "pytest (>=8.3.2)", "ruff (>=0.6.2)"] +[[package]] +name = "imagesize" +version = "1.4.1" +description = "Getting image size from png/jpeg/jpeg2000/gif file" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +groups = ["docs"] +files = [ + {file = "imagesize-1.4.1-py2.py3-none-any.whl", hash = "sha256:0d8d18d08f840c19d0ee7ca1fd82490fdc3729b7ac93f49870406ddde8ef8d8b"}, + {file = "imagesize-1.4.1.tar.gz", hash = "sha256:69150444affb9cb0d5cc5a92b3676f0b2fb7cd9ae39e947a5e11a36b4497cd4a"}, +] + [[package]] name = "importlib-metadata" version = "8.6.1" @@ -1191,13 +1579,41 @@ enabler = ["pytest-enabler (>=2.2)"] test = ["jaraco.test (>=5.4)", "pytest (>=6,!=8.1.*)", "zipp (>=3.17)"] type = ["pytest-mypy"] +[[package]] +name = "iniconfig" +version = "2.1.0" +description = "brain-dead simple config-ini parsing" +optional = false +python-versions = ">=3.8" +groups = ["dev"] +files = [ + {file = "iniconfig-2.1.0-py3-none-any.whl", hash = "sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760"}, + {file = "iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7"}, +] + +[[package]] +name = "isort" +version = "6.0.1" +description = "A Python utility / library to sort Python imports." +optional = false +python-versions = ">=3.9.0" +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.extras] +colors = ["colorama"] +plugins = ["setuptools"] + [[package]] name = "jinja2" version = "3.1.6" description = "A very fast and expressive template engine." optional = false python-versions = ">=3.7" -groups = ["main"] +groups = ["main", "dev", "docs"] files = [ {file = "jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67"}, {file = "jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d"}, @@ -1209,6 +1625,18 @@ MarkupSafe = ">=2.0" [package.extras] i18n = ["Babel (>=2.7)"] +[[package]] +name = "joblib" +version = "1.5.1" +description = "Lightweight pipelining with Python functions" +optional = false +python-versions = ">=3.9" +groups = ["dev"] +files = [ + {file = "joblib-1.5.1-py3-none-any.whl", hash = "sha256:4719a31f054c7d766948dcd83e9613686b27114f190f717cec7eaa2084f8a74a"}, + {file = "joblib-1.5.1.tar.gz", hash = "sha256:f4f86e351f39fe3d0d32a9f2c3d8af1ee4cec285aafcb27003dda5205576b444"}, +] + [[package]] name = "jsonschema" version = "4.23.0" @@ -1274,13 +1702,40 @@ websocket-client = ">=0.32.0,<0.40.0 || >0.40.0,<0.41.dev0 || >=0.43.dev0" [package.extras] adal = ["adal (>=1.0.2)"] +[[package]] +name = "langfuse" +version = "2.60.5" +description = "A client library for accessing langfuse" +optional = false +python-versions = "<4.0,>=3.9" +groups = ["main"] +files = [ + {file = "langfuse-2.60.5-py3-none-any.whl", hash = "sha256:fd27d52017f36d6fa5ca652615213a2535dc93dd88c3375eeb811af26384d285"}, + {file = "langfuse-2.60.5.tar.gz", hash = "sha256:a33ecddc98cf6d12289372e63071b77b72230e7bc8260ee349f1465d53bf425b"}, +] + +[package.dependencies] +anyio = ">=4.4.0,<5.0.0" +backoff = ">=1.10.0" +httpx = ">=0.15.4,<1.0" +idna = ">=3.7,<4.0" +packaging = ">=23.2,<25.0" +pydantic = ">=1.10.7,<3.0" +requests = ">=2,<3" +wrapt = ">=1.14,<2.0" + +[package.extras] +langchain = ["langchain (>=0.0.309)"] +llama-index = ["llama-index (>=0.10.12,<2.0.0)"] +openai = ["openai (>=0.27.8)"] + [[package]] name = "markdown-it-py" version = "3.0.0" description = "Python port of markdown-it. Markdown parsing, done right!" optional = false python-versions = ">=3.8" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb"}, {file = "markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1"}, @@ -1305,7 +1760,7 @@ version = "3.0.2" description = "Safely add untrusted strings to HTML/XML markup." optional = false python-versions = ">=3.9" -groups = ["main"] +groups = ["main", "dev", "docs"] 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"}, @@ -1370,13 +1825,46 @@ files = [ {file = "markupsafe-3.0.2.tar.gz", hash = "sha256:ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0"}, ] +[[package]] +name = "marshmallow" +version = "4.0.0" +description = "A lightweight library for converting complex datatypes to and from native Python datatypes." +optional = false +python-versions = ">=3.9" +groups = ["dev"] +files = [ + {file = "marshmallow-4.0.0-py3-none-any.whl", hash = "sha256:e7b0528337e9990fd64950f8a6b3a1baabed09ad17a0dfb844d701151f92d203"}, + {file = "marshmallow-4.0.0.tar.gz", hash = "sha256:3b6e80aac299a7935cfb97ed01d1854fb90b5079430969af92118ea1b12a8d55"}, +] + +[package.dependencies] +backports-datetime-fromisoformat = {version = "*", markers = "python_version < \"3.11\""} +typing-extensions = {version = "*", markers = "python_version < \"3.11\""} + +[package.extras] +dev = ["marshmallow[tests]", "pre-commit (>=3.5,<5.0)", "tox"] +docs = ["autodocsumm (==0.2.14)", "furo (==2024.8.6)", "sphinx (==8.2.3)", "sphinx-copybutton (==0.5.2)", "sphinx-issues (==5.0.1)", "sphinxext-opengraph (==0.10.0)"] +tests = ["pytest", "simplejson"] + +[[package]] +name = "mccabe" +version = "0.7.0" +description = "McCabe checker, plugin for flake8" +optional = false +python-versions = ">=3.6" +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 = "mdurl" version = "0.1.2" description = "Markdown URL utilities" optional = false python-versions = ">=3.7" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"}, {file = "mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba"}, @@ -1511,6 +1999,99 @@ docs = ["sphinx"] gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""] tests = ["pytest (>=4.6)"] +[[package]] +name = "mypy" +version = "1.16.0" +description = "Optional static typing for Python" +optional = false +python-versions = ">=3.9" +groups = ["dev"] +files = [ + {file = "mypy-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:7909541fef256527e5ee9c0a7e2aeed78b6cda72ba44298d1334fe7881b05c5c"}, + {file = "mypy-1.16.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e71d6f0090c2256c713ed3d52711d01859c82608b5d68d4fa01a3fe30df95571"}, + {file = "mypy-1.16.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:936ccfdd749af4766be824268bfe22d1db9eb2f34a3ea1d00ffbe5b5265f5491"}, + {file = "mypy-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4086883a73166631307fdd330c4a9080ce24913d4f4c5ec596c601b3a4bdd777"}, + {file = "mypy-1.16.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:feec38097f71797da0231997e0de3a58108c51845399669ebc532c815f93866b"}, + {file = "mypy-1.16.0-cp310-cp310-win_amd64.whl", hash = "sha256:09a8da6a0ee9a9770b8ff61b39c0bb07971cda90e7297f4213741b48a0cc8d93"}, + {file = "mypy-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:9f826aaa7ff8443bac6a494cf743f591488ea940dd360e7dd330e30dd772a5ab"}, + {file = "mypy-1.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:82d056e6faa508501af333a6af192c700b33e15865bda49611e3d7d8358ebea2"}, + {file = "mypy-1.16.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:089bedc02307c2548eb51f426e085546db1fa7dd87fbb7c9fa561575cf6eb1ff"}, + {file = "mypy-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6a2322896003ba66bbd1318c10d3afdfe24e78ef12ea10e2acd985e9d684a666"}, + {file = "mypy-1.16.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:021a68568082c5b36e977d54e8f1de978baf401a33884ffcea09bd8e88a98f4c"}, + {file = "mypy-1.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:54066fed302d83bf5128632d05b4ec68412e1f03ef2c300434057d66866cea4b"}, + {file = "mypy-1.16.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c5436d11e89a3ad16ce8afe752f0f373ae9620841c50883dc96f8b8805620b13"}, + {file = "mypy-1.16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f2622af30bf01d8fc36466231bdd203d120d7a599a6d88fb22bdcb9dbff84090"}, + {file = "mypy-1.16.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d045d33c284e10a038f5e29faca055b90eee87da3fc63b8889085744ebabb5a1"}, + {file = "mypy-1.16.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b4968f14f44c62e2ec4a038c8797a87315be8df7740dc3ee8d3bfe1c6bf5dba8"}, + {file = "mypy-1.16.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:eb14a4a871bb8efb1e4a50360d4e3c8d6c601e7a31028a2c79f9bb659b63d730"}, + {file = "mypy-1.16.0-cp312-cp312-win_amd64.whl", hash = "sha256:bd4e1ebe126152a7bbaa4daedd781c90c8f9643c79b9748caa270ad542f12bec"}, + {file = "mypy-1.16.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a9e056237c89f1587a3be1a3a70a06a698d25e2479b9a2f57325ddaaffc3567b"}, + {file = "mypy-1.16.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0b07e107affb9ee6ce1f342c07f51552d126c32cd62955f59a7db94a51ad12c0"}, + {file = "mypy-1.16.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c6fb60cbd85dc65d4d63d37cb5c86f4e3a301ec605f606ae3a9173e5cf34997b"}, + {file = "mypy-1.16.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a7e32297a437cc915599e0578fa6bc68ae6a8dc059c9e009c628e1c47f91495d"}, + {file = "mypy-1.16.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:afe420c9380ccec31e744e8baff0d406c846683681025db3531b32db56962d52"}, + {file = "mypy-1.16.0-cp313-cp313-win_amd64.whl", hash = "sha256:55f9076c6ce55dd3f8cd0c6fff26a008ca8e5131b89d5ba6d86bd3f47e736eeb"}, + {file = "mypy-1.16.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:f56236114c425620875c7cf71700e3d60004858da856c6fc78998ffe767b73d3"}, + {file = "mypy-1.16.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:15486beea80be24ff067d7d0ede673b001d0d684d0095803b3e6e17a886a2a92"}, + {file = "mypy-1.16.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f2ed0e0847a80655afa2c121835b848ed101cc7b8d8d6ecc5205aedc732b1436"}, + {file = "mypy-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:eb5fbc8063cb4fde7787e4c0406aa63094a34a2daf4673f359a1fb64050e9cb2"}, + {file = "mypy-1.16.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:a5fcfdb7318c6a8dd127b14b1052743b83e97a970f0edb6c913211507a255e20"}, + {file = "mypy-1.16.0-cp39-cp39-win_amd64.whl", hash = "sha256:2e7e0ad35275e02797323a5aa1be0b14a4d03ffdb2e5f2b0489fa07b89c67b21"}, + {file = "mypy-1.16.0-py3-none-any.whl", hash = "sha256:29e1499864a3888bca5c1542f2d7232c6e586295183320caa95758fc84034031"}, + {file = "mypy-1.16.0.tar.gz", hash = "sha256:84b94283f817e2aa6350a14b4a8fb2a35a53c286f97c9d30f53b63620e7af8ab"}, +] + +[package.dependencies] +mypy_extensions = ">=1.0.0" +pathspec = ">=0.9.0" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} +typing_extensions = ">=4.6.0" + +[package.extras] +dmypy = ["psutil (>=4.0)"] +faster-cache = ["orjson"] +install-types = ["pip"] +mypyc = ["setuptools (>=50)"] +reports = ["lxml"] + +[[package]] +name = "mypy-extensions" +version = "1.1.0" +description = "Type system extensions for programs checked with the mypy type checker." +optional = false +python-versions = ">=3.8" +groups = ["dev"] +files = [ + {file = "mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505"}, + {file = "mypy_extensions-1.1.0.tar.gz", hash = "sha256:52e68efc3284861e772bbcd66823fde5ae21fd2fdb51c62a211403730b916558"}, +] + +[[package]] +name = "nltk" +version = "3.9.1" +description = "Natural Language Toolkit" +optional = false +python-versions = ">=3.8" +groups = ["dev"] +files = [ + {file = "nltk-3.9.1-py3-none-any.whl", hash = "sha256:4fa26829c5b00715afe3061398a8989dc643b92ce7dd93fb4585a70930d168a1"}, + {file = "nltk-3.9.1.tar.gz", hash = "sha256:87d127bd3de4bd89a4f81265e5fa59cb1b199b27440175370f7417d2bc7ae868"}, +] + +[package.dependencies] +click = "*" +joblib = "*" +regex = ">=2021.8.3" +tqdm = "*" + +[package.extras] +all = ["matplotlib", "numpy", "pyparsing", "python-crfsuite", "requests", "scikit-learn", "scipy", "twython"] +corenlp = ["requests"] +machine-learning = ["numpy", "python-crfsuite", "scikit-learn", "scipy"] +plot = ["matplotlib"] +tgrep = ["pyparsing"] +twitter = ["twython"] + [[package]] name = "numpy" version = "2.2.5" @@ -1631,14 +2212,14 @@ sympy = "*" [[package]] name = "opentelemetry-api" -version = "1.32.1" +version = "1.33.1" description = "OpenTelemetry Python API" optional = false python-versions = ">=3.8" groups = ["main"] files = [ - {file = "opentelemetry_api-1.32.1-py3-none-any.whl", hash = "sha256:bbd19f14ab9f15f0e85e43e6a958aa4cb1f36870ee62b7fd205783a112012724"}, - {file = "opentelemetry_api-1.32.1.tar.gz", hash = "sha256:a5be71591694a4d9195caf6776b055aa702e964d961051a0715d05f8632c32fb"}, + {file = "opentelemetry_api-1.33.1-py3-none-any.whl", hash = "sha256:4db83ebcf7ea93e64637ec6ee6fabee45c5cbe4abd9cf3da95c43828ddb50b83"}, + {file = "opentelemetry_api-1.33.1.tar.gz", hash = "sha256:1c6055fc0a2d3f23a50c7e17e16ef75ad489345fd3df1f8b8af7c0bbf8a109e8"}, ] [package.dependencies] @@ -1647,112 +2228,112 @@ importlib-metadata = ">=6.0,<8.7.0" [[package]] name = "opentelemetry-exporter-otlp-proto-common" -version = "1.32.1" +version = "1.33.1" description = "OpenTelemetry Protobuf encoding" optional = false python-versions = ">=3.8" groups = ["main"] files = [ - {file = "opentelemetry_exporter_otlp_proto_common-1.32.1-py3-none-any.whl", hash = "sha256:a1e9ad3d0d9a9405c7ff8cdb54ba9b265da16da9844fe36b8c9661114b56c5d9"}, - {file = "opentelemetry_exporter_otlp_proto_common-1.32.1.tar.gz", hash = "sha256:da4edee4f24aaef109bfe924efad3a98a2e27c91278115505b298ee61da5d68e"}, + {file = "opentelemetry_exporter_otlp_proto_common-1.33.1-py3-none-any.whl", hash = "sha256:b81c1de1ad349785e601d02715b2d29d6818aed2c809c20219f3d1f20b038c36"}, + {file = "opentelemetry_exporter_otlp_proto_common-1.33.1.tar.gz", hash = "sha256:c57b3fa2d0595a21c4ed586f74f948d259d9949b58258f11edb398f246bec131"}, ] [package.dependencies] -opentelemetry-proto = "1.32.1" +opentelemetry-proto = "1.33.1" [[package]] name = "opentelemetry-exporter-otlp-proto-grpc" -version = "1.32.1" +version = "1.33.1" description = "OpenTelemetry Collector Protobuf over gRPC Exporter" optional = false python-versions = ">=3.8" groups = ["main"] files = [ - {file = "opentelemetry_exporter_otlp_proto_grpc-1.32.1-py3-none-any.whl", hash = "sha256:18f0bb17a732e73840eee562b760a40b6af6a4ab3e852bccf625c5fb04fbd2cd"}, - {file = "opentelemetry_exporter_otlp_proto_grpc-1.32.1.tar.gz", hash = "sha256:e01157104c9f5d81fb404b66db0653a75ec606754445491c831301480c2a3950"}, + {file = "opentelemetry_exporter_otlp_proto_grpc-1.33.1-py3-none-any.whl", hash = "sha256:7e8da32c7552b756e75b4f9e9c768a61eb47dee60b6550b37af541858d669ce1"}, + {file = "opentelemetry_exporter_otlp_proto_grpc-1.33.1.tar.gz", hash = "sha256:345696af8dc19785fac268c8063f3dc3d5e274c774b308c634f39d9c21955728"}, ] [package.dependencies] deprecated = ">=1.2.6" googleapis-common-protos = ">=1.52,<2.0" -grpcio = {version = ">=1.66.2,<2.0.0", markers = "python_version >= \"3.13\""} +grpcio = {version = ">=1.63.2,<2.0.0", markers = "python_version < \"3.13\""} opentelemetry-api = ">=1.15,<2.0" -opentelemetry-exporter-otlp-proto-common = "1.32.1" -opentelemetry-proto = "1.32.1" -opentelemetry-sdk = ">=1.32.1,<1.33.0" +opentelemetry-exporter-otlp-proto-common = "1.33.1" +opentelemetry-proto = "1.33.1" +opentelemetry-sdk = ">=1.33.1,<1.34.0" [[package]] name = "opentelemetry-instrumentation" -version = "0.53b1" +version = "0.54b1" description = "Instrumentation Tools & Auto Instrumentation for OpenTelemetry Python" optional = false python-versions = ">=3.8" groups = ["main"] files = [ - {file = "opentelemetry_instrumentation-0.53b1-py3-none-any.whl", hash = "sha256:c07850cecfbc51e8b357f56d5886ae5ccaa828635b220d0f5e78f941ea9a83ca"}, - {file = "opentelemetry_instrumentation-0.53b1.tar.gz", hash = "sha256:0e69ca2c75727e8a300de671c4a2ec0e86e63a8e906beaa5d6c9f5228e8687e5"}, + {file = "opentelemetry_instrumentation-0.54b1-py3-none-any.whl", hash = "sha256:a4ae45f4a90c78d7006c51524f57cd5aa1231aef031eae905ee34d5423f5b198"}, + {file = "opentelemetry_instrumentation-0.54b1.tar.gz", hash = "sha256:7658bf2ff914b02f246ec14779b66671508125c0e4227361e56b5ebf6cef0aec"}, ] [package.dependencies] opentelemetry-api = ">=1.4,<2.0" -opentelemetry-semantic-conventions = "0.53b1" +opentelemetry-semantic-conventions = "0.54b1" packaging = ">=18.0" wrapt = ">=1.0.0,<2.0.0" [[package]] name = "opentelemetry-instrumentation-asgi" -version = "0.53b1" +version = "0.54b1" description = "ASGI instrumentation for OpenTelemetry" optional = false python-versions = ">=3.8" groups = ["main"] files = [ - {file = "opentelemetry_instrumentation_asgi-0.53b1-py3-none-any.whl", hash = "sha256:5f8422eff0a9e3ecb052a8726335925610bb9bd7bb1acf1619c2c28dc3c04842"}, - {file = "opentelemetry_instrumentation_asgi-0.53b1.tar.gz", hash = "sha256:74b7a023787c574f2dd5ed9376e5b921c14501ba1b281ec8527eaadc442563e7"}, + {file = "opentelemetry_instrumentation_asgi-0.54b1-py3-none-any.whl", hash = "sha256:84674e822b89af563b283a5283c2ebb9ed585d1b80a1c27fb3ac20b562e9f9fc"}, + {file = "opentelemetry_instrumentation_asgi-0.54b1.tar.gz", hash = "sha256:ab4df9776b5f6d56a78413c2e8bbe44c90694c67c844a1297865dc1bd926ed3c"}, ] [package.dependencies] asgiref = ">=3.0,<4.0" opentelemetry-api = ">=1.12,<2.0" -opentelemetry-instrumentation = "0.53b1" -opentelemetry-semantic-conventions = "0.53b1" -opentelemetry-util-http = "0.53b1" +opentelemetry-instrumentation = "0.54b1" +opentelemetry-semantic-conventions = "0.54b1" +opentelemetry-util-http = "0.54b1" [package.extras] instruments = ["asgiref (>=3.0,<4.0)"] [[package]] name = "opentelemetry-instrumentation-fastapi" -version = "0.53b1" +version = "0.54b1" description = "OpenTelemetry FastAPI Instrumentation" optional = false python-versions = ">=3.8" groups = ["main"] files = [ - {file = "opentelemetry_instrumentation_fastapi-0.53b1-py3-none-any.whl", hash = "sha256:f8ed5b65e9086b86caeae191fcf798ec7b47469ac7f0341461acc03886278741"}, - {file = "opentelemetry_instrumentation_fastapi-0.53b1.tar.gz", hash = "sha256:24e98ddd1bd8164069e68e36c47bb729fefb0a851e6dd520f4fc81c3bbc54147"}, + {file = "opentelemetry_instrumentation_fastapi-0.54b1-py3-none-any.whl", hash = "sha256:fb247781cfa75fd09d3d8713c65e4a02bd1e869b00e2c322cc516d4b5429860c"}, + {file = "opentelemetry_instrumentation_fastapi-0.54b1.tar.gz", hash = "sha256:1fcad19cef0db7092339b571a59e6f3045c9b58b7fd4670183f7addc459d78df"}, ] [package.dependencies] opentelemetry-api = ">=1.12,<2.0" -opentelemetry-instrumentation = "0.53b1" -opentelemetry-instrumentation-asgi = "0.53b1" -opentelemetry-semantic-conventions = "0.53b1" -opentelemetry-util-http = "0.53b1" +opentelemetry-instrumentation = "0.54b1" +opentelemetry-instrumentation-asgi = "0.54b1" +opentelemetry-semantic-conventions = "0.54b1" +opentelemetry-util-http = "0.54b1" [package.extras] instruments = ["fastapi (>=0.58,<1.0)"] [[package]] name = "opentelemetry-proto" -version = "1.32.1" +version = "1.33.1" description = "OpenTelemetry Python Proto" optional = false python-versions = ">=3.8" groups = ["main"] files = [ - {file = "opentelemetry_proto-1.32.1-py3-none-any.whl", hash = "sha256:fe56df31033ab0c40af7525f8bf4c487313377bbcfdf94184b701a8ccebc800e"}, - {file = "opentelemetry_proto-1.32.1.tar.gz", hash = "sha256:bc6385ccf87768f029371535312071a2d09e6c9ebf119ac17dbc825a6a56ba53"}, + {file = "opentelemetry_proto-1.33.1-py3-none-any.whl", hash = "sha256:243d285d9f29663fc7ea91a7171fcc1ccbbfff43b48df0774fd64a37d98eda70"}, + {file = "opentelemetry_proto-1.33.1.tar.gz", hash = "sha256:9627b0a5c90753bf3920c398908307063e4458b287bb890e5c1d6fa11ad50b68"}, ] [package.dependencies] @@ -1760,47 +2341,47 @@ protobuf = ">=5.0,<6.0" [[package]] name = "opentelemetry-sdk" -version = "1.32.1" +version = "1.33.1" description = "OpenTelemetry Python SDK" optional = false python-versions = ">=3.8" groups = ["main"] files = [ - {file = "opentelemetry_sdk-1.32.1-py3-none-any.whl", hash = "sha256:bba37b70a08038613247bc42beee5a81b0ddca422c7d7f1b097b32bf1c7e2f17"}, - {file = "opentelemetry_sdk-1.32.1.tar.gz", hash = "sha256:8ef373d490961848f525255a42b193430a0637e064dd132fd2a014d94792a092"}, + {file = "opentelemetry_sdk-1.33.1-py3-none-any.whl", hash = "sha256:19ea73d9a01be29cacaa5d6c8ce0adc0b7f7b4d58cc52f923e4413609f670112"}, + {file = "opentelemetry_sdk-1.33.1.tar.gz", hash = "sha256:85b9fcf7c3d23506fbc9692fd210b8b025a1920535feec50bd54ce203d57a531"}, ] [package.dependencies] -opentelemetry-api = "1.32.1" -opentelemetry-semantic-conventions = "0.53b1" +opentelemetry-api = "1.33.1" +opentelemetry-semantic-conventions = "0.54b1" typing-extensions = ">=3.7.4" [[package]] name = "opentelemetry-semantic-conventions" -version = "0.53b1" +version = "0.54b1" description = "OpenTelemetry Semantic Conventions" optional = false python-versions = ">=3.8" groups = ["main"] files = [ - {file = "opentelemetry_semantic_conventions-0.53b1-py3-none-any.whl", hash = "sha256:21df3ed13f035f8f3ea42d07cbebae37020367a53b47f1ebee3b10a381a00208"}, - {file = "opentelemetry_semantic_conventions-0.53b1.tar.gz", hash = "sha256:4c5a6fede9de61211b2e9fc1e02e8acacce882204cd770177342b6a3be682992"}, + {file = "opentelemetry_semantic_conventions-0.54b1-py3-none-any.whl", hash = "sha256:29dab644a7e435b58d3a3918b58c333c92686236b30f7891d5e51f02933ca60d"}, + {file = "opentelemetry_semantic_conventions-0.54b1.tar.gz", hash = "sha256:d1cecedae15d19bdaafca1e56b29a66aa286f50b5d08f036a145c7f3e9ef9cee"}, ] [package.dependencies] deprecated = ">=1.2.6" -opentelemetry-api = "1.32.1" +opentelemetry-api = "1.33.1" [[package]] name = "opentelemetry-util-http" -version = "0.53b1" +version = "0.54b1" description = "Web util for OpenTelemetry" optional = false python-versions = ">=3.8" groups = ["main"] files = [ - {file = "opentelemetry_util_http-0.53b1-py3-none-any.whl", hash = "sha256:ee7ecc1cbe4598535a95eaf7742f80c0c924843bf8f7ef3bab4963a228a94dd0"}, - {file = "opentelemetry_util_http-0.53b1.tar.gz", hash = "sha256:7b0356584400b3406a643e244d36ff1bbb7c95e3b5ed0509d212e4a11c050a0e"}, + {file = "opentelemetry_util_http-0.54b1-py3-none-any.whl", hash = "sha256:b1c91883f980344a1c3c486cffd47ae5c9c1dd7323f9cbe9fdb7cadb401c87c9"}, + {file = "opentelemetry_util_http-0.54b1.tar.gz", hash = "sha256:f0b66868c19fbaf9c9d4e11f4a7599fa15d5ea50b884967a26ccd9d72c7c9d15"}, ] [[package]] @@ -1895,14 +2476,14 @@ files = [ [[package]] name = "packaging" -version = "25.0" +version = "24.2" description = "Core utilities for Python packages" optional = false python-versions = ">=3.8" -groups = ["main"] +groups = ["main", "dev", "docs"] files = [ - {file = "packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484"}, - {file = "packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f"}, + {file = "packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759"}, + {file = "packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f"}, ] [[package]] @@ -1958,7 +2539,7 @@ files = [ ] [package.dependencies] -numpy = {version = ">=1.26.0", markers = "python_version >= \"3.12\""} +numpy = {version = ">=1.22.4", markers = "python_version < \"3.11\""} python-dateutil = ">=2.8.2" pytz = ">=2020.1" tzdata = ">=2022.7" @@ -1988,6 +2569,33 @@ sql-other = ["SQLAlchemy (>=2.0.0)", "adbc-driver-postgresql (>=0.8.0)", "adbc-d test = ["hypothesis (>=6.46.1)", "pytest (>=7.3.2)", "pytest-xdist (>=2.2.0)"] xml = ["lxml (>=4.9.2)"] +[[package]] +name = "pathspec" +version = "0.12.1" +description = "Utility library for gitignore style pattern matching of file paths." +optional = false +python-versions = ">=3.8" +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 = "pbr" +version = "6.1.1" +description = "Python Build Reasonableness" +optional = false +python-versions = ">=2.6" +groups = ["dev"] +files = [ + {file = "pbr-6.1.1-py2.py3-none-any.whl", hash = "sha256:38d4daea5d9fa63b3f626131b9d34947fd0c8be9b05a29276870580050a25a76"}, + {file = "pbr-6.1.1.tar.gz", hash = "sha256:93ea72ce6989eb2eed99d0f75721474f69ad88128afdef5ac377eb797c4bf76b"}, +] + +[package.dependencies] +setuptools = "*" + [[package]] name = "pillow" version = "11.2.1" @@ -2088,6 +2696,39 @@ tests = ["check-manifest", "coverage (>=7.4.2)", "defusedxml", "markdown2", "ole typing = ["typing-extensions ; python_version < \"3.10\""] xmp = ["defusedxml"] +[[package]] +name = "platformdirs" +version = "4.3.8" +description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." +optional = false +python-versions = ">=3.9" +groups = ["dev"] +files = [ + {file = "platformdirs-4.3.8-py3-none-any.whl", hash = "sha256:ff7059bb7eb1179e2685604f4aaf157cfd9535242bd23742eadc3c13542139b4"}, + {file = "platformdirs-4.3.8.tar.gz", hash = "sha256:3d512d96e16bcb959a814c9f348431070822a6496326a4be0911c40b5a74c2bc"}, +] + +[package.extras] +docs = ["furo (>=2024.8.6)", "proselint (>=0.14)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"] +test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=8.3.4)", "pytest-cov (>=6)", "pytest-mock (>=3.14)"] +type = ["mypy (>=1.14.1)"] + +[[package]] +name = "pluggy" +version = "1.6.0" +description = "plugin and hook calling mechanisms for python" +optional = false +python-versions = ">=3.9" +groups = ["dev"] +files = [ + {file = "pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746"}, + {file = "pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3"}, +] + +[package.extras] +dev = ["pre-commit", "tox"] +testing = ["coverage", "pytest", "pytest-benchmark"] + [[package]] name = "posthog" version = "4.0.0" @@ -2153,6 +2794,37 @@ files = [ {file = "protobuf-5.29.4.tar.gz", hash = "sha256:4f1dfcd7997b31ef8f53ec82781ff434a28bf71d9102ddde14d076adcfc78c99"}, ] +[[package]] +name = "psutil" +version = "6.1.1" +description = "Cross-platform lib for process and system monitoring in Python." +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7" +groups = ["dev"] +files = [ + {file = "psutil-6.1.1-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:9ccc4316f24409159897799b83004cb1e24f9819b0dcf9c0b68bdcb6cefee6a8"}, + {file = "psutil-6.1.1-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:ca9609c77ea3b8481ab005da74ed894035936223422dc591d6772b147421f777"}, + {file = "psutil-6.1.1-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:8df0178ba8a9e5bc84fed9cfa61d54601b371fbec5c8eebad27575f1e105c0d4"}, + {file = "psutil-6.1.1-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:1924e659d6c19c647e763e78670a05dbb7feaf44a0e9c94bf9e14dfc6ba50468"}, + {file = "psutil-6.1.1-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:018aeae2af92d943fdf1da6b58665124897cfc94faa2ca92098838f83e1b1bca"}, + {file = "psutil-6.1.1-cp27-none-win32.whl", hash = "sha256:6d4281f5bbca041e2292be3380ec56a9413b790579b8e593b1784499d0005dac"}, + {file = "psutil-6.1.1-cp27-none-win_amd64.whl", hash = "sha256:c777eb75bb33c47377c9af68f30e9f11bc78e0f07fbf907be4a5d70b2fe5f030"}, + {file = "psutil-6.1.1-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:fc0ed7fe2231a444fc219b9c42d0376e0a9a1a72f16c5cfa0f68d19f1a0663e8"}, + {file = "psutil-6.1.1-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:0bdd4eab935276290ad3cb718e9809412895ca6b5b334f5a9111ee6d9aff9377"}, + {file = "psutil-6.1.1-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b6e06c20c05fe95a3d7302d74e7097756d4ba1247975ad6905441ae1b5b66003"}, + {file = "psutil-6.1.1-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:97f7cb9921fbec4904f522d972f0c0e1f4fabbdd4e0287813b21215074a0f160"}, + {file = "psutil-6.1.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:33431e84fee02bc84ea36d9e2c4a6d395d479c9dd9bba2376c1f6ee8f3a4e0b3"}, + {file = "psutil-6.1.1-cp36-cp36m-win32.whl", hash = "sha256:384636b1a64b47814437d1173be1427a7c83681b17a450bfc309a1953e329603"}, + {file = "psutil-6.1.1-cp36-cp36m-win_amd64.whl", hash = "sha256:8be07491f6ebe1a693f17d4f11e69d0dc1811fa082736500f649f79df7735303"}, + {file = "psutil-6.1.1-cp37-abi3-win32.whl", hash = "sha256:eaa912e0b11848c4d9279a93d7e2783df352b082f40111e078388701fd479e53"}, + {file = "psutil-6.1.1-cp37-abi3-win_amd64.whl", hash = "sha256:f35cfccb065fff93529d2afb4a2e89e363fe63ca1e4a5da22b603a85833c2649"}, + {file = "psutil-6.1.1.tar.gz", hash = "sha256:cf8496728c18f2d0b45198f06895be52f36611711746b7f30c464b422b50e2f5"}, +] + +[package.extras] +dev = ["abi3audit", "black", "check-manifest", "coverage", "packaging", "pylint", "pyperf", "pypinfo", "pytest-cov", "requests", "rstcheck", "ruff", "sphinx", "sphinx_rtd_theme", "toml-sort", "twine", "virtualenv", "vulture", "wheel"] +test = ["pytest", "pytest-xdist", "setuptools"] + [[package]] name = "pyasn1" version = "0.6.1" @@ -2180,135 +2852,137 @@ files = [ [package.dependencies] pyasn1 = ">=0.6.1,<0.7.0" +[[package]] +name = "pycparser" +version = "2.22" +description = "C parser in Python" +optional = false +python-versions = ">=3.8" +groups = ["dev"] +markers = "platform_python_implementation != \"PyPy\"" +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.3" +version = "2.9.2" description = "Data validation using Python type hints" optional = false -python-versions = ">=3.9" -groups = ["main"] +python-versions = ">=3.8" +groups = ["main", "dev"] files = [ - {file = "pydantic-2.11.3-py3-none-any.whl", hash = "sha256:a082753436a07f9ba1289c6ffa01cd93db3548776088aa917cc43b63f68fa60f"}, - {file = "pydantic-2.11.3.tar.gz", hash = "sha256:7471657138c16adad9322fe3070c0116dd6c3ad8d649300e3cbdfe91f4db4ec3"}, + {file = "pydantic-2.9.2-py3-none-any.whl", hash = "sha256:f048cec7b26778210e28a0459867920654d48e5e62db0958433636cde4254f12"}, + {file = "pydantic-2.9.2.tar.gz", hash = "sha256:d155cef71265d1e9807ed1c32b4c8deec042a44a50a4188b25ac67ecd81a9c0f"}, ] [package.dependencies] annotated-types = ">=0.6.0" -pydantic-core = "2.33.1" -typing-extensions = ">=4.12.2" -typing-inspection = ">=0.4.0" +pydantic-core = "2.23.4" +typing-extensions = {version = ">=4.6.1", markers = "python_version < \"3.13\""} [package.extras] email = ["email-validator (>=2.0.0)"] -timezone = ["tzdata ; python_version >= \"3.9\" and platform_system == \"Windows\""] +timezone = ["tzdata ; python_version >= \"3.9\" and sys_platform == \"win32\""] [[package]] name = "pydantic-core" -version = "2.33.1" +version = "2.23.4" description = "Core functionality for Pydantic validation and serialization" optional = false -python-versions = ">=3.9" -groups = ["main"] -files = [ - {file = "pydantic_core-2.33.1-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:3077cfdb6125cc8dab61b155fdd714663e401f0e6883f9632118ec12cf42df26"}, - {file = "pydantic_core-2.33.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8ffab8b2908d152e74862d276cf5017c81a2f3719f14e8e3e8d6b83fda863927"}, - {file = "pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5183e4f6a2d468787243ebcd70cf4098c247e60d73fb7d68d5bc1e1beaa0c4db"}, - {file = "pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:398a38d323f37714023be1e0285765f0a27243a8b1506b7b7de87b647b517e48"}, - {file = "pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:87d3776f0001b43acebfa86f8c64019c043b55cc5a6a2e313d728b5c95b46969"}, - {file = "pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c566dd9c5f63d22226409553531f89de0cac55397f2ab8d97d6f06cfce6d947e"}, - {file = "pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a0d5f3acc81452c56895e90643a625302bd6be351e7010664151cc55b7b97f89"}, - {file = "pydantic_core-2.33.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d3a07fadec2a13274a8d861d3d37c61e97a816beae717efccaa4b36dfcaadcde"}, - {file = "pydantic_core-2.33.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:f99aeda58dce827f76963ee87a0ebe75e648c72ff9ba1174a253f6744f518f65"}, - {file = "pydantic_core-2.33.1-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:902dbc832141aa0ec374f4310f1e4e7febeebc3256f00dc359a9ac3f264a45dc"}, - {file = "pydantic_core-2.33.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:fe44d56aa0b00d66640aa84a3cbe80b7a3ccdc6f0b1ca71090696a6d4777c091"}, - {file = "pydantic_core-2.33.1-cp310-cp310-win32.whl", hash = "sha256:ed3eb16d51257c763539bde21e011092f127a2202692afaeaccb50db55a31383"}, - {file = "pydantic_core-2.33.1-cp310-cp310-win_amd64.whl", hash = "sha256:694ad99a7f6718c1a498dc170ca430687a39894a60327f548e02a9c7ee4b6504"}, - {file = "pydantic_core-2.33.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:6e966fc3caaf9f1d96b349b0341c70c8d6573bf1bac7261f7b0ba88f96c56c24"}, - {file = "pydantic_core-2.33.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bfd0adeee563d59c598ceabddf2c92eec77abcb3f4a391b19aa7366170bd9e30"}, - {file = "pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91815221101ad3c6b507804178a7bb5cb7b2ead9ecd600041669c8d805ebd595"}, - {file = "pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9fea9c1869bb4742d174a57b4700c6dadea951df8b06de40c2fedb4f02931c2e"}, - {file = "pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1d20eb4861329bb2484c021b9d9a977566ab16d84000a57e28061151c62b349a"}, - {file = "pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0fb935c5591573ae3201640579f30128ccc10739b45663f93c06796854405505"}, - {file = "pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c964fd24e6166420d18fb53996d8c9fd6eac9bf5ae3ec3d03015be4414ce497f"}, - {file = "pydantic_core-2.33.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:681d65e9011f7392db5aa002b7423cc442d6a673c635668c227c6c8d0e5a4f77"}, - {file = "pydantic_core-2.33.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e100c52f7355a48413e2999bfb4e139d2977a904495441b374f3d4fb4a170961"}, - {file = "pydantic_core-2.33.1-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:048831bd363490be79acdd3232f74a0e9951b11b2b4cc058aeb72b22fdc3abe1"}, - {file = "pydantic_core-2.33.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:bdc84017d28459c00db6f918a7272a5190bec3090058334e43a76afb279eac7c"}, - {file = "pydantic_core-2.33.1-cp311-cp311-win32.whl", hash = "sha256:32cd11c5914d1179df70406427097c7dcde19fddf1418c787540f4b730289896"}, - {file = "pydantic_core-2.33.1-cp311-cp311-win_amd64.whl", hash = "sha256:2ea62419ba8c397e7da28a9170a16219d310d2cf4970dbc65c32faf20d828c83"}, - {file = "pydantic_core-2.33.1-cp311-cp311-win_arm64.whl", hash = "sha256:fc903512177361e868bc1f5b80ac8c8a6e05fcdd574a5fb5ffeac5a9982b9e89"}, - {file = "pydantic_core-2.33.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:1293d7febb995e9d3ec3ea09caf1a26214eec45b0f29f6074abb004723fc1de8"}, - {file = "pydantic_core-2.33.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:99b56acd433386c8f20be5c4000786d1e7ca0523c8eefc995d14d79c7a081498"}, - {file = "pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:35a5ec3fa8c2fe6c53e1b2ccc2454398f95d5393ab398478f53e1afbbeb4d939"}, - {file = "pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b172f7b9d2f3abc0efd12e3386f7e48b576ef309544ac3a63e5e9cdd2e24585d"}, - {file = "pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9097b9f17f91eea659b9ec58148c0747ec354a42f7389b9d50701610d86f812e"}, - {file = "pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cc77ec5b7e2118b152b0d886c7514a4653bcb58c6b1d760134a9fab915f777b3"}, - {file = "pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d5e3d15245b08fa4a84cefc6c9222e6f37c98111c8679fbd94aa145f9a0ae23d"}, - {file = "pydantic_core-2.33.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ef99779001d7ac2e2461d8ab55d3373fe7315caefdbecd8ced75304ae5a6fc6b"}, - {file = "pydantic_core-2.33.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:fc6bf8869e193855e8d91d91f6bf59699a5cdfaa47a404e278e776dd7f168b39"}, - {file = "pydantic_core-2.33.1-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:b1caa0bc2741b043db7823843e1bde8aaa58a55a58fda06083b0569f8b45693a"}, - {file = "pydantic_core-2.33.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:ec259f62538e8bf364903a7d0d0239447059f9434b284f5536e8402b7dd198db"}, - {file = "pydantic_core-2.33.1-cp312-cp312-win32.whl", hash = "sha256:e14f369c98a7c15772b9da98987f58e2b509a93235582838bd0d1d8c08b68fda"}, - {file = "pydantic_core-2.33.1-cp312-cp312-win_amd64.whl", hash = "sha256:1c607801d85e2e123357b3893f82c97a42856192997b95b4d8325deb1cd0c5f4"}, - {file = "pydantic_core-2.33.1-cp312-cp312-win_arm64.whl", hash = "sha256:8d13f0276806ee722e70a1c93da19748594f19ac4299c7e41237fc791d1861ea"}, - {file = "pydantic_core-2.33.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:70af6a21237b53d1fe7b9325b20e65cbf2f0a848cf77bed492b029139701e66a"}, - {file = "pydantic_core-2.33.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:282b3fe1bbbe5ae35224a0dbd05aed9ccabccd241e8e6b60370484234b456266"}, - {file = "pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4b315e596282bbb5822d0c7ee9d255595bd7506d1cb20c2911a4da0b970187d3"}, - {file = "pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1dfae24cf9921875ca0ca6a8ecb4bb2f13c855794ed0d468d6abbec6e6dcd44a"}, - {file = "pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6dd8ecfde08d8bfadaea669e83c63939af76f4cf5538a72597016edfa3fad516"}, - {file = "pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2f593494876eae852dc98c43c6f260f45abdbfeec9e4324e31a481d948214764"}, - {file = "pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:948b73114f47fd7016088e5186d13faf5e1b2fe83f5e320e371f035557fd264d"}, - {file = "pydantic_core-2.33.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e11f3864eb516af21b01e25fac915a82e9ddad3bb0fb9e95a246067398b435a4"}, - {file = "pydantic_core-2.33.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:549150be302428b56fdad0c23c2741dcdb5572413776826c965619a25d9c6bde"}, - {file = "pydantic_core-2.33.1-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:495bc156026efafd9ef2d82372bd38afce78ddd82bf28ef5276c469e57c0c83e"}, - {file = "pydantic_core-2.33.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ec79de2a8680b1a67a07490bddf9636d5c2fab609ba8c57597e855fa5fa4dacd"}, - {file = "pydantic_core-2.33.1-cp313-cp313-win32.whl", hash = "sha256:ee12a7be1742f81b8a65b36c6921022301d466b82d80315d215c4c691724986f"}, - {file = "pydantic_core-2.33.1-cp313-cp313-win_amd64.whl", hash = "sha256:ede9b407e39949d2afc46385ce6bd6e11588660c26f80576c11c958e6647bc40"}, - {file = "pydantic_core-2.33.1-cp313-cp313-win_arm64.whl", hash = "sha256:aa687a23d4b7871a00e03ca96a09cad0f28f443690d300500603bd0adba4b523"}, - {file = "pydantic_core-2.33.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:401d7b76e1000d0dd5538e6381d28febdcacb097c8d340dde7d7fc6e13e9f95d"}, - {file = "pydantic_core-2.33.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7aeb055a42d734c0255c9e489ac67e75397d59c6fbe60d155851e9782f276a9c"}, - {file = "pydantic_core-2.33.1-cp313-cp313t-win_amd64.whl", hash = "sha256:338ea9b73e6e109f15ab439e62cb3b78aa752c7fd9536794112e14bee02c8d18"}, - {file = "pydantic_core-2.33.1-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:5ab77f45d33d264de66e1884fca158bc920cb5e27fd0764a72f72f5756ae8bdb"}, - {file = "pydantic_core-2.33.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e7aaba1b4b03aaea7bb59e1b5856d734be011d3e6d98f5bcaa98cb30f375f2ad"}, - {file = "pydantic_core-2.33.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7fb66263e9ba8fea2aa85e1e5578980d127fb37d7f2e292773e7bc3a38fb0c7b"}, - {file = "pydantic_core-2.33.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3f2648b9262607a7fb41d782cc263b48032ff7a03a835581abbf7a3bec62bcf5"}, - {file = "pydantic_core-2.33.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:723c5630c4259400818b4ad096735a829074601805d07f8cafc366d95786d331"}, - {file = "pydantic_core-2.33.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d100e3ae783d2167782391e0c1c7a20a31f55f8015f3293647544df3f9c67824"}, - {file = "pydantic_core-2.33.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:177d50460bc976a0369920b6c744d927b0ecb8606fb56858ff542560251b19e5"}, - {file = "pydantic_core-2.33.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a3edde68d1a1f9af1273b2fe798997b33f90308fb6d44d8550c89fc6a3647cf6"}, - {file = "pydantic_core-2.33.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:a62c3c3ef6a7e2c45f7853b10b5bc4ddefd6ee3cd31024754a1a5842da7d598d"}, - {file = "pydantic_core-2.33.1-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:c91dbb0ab683fa0cd64a6e81907c8ff41d6497c346890e26b23de7ee55353f96"}, - {file = "pydantic_core-2.33.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:9f466e8bf0a62dc43e068c12166281c2eca72121dd2adc1040f3aa1e21ef8599"}, - {file = "pydantic_core-2.33.1-cp39-cp39-win32.whl", hash = "sha256:ab0277cedb698749caada82e5d099dc9fed3f906a30d4c382d1a21725777a1e5"}, - {file = "pydantic_core-2.33.1-cp39-cp39-win_amd64.whl", hash = "sha256:5773da0ee2d17136b1f1c6fbde543398d452a6ad2a7b54ea1033e2daa739b8d2"}, - {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:5c834f54f8f4640fd7e4b193f80eb25a0602bba9e19b3cd2fc7ffe8199f5ae02"}, - {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:049e0de24cf23766f12cc5cc71d8abc07d4a9deb9061b334b62093dedc7cb068"}, - {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a28239037b3d6f16916a4c831a5a0eadf856bdd6d2e92c10a0da3a59eadcf3e"}, - {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9d3da303ab5f378a268fa7d45f37d7d85c3ec19769f28d2cc0c61826a8de21fe"}, - {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:25626fb37b3c543818c14821afe0fd3830bc327a43953bc88db924b68c5723f1"}, - {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:3ab2d36e20fbfcce8f02d73c33a8a7362980cff717926bbae030b93ae46b56c7"}, - {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:2f9284e11c751b003fd4215ad92d325d92c9cb19ee6729ebd87e3250072cdcde"}, - {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:048c01eee07d37cbd066fc512b9d8b5ea88ceeb4e629ab94b3e56965ad655add"}, - {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:5ccd429694cf26af7997595d627dd2637e7932214486f55b8a357edaac9dae8c"}, - {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:3a371dc00282c4b84246509a5ddc808e61b9864aa1eae9ecc92bb1268b82db4a"}, - {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:f59295ecc75a1788af8ba92f2e8c6eeaa5a94c22fc4d151e8d9638814f85c8fc"}, - {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:08530b8ac922003033f399128505f513e30ca770527cc8bbacf75a84fcc2c74b"}, - {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bae370459da6a5466978c0eacf90690cb57ec9d533f8e63e564ef3822bfa04fe"}, - {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e3de2777e3b9f4d603112f78006f4ae0acb936e95f06da6cb1a45fbad6bdb4b5"}, - {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:3a64e81e8cba118e108d7126362ea30e021291b7805d47e4896e52c791be2761"}, - {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:52928d8c1b6bda03cc6d811e8923dffc87a2d3c8b3bfd2ce16471c7147a24850"}, - {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:1b30d92c9412beb5ac6b10a3eb7ef92ccb14e3f2a8d7732e2d739f58b3aa7544"}, - {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:f995719707e0e29f0f41a8aa3bcea6e761a36c9136104d3189eafb83f5cec5e5"}, - {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:7edbc454a29fc6aeae1e1eecba4f07b63b8d76e76a748532233c4c167b4cb9ea"}, - {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:ad05b683963f69a1d5d2c2bdab1274a31221ca737dbbceaa32bcb67359453cdd"}, - {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df6a94bf9452c6da9b5d76ed229a5683d0306ccb91cca8e1eea883189780d568"}, - {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7965c13b3967909a09ecc91f21d09cfc4576bf78140b988904e94f130f188396"}, - {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:3f1fdb790440a34f6ecf7679e1863b825cb5ffde858a9197f851168ed08371e5"}, - {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:5277aec8d879f8d05168fdd17ae811dd313b8ff894aeeaf7cd34ad28b4d77e33"}, - {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:8ab581d3530611897d863d1a649fb0644b860286b4718db919bfd51ece41f10b"}, - {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:0483847fa9ad5e3412265c1bd72aad35235512d9ce9d27d81a56d935ef489672"}, - {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:de9e06abe3cc5ec6a2d5f75bc99b0bdca4f5c719a5b34026f8c57efbdecd2ee3"}, - {file = "pydantic_core-2.33.1.tar.gz", hash = "sha256:bcc9c6fdb0ced789245b02b7d6603e17d1563064ddcfc36f046b61c0c05dd9df"}, +python-versions = ">=3.8" +groups = ["main", "dev"] +files = [ + {file = "pydantic_core-2.23.4-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:b10bd51f823d891193d4717448fab065733958bdb6a6b351967bd349d48d5c9b"}, + {file = "pydantic_core-2.23.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4fc714bdbfb534f94034efaa6eadd74e5b93c8fa6315565a222f7b6f42ca1166"}, + {file = "pydantic_core-2.23.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:63e46b3169866bd62849936de036f901a9356e36376079b05efa83caeaa02ceb"}, + {file = "pydantic_core-2.23.4-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ed1a53de42fbe34853ba90513cea21673481cd81ed1be739f7f2efb931b24916"}, + {file = "pydantic_core-2.23.4-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cfdd16ab5e59fc31b5e906d1a3f666571abc367598e3e02c83403acabc092e07"}, + {file = "pydantic_core-2.23.4-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:255a8ef062cbf6674450e668482456abac99a5583bbafb73f9ad469540a3a232"}, + {file = "pydantic_core-2.23.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4a7cd62e831afe623fbb7aabbb4fe583212115b3ef38a9f6b71869ba644624a2"}, + {file = "pydantic_core-2.23.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f09e2ff1f17c2b51f2bc76d1cc33da96298f0a036a137f5440ab3ec5360b624f"}, + {file = "pydantic_core-2.23.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e38e63e6f3d1cec5a27e0afe90a085af8b6806ee208b33030e65b6516353f1a3"}, + {file = "pydantic_core-2.23.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:0dbd8dbed2085ed23b5c04afa29d8fd2771674223135dc9bc937f3c09284d071"}, + {file = "pydantic_core-2.23.4-cp310-none-win32.whl", hash = "sha256:6531b7ca5f951d663c339002e91aaebda765ec7d61b7d1e3991051906ddde119"}, + {file = "pydantic_core-2.23.4-cp310-none-win_amd64.whl", hash = "sha256:7c9129eb40958b3d4500fa2467e6a83356b3b61bfff1b414c7361d9220f9ae8f"}, + {file = "pydantic_core-2.23.4-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:77733e3892bb0a7fa797826361ce8a9184d25c8dffaec60b7ffe928153680ba8"}, + {file = "pydantic_core-2.23.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1b84d168f6c48fabd1f2027a3d1bdfe62f92cade1fb273a5d68e621da0e44e6d"}, + {file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df49e7a0861a8c36d089c1ed57d308623d60416dab2647a4a17fe050ba85de0e"}, + {file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ff02b6d461a6de369f07ec15e465a88895f3223eb75073ffea56b84d9331f607"}, + {file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:996a38a83508c54c78a5f41456b0103c30508fed9abcad0a59b876d7398f25fd"}, + {file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d97683ddee4723ae8c95d1eddac7c192e8c552da0c73a925a89fa8649bf13eea"}, + {file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:216f9b2d7713eb98cb83c80b9c794de1f6b7e3145eef40400c62e86cee5f4e1e"}, + {file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6f783e0ec4803c787bcea93e13e9932edab72068f68ecffdf86a99fd5918878b"}, + {file = "pydantic_core-2.23.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:d0776dea117cf5272382634bd2a5c1b6eb16767c223c6a5317cd3e2a757c61a0"}, + {file = "pydantic_core-2.23.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:d5f7a395a8cf1621939692dba2a6b6a830efa6b3cee787d82c7de1ad2930de64"}, + {file = "pydantic_core-2.23.4-cp311-none-win32.whl", hash = "sha256:74b9127ffea03643e998e0c5ad9bd3811d3dac8c676e47db17b0ee7c3c3bf35f"}, + {file = "pydantic_core-2.23.4-cp311-none-win_amd64.whl", hash = "sha256:98d134c954828488b153d88ba1f34e14259284f256180ce659e8d83e9c05eaa3"}, + {file = "pydantic_core-2.23.4-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:f3e0da4ebaef65158d4dfd7d3678aad692f7666877df0002b8a522cdf088f231"}, + {file = "pydantic_core-2.23.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f69a8e0b033b747bb3e36a44e7732f0c99f7edd5cea723d45bc0d6e95377ffee"}, + {file = "pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:723314c1d51722ab28bfcd5240d858512ffd3116449c557a1336cbe3919beb87"}, + {file = "pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bb2802e667b7051a1bebbfe93684841cc9351004e2badbd6411bf357ab8d5ac8"}, + {file = "pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d18ca8148bebe1b0a382a27a8ee60350091a6ddaf475fa05ef50dc35b5df6327"}, + {file = "pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:33e3d65a85a2a4a0dc3b092b938a4062b1a05f3a9abde65ea93b233bca0e03f2"}, + {file = "pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:128585782e5bfa515c590ccee4b727fb76925dd04a98864182b22e89a4e6ed36"}, + {file = "pydantic_core-2.23.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:68665f4c17edcceecc112dfed5dbe6f92261fb9d6054b47d01bf6371a6196126"}, + {file = "pydantic_core-2.23.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:20152074317d9bed6b7a95ade3b7d6054845d70584216160860425f4fbd5ee9e"}, + {file = "pydantic_core-2.23.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:9261d3ce84fa1d38ed649c3638feefeae23d32ba9182963e465d58d62203bd24"}, + {file = "pydantic_core-2.23.4-cp312-none-win32.whl", hash = "sha256:4ba762ed58e8d68657fc1281e9bb72e1c3e79cc5d464be146e260c541ec12d84"}, + {file = "pydantic_core-2.23.4-cp312-none-win_amd64.whl", hash = "sha256:97df63000f4fea395b2824da80e169731088656d1818a11b95f3b173747b6cd9"}, + {file = "pydantic_core-2.23.4-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:7530e201d10d7d14abce4fb54cfe5b94a0aefc87da539d0346a484ead376c3cc"}, + {file = "pydantic_core-2.23.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:df933278128ea1cd77772673c73954e53a1c95a4fdf41eef97c2b779271bd0bd"}, + {file = "pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cb3da3fd1b6a5d0279a01877713dbda118a2a4fc6f0d821a57da2e464793f05"}, + {file = "pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:42c6dcb030aefb668a2b7009c85b27f90e51e6a3b4d5c9bc4c57631292015b0d"}, + {file = "pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:696dd8d674d6ce621ab9d45b205df149399e4bb9aa34102c970b721554828510"}, + {file = "pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2971bb5ffe72cc0f555c13e19b23c85b654dd2a8f7ab493c262071377bfce9f6"}, + {file = "pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8394d940e5d400d04cad4f75c0598665cbb81aecefaca82ca85bd28264af7f9b"}, + {file = "pydantic_core-2.23.4-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0dff76e0602ca7d4cdaacc1ac4c005e0ce0dcfe095d5b5259163a80d3a10d327"}, + {file = "pydantic_core-2.23.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:7d32706badfe136888bdea71c0def994644e09fff0bfe47441deaed8e96fdbc6"}, + {file = "pydantic_core-2.23.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ed541d70698978a20eb63d8c5d72f2cc6d7079d9d90f6b50bad07826f1320f5f"}, + {file = "pydantic_core-2.23.4-cp313-none-win32.whl", hash = "sha256:3d5639516376dce1940ea36edf408c554475369f5da2abd45d44621cb616f769"}, + {file = "pydantic_core-2.23.4-cp313-none-win_amd64.whl", hash = "sha256:5a1504ad17ba4210df3a045132a7baeeba5a200e930f57512ee02909fc5c4cb5"}, + {file = "pydantic_core-2.23.4-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:d4488a93b071c04dc20f5cecc3631fc78b9789dd72483ba15d423b5b3689b555"}, + {file = "pydantic_core-2.23.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:81965a16b675b35e1d09dd14df53f190f9129c0202356ed44ab2728b1c905658"}, + {file = "pydantic_core-2.23.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4ffa2ebd4c8530079140dd2d7f794a9d9a73cbb8e9d59ffe24c63436efa8f271"}, + {file = "pydantic_core-2.23.4-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:61817945f2fe7d166e75fbfb28004034b48e44878177fc54d81688e7b85a3665"}, + {file = "pydantic_core-2.23.4-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:29d2c342c4bc01b88402d60189f3df065fb0dda3654744d5a165a5288a657368"}, + {file = "pydantic_core-2.23.4-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5e11661ce0fd30a6790e8bcdf263b9ec5988e95e63cf901972107efc49218b13"}, + {file = "pydantic_core-2.23.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9d18368b137c6295db49ce7218b1a9ba15c5bc254c96d7c9f9e924a9bc7825ad"}, + {file = "pydantic_core-2.23.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ec4e55f79b1c4ffb2eecd8a0cfba9955a2588497d96851f4c8f99aa4a1d39b12"}, + {file = "pydantic_core-2.23.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:374a5e5049eda9e0a44c696c7ade3ff355f06b1fe0bb945ea3cac2bc336478a2"}, + {file = "pydantic_core-2.23.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:5c364564d17da23db1106787675fc7af45f2f7b58b4173bfdd105564e132e6fb"}, + {file = "pydantic_core-2.23.4-cp38-none-win32.whl", hash = "sha256:d7a80d21d613eec45e3d41eb22f8f94ddc758a6c4720842dc74c0581f54993d6"}, + {file = "pydantic_core-2.23.4-cp38-none-win_amd64.whl", hash = "sha256:5f5ff8d839f4566a474a969508fe1c5e59c31c80d9e140566f9a37bba7b8d556"}, + {file = "pydantic_core-2.23.4-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:a4fa4fc04dff799089689f4fd502ce7d59de529fc2f40a2c8836886c03e0175a"}, + {file = "pydantic_core-2.23.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:0a7df63886be5e270da67e0966cf4afbae86069501d35c8c1b3b6c168f42cb36"}, + {file = "pydantic_core-2.23.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dcedcd19a557e182628afa1d553c3895a9f825b936415d0dbd3cd0bbcfd29b4b"}, + {file = "pydantic_core-2.23.4-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5f54b118ce5de9ac21c363d9b3caa6c800341e8c47a508787e5868c6b79c9323"}, + {file = "pydantic_core-2.23.4-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:86d2f57d3e1379a9525c5ab067b27dbb8a0642fb5d454e17a9ac434f9ce523e3"}, + {file = "pydantic_core-2.23.4-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:de6d1d1b9e5101508cb37ab0d972357cac5235f5c6533d1071964c47139257df"}, + {file = "pydantic_core-2.23.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1278e0d324f6908e872730c9102b0112477a7f7cf88b308e4fc36ce1bdb6d58c"}, + {file = "pydantic_core-2.23.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:9a6b5099eeec78827553827f4c6b8615978bb4b6a88e5d9b93eddf8bb6790f55"}, + {file = "pydantic_core-2.23.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:e55541f756f9b3ee346b840103f32779c695a19826a4c442b7954550a0972040"}, + {file = "pydantic_core-2.23.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a5c7ba8ffb6d6f8f2ab08743be203654bb1aaa8c9dcb09f82ddd34eadb695605"}, + {file = "pydantic_core-2.23.4-cp39-none-win32.whl", hash = "sha256:37b0fe330e4a58d3c58b24d91d1eb102aeec675a3db4c292ec3928ecd892a9a6"}, + {file = "pydantic_core-2.23.4-cp39-none-win_amd64.whl", hash = "sha256:1498bec4c05c9c787bde9125cfdcc63a41004ff167f495063191b863399b1a29"}, + {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:f455ee30a9d61d3e1a15abd5068827773d6e4dc513e795f380cdd59932c782d5"}, + {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:1e90d2e3bd2c3863d48525d297cd143fe541be8bbf6f579504b9712cb6b643ec"}, + {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2e203fdf807ac7e12ab59ca2bfcabb38c7cf0b33c41efeb00f8e5da1d86af480"}, + {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e08277a400de01bc72436a0ccd02bdf596631411f592ad985dcee21445bd0068"}, + {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f220b0eea5965dec25480b6333c788fb72ce5f9129e8759ef876a1d805d00801"}, + {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:d06b0c8da4f16d1d1e352134427cb194a0a6e19ad5db9161bf32b2113409e728"}, + {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:ba1a0996f6c2773bd83e63f18914c1de3c9dd26d55f4ac302a7efe93fb8e7433"}, + {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:9a5bce9d23aac8f0cf0836ecfc033896aa8443b501c58d0602dbfd5bd5b37753"}, + {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:78ddaaa81421a29574a682b3179d4cf9e6d405a09b99d93ddcf7e5239c742e21"}, + {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:883a91b5dd7d26492ff2f04f40fbb652de40fcc0afe07e8129e8ae779c2110eb"}, + {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:88ad334a15b32a791ea935af224b9de1bf99bcd62fabf745d5f3442199d86d59"}, + {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:233710f069d251feb12a56da21e14cca67994eab08362207785cf8c598e74577"}, + {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:19442362866a753485ba5e4be408964644dd6a09123d9416c54cd49171f50744"}, + {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:624e278a7d29b6445e4e813af92af37820fafb6dcc55c012c834f9e26f9aaaef"}, + {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:f5ef8f42bec47f21d07668a043f077d507e5bf4e668d5c6dfe6aaba89de1a5b8"}, + {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:aea443fffa9fbe3af1a9ba721a87f926fe548d32cab71d188a6ede77d0ff244e"}, + {file = "pydantic_core-2.23.4.tar.gz", hash = "sha256:2584f7cf844ac4d970fba483a717dbe10c1c1c96a969bf65d61ffe94df1b2863"}, ] [package.dependencies] @@ -2332,7 +3006,7 @@ version = "2.19.1" description = "Pygments is a syntax highlighting package written in Python." optional = false python-versions = ">=3.8" -groups = ["main"] +groups = ["main", "dev", "docs"] files = [ {file = "pygments-2.19.1-py3-none-any.whl", hash = "sha256:9ea1544ad55cecf4b8242fab6dd35a93bbce657034b0611ee383099054ab6d8c"}, {file = "pygments-2.19.1.tar.gz", hash = "sha256:61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f"}, @@ -2341,6 +3015,32 @@ files = [ [package.extras] windows-terminal = ["colorama (>=0.4.6)"] +[[package]] +name = "pylint" +version = "3.3.7" +description = "python code static checker" +optional = false +python-versions = ">=3.9.0" +groups = ["dev"] +files = [ + {file = "pylint-3.3.7-py3-none-any.whl", hash = "sha256:43860aafefce92fca4cf6b61fe199cdc5ae54ea28f9bf4cd49de267b5195803d"}, + {file = "pylint-3.3.7.tar.gz", hash = "sha256:2b11de8bde49f9c5059452e0c310c079c746a0a8eeaa789e5aa966ecc23e4559"}, +] + +[package.dependencies] +astroid = ">=3.3.8,<=3.4.0.dev0" +colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} +dill = {version = ">=0.2", markers = "python_version < \"3.11\""} +isort = ">=4.2.5,<5.13 || >5.13,<7" +mccabe = ">=0.6,<0.8" +platformdirs = ">=2.2" +tomli = {version = ">=1.1", markers = "python_version < \"3.11\""} +tomlkit = ">=0.10.1" + +[package.extras] +spelling = ["pyenchant (>=3.2,<4.0)"] +testutils = ["gitpython (>3)"] + [[package]] name = "pymupdf" version = "1.25.5" @@ -2413,6 +3113,30 @@ files = [ [package.extras] dev = ["build", "flake8", "mypy", "pytest", "twine"] +[[package]] +name = "pytest" +version = "8.4.0" +description = "pytest: simple powerful testing with Python" +optional = false +python-versions = ">=3.9" +groups = ["dev"] +files = [ + {file = "pytest-8.4.0-py3-none-any.whl", hash = "sha256:f40f825768ad76c0977cbacdf1fd37c6f7a468e460ea6a0636078f8972d4517e"}, + {file = "pytest-8.4.0.tar.gz", hash = "sha256:14d920b48472ea0dbf68e45b96cd1ffda4705f33307dcc86c676c1b5104838a6"}, +] + +[package.dependencies] +colorama = {version = ">=0.4", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1", markers = "python_version < \"3.11\""} +iniconfig = ">=1" +packaging = ">=20" +pluggy = ">=1.5,<2" +pygments = ">=2.7.2" +tomli = {version = ">=1", markers = "python_version < \"3.11\""} + +[package.extras] +dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests", "setuptools", "xmlschema"] + [[package]] name = "python-dateutil" version = "2.9.0.post0" @@ -2473,7 +3197,7 @@ version = "6.0.2" description = "YAML parser and emitter for Python" optional = false python-versions = ">=3.8" -groups = ["main"] +groups = ["main", "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"}, @@ -2545,6 +3269,111 @@ files = [ [package.dependencies] attrs = ">=22.2.0" rpds-py = ">=0.7.0" +typing-extensions = {version = ">=4.4.0", markers = "python_version < \"3.13\""} + +[[package]] +name = "regex" +version = "2024.11.6" +description = "Alternative regular expression module, to replace re." +optional = false +python-versions = ">=3.8" +groups = ["dev"] +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-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:3a51ccc315653ba012774efca4f23d1d2a8a8f278a6072e29c7147eee7da446b"}, + {file = "regex-2024.11.6-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:ad182d02e40de7459b73155deb8996bbd8e96852267879396fb274e8700190e3"}, + {file = "regex-2024.11.6-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:ba9b72e5643641b7d41fa1f6d5abda2c9a263ae835b917348fc3c928182ad467"}, + {file = "regex-2024.11.6-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:40291b1b89ca6ad8d3f2b82782cc33807f1406cf68c8d440861da6304d8ffbbd"}, + {file = "regex-2024.11.6-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cdf58d0e516ee426a48f7b2c03a332a4114420716d55769ff7108c37a09951bf"}, + {file = "regex-2024.11.6-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a36fdf2af13c2b14738f6e973aba563623cb77d753bbbd8d414d18bfaa3105dd"}, + {file = "regex-2024.11.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d1cee317bfc014c2419a76bcc87f071405e3966da434e03e13beb45f8aced1a6"}, + {file = "regex-2024.11.6-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:50153825ee016b91549962f970d6a4442fa106832e14c918acd1c8e479916c4f"}, + {file = "regex-2024.11.6-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:ea1bfda2f7162605f6e8178223576856b3d791109f15ea99a9f95c16a7636fb5"}, + {file = "regex-2024.11.6-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:df951c5f4a1b1910f1a99ff42c473ff60f8225baa1cdd3539fe2819d9543e9df"}, + {file = "regex-2024.11.6-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:072623554418a9911446278f16ecb398fb3b540147a7828c06e2011fa531e773"}, + {file = "regex-2024.11.6-cp38-cp38-musllinux_1_2_ppc64le.whl", hash = "sha256:f654882311409afb1d780b940234208a252322c24a93b442ca714d119e68086c"}, + {file = "regex-2024.11.6-cp38-cp38-musllinux_1_2_s390x.whl", hash = "sha256:89d75e7293d2b3e674db7d4d9b1bee7f8f3d1609428e293771d1a962617150cc"}, + {file = "regex-2024.11.6-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:f65557897fc977a44ab205ea871b690adaef6b9da6afda4790a2484b04293a5f"}, + {file = "regex-2024.11.6-cp38-cp38-win32.whl", hash = "sha256:6f44ec28b1f858c98d3036ad5d7d0bfc568bdd7a74f9c24e25f41ef1ebfd81a4"}, + {file = "regex-2024.11.6-cp38-cp38-win_amd64.whl", hash = "sha256:bb8f74f2f10dbf13a0be8de623ba4f9491faf58c24064f32b65679b021ed0001"}, + {file = "regex-2024.11.6-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:5704e174f8ccab2026bd2f1ab6c510345ae8eac818b613d7d73e785f1310f839"}, + {file = "regex-2024.11.6-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:220902c3c5cc6af55d4fe19ead504de80eb91f786dc102fbd74894b1551f095e"}, + {file = "regex-2024.11.6-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:5e7e351589da0850c125f1600a4c4ba3c722efefe16b297de54300f08d734fbf"}, + {file = "regex-2024.11.6-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5056b185ca113c88e18223183aa1a50e66507769c9640a6ff75859619d73957b"}, + {file = "regex-2024.11.6-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2e34b51b650b23ed3354b5a07aab37034d9f923db2a40519139af34f485f77d0"}, + {file = "regex-2024.11.6-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5670bce7b200273eee1840ef307bfa07cda90b38ae56e9a6ebcc9f50da9c469b"}, + {file = "regex-2024.11.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:08986dce1339bc932923e7d1232ce9881499a0e02925f7402fb7c982515419ef"}, + {file = "regex-2024.11.6-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:93c0b12d3d3bc25af4ebbf38f9ee780a487e8bf6954c115b9f015822d3bb8e48"}, + {file = "regex-2024.11.6-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:764e71f22ab3b305e7f4c21f1a97e1526a25ebdd22513e251cf376760213da13"}, + {file = "regex-2024.11.6-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:f056bf21105c2515c32372bbc057f43eb02aae2fda61052e2f7622c801f0b4e2"}, + {file = "regex-2024.11.6-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:69ab78f848845569401469da20df3e081e6b5a11cb086de3eed1d48f5ed57c95"}, + {file = "regex-2024.11.6-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:86fddba590aad9208e2fa8b43b4c098bb0ec74f15718bb6a704e3c63e2cef3e9"}, + {file = "regex-2024.11.6-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:684d7a212682996d21ca12ef3c17353c021fe9de6049e19ac8481ec35574a70f"}, + {file = "regex-2024.11.6-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:a03e02f48cd1abbd9f3b7e3586d97c8f7a9721c436f51a5245b3b9483044480b"}, + {file = "regex-2024.11.6-cp39-cp39-win32.whl", hash = "sha256:41758407fc32d5c3c5de163888068cfee69cb4c2be844e7ac517a52770f9af57"}, + {file = "regex-2024.11.6-cp39-cp39-win_amd64.whl", hash = "sha256:b2837718570f95dd41675328e111345f9b7095d821bac435aac173ac80b19983"}, + {file = "regex-2024.11.6.tar.gz", hash = "sha256:7ab159b063c52a0333c884e4679f8d7a85112ee3078fe3d9004b2dd875585519"}, +] [[package]] name = "requests" @@ -2552,7 +3381,7 @@ version = "2.32.3" description = "Python HTTP for Humans." optional = false python-versions = ">=3.8" -groups = ["main"] +groups = ["main", "dev", "docs"] files = [ {file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"}, {file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"}, @@ -2593,7 +3422,7 @@ version = "14.0.0" description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" optional = false python-versions = ">=3.8.0" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "rich-14.0.0-py3-none-any.whl", hash = "sha256:1c9491e1951aac09caffd42f448ee3d04e58923ffe14993f6e83068dc395d7e0"}, {file = "rich-14.0.0.tar.gz", hash = "sha256:82f1bc23a6a21ebca4ae0c45af9bdbc492ed20231dcb63f297d6d1021a9d5725"}, @@ -2602,6 +3431,7 @@ files = [ [package.dependencies] markdown-it-py = ">=2.2.0" pygments = ">=2.13.0,<3.0.0" +typing-extensions = {version = ">=4.0.0,<5.0", markers = "python_version < \"3.11\""} [package.extras] jupyter = ["ipywidgets (>=7.5.1,<9)"] @@ -2732,13 +3562,14 @@ files = [ [[package]] name = "rsa" -version = "4.2" +version = "4.9.1" description = "Pure-Python RSA implementation" optional = false -python-versions = "*" +python-versions = "<4,>=3.6" groups = ["main"] files = [ - {file = "rsa-4.2.tar.gz", hash = "sha256:aaefa4b84752e3e99bd8333a2e1e3e7a7da64614042bd66f775573424370108a"}, + {file = "rsa-4.9.1-py3-none-any.whl", hash = "sha256:68635866661c6836b8d39430f97a996acbd61bfa49406748ea243539fe239762"}, + {file = "rsa-4.9.1.tar.gz", hash = "sha256:e7bdbfdb5497da4c07dfd35530e1a902659db6ff241e39d9953cad06ebd0ae75"}, ] [package.dependencies] @@ -2764,33 +3595,109 @@ files = [ {file = "rtree-1.4.0.tar.gz", hash = "sha256:9d97c7c5dcf25f6c0599c76d9933368c6a8d7238f2c1d00e76f1a69369ca82a0"}, ] +[[package]] +name = "ruamel-yaml" +version = "0.18.14" +description = "ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order" +optional = false +python-versions = ">=3.8" +groups = ["dev"] +files = [ + {file = "ruamel.yaml-0.18.14-py3-none-any.whl", hash = "sha256:710ff198bb53da66718c7db27eec4fbcc9aa6ca7204e4c1df2f282b6fe5eb6b2"}, + {file = "ruamel.yaml-0.18.14.tar.gz", hash = "sha256:7227b76aaec364df15936730efbf7d72b30c0b79b1d578bbb8e3dcb2d81f52b7"}, +] + +[package.dependencies] +"ruamel.yaml.clib" = {version = ">=0.2.7", markers = "platform_python_implementation == \"CPython\" and python_version < \"3.14\""} + +[package.extras] +docs = ["mercurial (>5.7)", "ryd"] +jinja2 = ["ruamel.yaml.jinja2 (>=0.2)"] + +[[package]] +name = "ruamel-yaml-clib" +version = "0.2.12" +description = "C version of reader, parser and emitter for ruamel.yaml derived from libyaml" +optional = false +python-versions = ">=3.9" +groups = ["dev"] +markers = "platform_python_implementation == \"CPython\"" +files = [ + {file = "ruamel.yaml.clib-0.2.12-cp310-cp310-macosx_13_0_arm64.whl", hash = "sha256:11f891336688faf5156a36293a9c362bdc7c88f03a8a027c2c1d8e0bcde998e5"}, + {file = "ruamel.yaml.clib-0.2.12-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:a606ef75a60ecf3d924613892cc603b154178ee25abb3055db5062da811fd969"}, + {file = "ruamel.yaml.clib-0.2.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd5415dded15c3822597455bc02bcd66e81ef8b7a48cb71a33628fc9fdde39df"}, + {file = "ruamel.yaml.clib-0.2.12-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f66efbc1caa63c088dead1c4170d148eabc9b80d95fb75b6c92ac0aad2437d76"}, + {file = "ruamel.yaml.clib-0.2.12-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:22353049ba4181685023b25b5b51a574bce33e7f51c759371a7422dcae5402a6"}, + {file = "ruamel.yaml.clib-0.2.12-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:932205970b9f9991b34f55136be327501903f7c66830e9760a8ffb15b07f05cd"}, + {file = "ruamel.yaml.clib-0.2.12-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a52d48f4e7bf9005e8f0a89209bf9a73f7190ddf0489eee5eb51377385f59f2a"}, + {file = "ruamel.yaml.clib-0.2.12-cp310-cp310-win32.whl", hash = "sha256:3eac5a91891ceb88138c113f9db04f3cebdae277f5d44eaa3651a4f573e6a5da"}, + {file = "ruamel.yaml.clib-0.2.12-cp310-cp310-win_amd64.whl", hash = "sha256:ab007f2f5a87bd08ab1499bdf96f3d5c6ad4dcfa364884cb4549aa0154b13a28"}, + {file = "ruamel.yaml.clib-0.2.12-cp311-cp311-macosx_13_0_arm64.whl", hash = "sha256:4a6679521a58256a90b0d89e03992c15144c5f3858f40d7c18886023d7943db6"}, + {file = "ruamel.yaml.clib-0.2.12-cp311-cp311-manylinux2014_aarch64.whl", hash = "sha256:d84318609196d6bd6da0edfa25cedfbabd8dbde5140a0a23af29ad4b8f91fb1e"}, + {file = "ruamel.yaml.clib-0.2.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bb43a269eb827806502c7c8efb7ae7e9e9d0573257a46e8e952f4d4caba4f31e"}, + {file = "ruamel.yaml.clib-0.2.12-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:811ea1594b8a0fb466172c384267a4e5e367298af6b228931f273b111f17ef52"}, + {file = "ruamel.yaml.clib-0.2.12-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:cf12567a7b565cbf65d438dec6cfbe2917d3c1bdddfce84a9930b7d35ea59642"}, + {file = "ruamel.yaml.clib-0.2.12-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:7dd5adc8b930b12c8fc5b99e2d535a09889941aa0d0bd06f4749e9a9397c71d2"}, + {file = "ruamel.yaml.clib-0.2.12-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1492a6051dab8d912fc2adeef0e8c72216b24d57bd896ea607cb90bb0c4981d3"}, + {file = "ruamel.yaml.clib-0.2.12-cp311-cp311-win32.whl", hash = "sha256:bd0a08f0bab19093c54e18a14a10b4322e1eacc5217056f3c063bd2f59853ce4"}, + {file = "ruamel.yaml.clib-0.2.12-cp311-cp311-win_amd64.whl", hash = "sha256:a274fb2cb086c7a3dea4322ec27f4cb5cc4b6298adb583ab0e211a4682f241eb"}, + {file = "ruamel.yaml.clib-0.2.12-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:20b0f8dc160ba83b6dcc0e256846e1a02d044e13f7ea74a3d1d56ede4e48c632"}, + {file = "ruamel.yaml.clib-0.2.12-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:943f32bc9dedb3abff9879edc134901df92cfce2c3d5c9348f172f62eb2d771d"}, + {file = "ruamel.yaml.clib-0.2.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:95c3829bb364fdb8e0332c9931ecf57d9be3519241323c5274bd82f709cebc0c"}, + {file = "ruamel.yaml.clib-0.2.12-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:749c16fcc4a2b09f28843cda5a193e0283e47454b63ec4b81eaa2242f50e4ccd"}, + {file = "ruamel.yaml.clib-0.2.12-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:bf165fef1f223beae7333275156ab2022cffe255dcc51c27f066b4370da81e31"}, + {file = "ruamel.yaml.clib-0.2.12-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:32621c177bbf782ca5a18ba4d7af0f1082a3f6e517ac2a18b3974d4edf349680"}, + {file = "ruamel.yaml.clib-0.2.12-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b82a7c94a498853aa0b272fd5bc67f29008da798d4f93a2f9f289feb8426a58d"}, + {file = "ruamel.yaml.clib-0.2.12-cp312-cp312-win32.whl", hash = "sha256:e8c4ebfcfd57177b572e2040777b8abc537cdef58a2120e830124946aa9b42c5"}, + {file = "ruamel.yaml.clib-0.2.12-cp312-cp312-win_amd64.whl", hash = "sha256:0467c5965282c62203273b838ae77c0d29d7638c8a4e3a1c8bdd3602c10904e4"}, + {file = "ruamel.yaml.clib-0.2.12-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:4c8c5d82f50bb53986a5e02d1b3092b03622c02c2eb78e29bec33fd9593bae1a"}, + {file = "ruamel.yaml.clib-0.2.12-cp313-cp313-manylinux2014_aarch64.whl", hash = "sha256:e7e3736715fbf53e9be2a79eb4db68e4ed857017344d697e8b9749444ae57475"}, + {file = "ruamel.yaml.clib-0.2.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0b7e75b4965e1d4690e93021adfcecccbca7d61c7bddd8e22406ef2ff20d74ef"}, + {file = "ruamel.yaml.clib-0.2.12-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:96777d473c05ee3e5e3c3e999f5d23c6f4ec5b0c38c098b3a5229085f74236c6"}, + {file = "ruamel.yaml.clib-0.2.12-cp313-cp313-musllinux_1_1_i686.whl", hash = "sha256:3bc2a80e6420ca8b7d3590791e2dfc709c88ab9152c00eeb511c9875ce5778bf"}, + {file = "ruamel.yaml.clib-0.2.12-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:e188d2699864c11c36cdfdada94d781fd5d6b0071cd9c427bceb08ad3d7c70e1"}, + {file = "ruamel.yaml.clib-0.2.12-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4f6f3eac23941b32afccc23081e1f50612bdbe4e982012ef4f5797986828cd01"}, + {file = "ruamel.yaml.clib-0.2.12-cp313-cp313-win32.whl", hash = "sha256:6442cb36270b3afb1b4951f060eccca1ce49f3d087ca1ca4563a6eb479cb3de6"}, + {file = "ruamel.yaml.clib-0.2.12-cp313-cp313-win_amd64.whl", hash = "sha256:e5b8daf27af0b90da7bb903a876477a9e6d7270be6146906b276605997c7e9a3"}, + {file = "ruamel.yaml.clib-0.2.12-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:fc4b630cd3fa2cf7fce38afa91d7cfe844a9f75d7f0f36393fa98815e911d987"}, + {file = "ruamel.yaml.clib-0.2.12-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:bc5f1e1c28e966d61d2519f2a3d451ba989f9ea0f2307de7bc45baa526de9e45"}, + {file = "ruamel.yaml.clib-0.2.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5a0e060aace4c24dcaf71023bbd7d42674e3b230f7e7b97317baf1e953e5b519"}, + {file = "ruamel.yaml.clib-0.2.12-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e2f1c3765db32be59d18ab3953f43ab62a761327aafc1594a2a1fbe038b8b8a7"}, + {file = "ruamel.yaml.clib-0.2.12-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:d85252669dc32f98ebcd5d36768f5d4faeaeaa2d655ac0473be490ecdae3c285"}, + {file = "ruamel.yaml.clib-0.2.12-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:e143ada795c341b56de9418c58d028989093ee611aa27ffb9b7f609c00d813ed"}, + {file = "ruamel.yaml.clib-0.2.12-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:2c59aa6170b990d8d2719323e628aaf36f3bfbc1c26279c0eeeb24d05d2d11c7"}, + {file = "ruamel.yaml.clib-0.2.12-cp39-cp39-win32.whl", hash = "sha256:beffaed67936fbbeffd10966a4eb53c402fafd3d6833770516bf7314bc6ffa12"}, + {file = "ruamel.yaml.clib-0.2.12-cp39-cp39-win_amd64.whl", hash = "sha256:040ae85536960525ea62868b642bdb0c2cc6021c9f9d507810c0c604e66f5a7b"}, + {file = "ruamel.yaml.clib-0.2.12.tar.gz", hash = "sha256:6c8fbb13ec503f99a91901ab46e0b07ae7941cd527393187039aec586fdfd36f"}, +] + [[package]] name = "ruff" -version = "0.11.7" +version = "0.11.13" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" groups = ["main"] markers = "sys_platform != \"emscripten\"" files = [ - {file = "ruff-0.11.7-py3-none-linux_armv6l.whl", hash = "sha256:d29e909d9a8d02f928d72ab7837b5cbc450a5bdf578ab9ebee3263d0a525091c"}, - {file = "ruff-0.11.7-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:dd1fb86b168ae349fb01dd497d83537b2c5541fe0626e70c786427dd8363aaee"}, - {file = "ruff-0.11.7-py3-none-macosx_11_0_arm64.whl", hash = "sha256:d3d7d2e140a6fbbc09033bce65bd7ea29d6a0adeb90b8430262fbacd58c38ada"}, - {file = "ruff-0.11.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4809df77de390a1c2077d9b7945d82f44b95d19ceccf0c287c56e4dc9b91ca64"}, - {file = "ruff-0.11.7-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f3a0c2e169e6b545f8e2dba185eabbd9db4f08880032e75aa0e285a6d3f48201"}, - {file = "ruff-0.11.7-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:49b888200a320dd96a68e86736cf531d6afba03e4f6cf098401406a257fcf3d6"}, - {file = "ruff-0.11.7-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:2b19cdb9cf7dae00d5ee2e7c013540cdc3b31c4f281f1dacb5a799d610e90db4"}, - {file = "ruff-0.11.7-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:64e0ee994c9e326b43539d133a36a455dbaab477bc84fe7bfbd528abe2f05c1e"}, - {file = "ruff-0.11.7-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bad82052311479a5865f52c76ecee5d468a58ba44fb23ee15079f17dd4c8fd63"}, - {file = "ruff-0.11.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7940665e74e7b65d427b82bffc1e46710ec7f30d58b4b2d5016e3f0321436502"}, - {file = "ruff-0.11.7-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:169027e31c52c0e36c44ae9a9c7db35e505fee0b39f8d9fca7274a6305295a92"}, - {file = "ruff-0.11.7-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:305b93f9798aee582e91e34437810439acb28b5fc1fee6b8205c78c806845a94"}, - {file = "ruff-0.11.7-py3-none-musllinux_1_2_i686.whl", hash = "sha256:a681db041ef55550c371f9cd52a3cf17a0da4c75d6bd691092dfc38170ebc4b6"}, - {file = "ruff-0.11.7-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:07f1496ad00a4a139f4de220b0c97da6d4c85e0e4aa9b2624167b7d4d44fd6b6"}, - {file = "ruff-0.11.7-py3-none-win32.whl", hash = "sha256:f25dfb853ad217e6e5f1924ae8a5b3f6709051a13e9dad18690de6c8ff299e26"}, - {file = "ruff-0.11.7-py3-none-win_amd64.whl", hash = "sha256:0a931d85959ceb77e92aea4bbedfded0a31534ce191252721128f77e5ae1f98a"}, - {file = "ruff-0.11.7-py3-none-win_arm64.whl", hash = "sha256:778c1e5d6f9e91034142dfd06110534ca13220bfaad5c3735f6cb844654f6177"}, - {file = "ruff-0.11.7.tar.gz", hash = "sha256:655089ad3224070736dc32844fde783454f8558e71f501cb207485fe4eee23d4"}, + {file = "ruff-0.11.13-py3-none-linux_armv6l.whl", hash = "sha256:4bdfbf1240533f40042ec00c9e09a3aade6f8c10b6414cf11b519488d2635d46"}, + {file = "ruff-0.11.13-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:aef9c9ed1b5ca28bb15c7eac83b8670cf3b20b478195bd49c8d756ba0a36cf48"}, + {file = "ruff-0.11.13-py3-none-macosx_11_0_arm64.whl", hash = "sha256:53b15a9dfdce029c842e9a5aebc3855e9ab7771395979ff85b7c1dedb53ddc2b"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ab153241400789138d13f362c43f7edecc0edfffce2afa6a68434000ecd8f69a"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6c51f93029d54a910d3d24f7dd0bb909e31b6cd989a5e4ac513f4eb41629f0dc"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1808b3ed53e1a777c2ef733aca9051dc9bf7c99b26ece15cb59a0320fbdbd629"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:d28ce58b5ecf0f43c1b71edffabe6ed7f245d5336b17805803312ec9bc665933"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:55e4bc3a77842da33c16d55b32c6cac1ec5fb0fbec9c8c513bdce76c4f922165"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:633bf2c6f35678c56ec73189ba6fa19ff1c5e4807a78bf60ef487b9dd272cc71"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4ffbc82d70424b275b089166310448051afdc6e914fdab90e08df66c43bb5ca9"}, + {file = "ruff-0.11.13-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:4a9ddd3ec62a9a89578c85842b836e4ac832d4a2e0bfaad3b02243f930ceafcc"}, + {file = "ruff-0.11.13-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:d237a496e0778d719efb05058c64d28b757c77824e04ffe8796c7436e26712b7"}, + {file = "ruff-0.11.13-py3-none-musllinux_1_2_i686.whl", hash = "sha256:26816a218ca6ef02142343fd24c70f7cd8c5aa6c203bca284407adf675984432"}, + {file = "ruff-0.11.13-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:51c3f95abd9331dc5b87c47ac7f376db5616041173826dfd556cfe3d4977f492"}, + {file = "ruff-0.11.13-py3-none-win32.whl", hash = "sha256:96c27935418e4e8e77a26bb05962817f28b8ef3843a6c6cc49d8783b5507f250"}, + {file = "ruff-0.11.13-py3-none-win_amd64.whl", hash = "sha256:29c3189895a8a6a657b7af4e97d330c8a3afd2c9c8f46c81e2fc5a31866517e3"}, + {file = "ruff-0.11.13-py3-none-win_arm64.whl", hash = "sha256:b4385285e9179d608ff1d2fb9922062663c658605819a6876d8beef0c30b7f3b"}, + {file = "ruff-0.11.13.tar.gz", hash = "sha256:26fa247dc68d1d4e72c179e08889a25ac0c7ba4d78aecfc835d49cbfd60bf514"}, ] [[package]] @@ -2811,6 +3718,64 @@ httpx = "*" [package.extras] dev = ["pytest"] +[[package]] +name = "safety" +version = "3.5.2" +description = "Scan dependencies for known vulnerabilities and licenses." +optional = false +python-versions = ">=3.8" +groups = ["dev"] +files = [ + {file = "safety-3.5.2-py3-none-any.whl", hash = "sha256:d5baff410c548393e80ba2bd2ab1de2701a690ca3577e457335917b9db4641e1"}, + {file = "safety-3.5.2.tar.gz", hash = "sha256:ecbb2e76f9574284f2c0e168e71ec92b39018ae9516b3b00f132de57ecaa09cb"}, +] + +[package.dependencies] +authlib = ">=1.2.0" +click = ">=8.0.2,<8.2.0" +dparse = ">=0.6.4" +filelock = ">=3.16.1,<3.17.0" +httpx = "*" +jinja2 = ">=3.1.0" +marshmallow = ">=3.15.0" +nltk = ">=3.9" +packaging = ">=21.0" +psutil = ">=6.1.0,<6.2.0" +pydantic = ">=2.6.0,<2.10.0" +requests = "*" +ruamel-yaml = ">=0.17.21" +safety-schemas = "0.0.14" +setuptools = ">=65.5.1" +tenacity = "*" +tomli = {version = "*", markers = "python_version < \"3.11\""} +tomlkit = "*" +typer = ">=0.12.1" +typing-extensions = ">=4.7.1" + +[package.extras] +github = ["pygithub (>=1.43.3)"] +gitlab = ["python-gitlab (>=1.3.0)"] +spdx = ["spdx-tools (>=0.8.2)"] + +[[package]] +name = "safety-schemas" +version = "0.0.14" +description = "Schemas for Safety tools" +optional = false +python-versions = ">=3.7" +groups = ["dev"] +files = [ + {file = "safety_schemas-0.0.14-py3-none-any.whl", hash = "sha256:0bf6fc4aa5e474651b714cc9e427c862792946bf052b61d5c7bec4eac4c0f254"}, + {file = "safety_schemas-0.0.14.tar.gz", hash = "sha256:49953f7a59e919572be25595a8946f9cbbcd2066fe3e160c9467d9d1d6d7af6a"}, +] + +[package.dependencies] +dparse = ">=0.6.4" +packaging = ">=21.0" +pydantic = ">=2.6.0,<2.10.0" +ruamel-yaml = ">=0.17.21" +typing-extensions = ">=4.7.1" + [[package]] name = "semantic-version" version = "2.10.0" @@ -2827,13 +3792,34 @@ files = [ dev = ["Django (>=1.11)", "check-manifest", "colorama (<=0.4.1) ; python_version == \"3.4\"", "coverage", "flake8", "nose2", "readme-renderer (<25.0) ; python_version == \"3.4\"", "tox", "wheel", "zest.releaser[recommended]"] doc = ["Sphinx", "sphinx-rtd-theme"] +[[package]] +name = "setuptools" +version = "80.9.0" +description = "Easily download, build, install, upgrade, and uninstall Python packages" +optional = false +python-versions = ">=3.9" +groups = ["dev"] +files = [ + {file = "setuptools-80.9.0-py3-none-any.whl", hash = "sha256:062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922"}, + {file = "setuptools-80.9.0.tar.gz", hash = "sha256:f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c"}, +] + +[package.extras] +check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \"cygwin\"", "ruff (>=0.8.0) ; sys_platform != \"cygwin\""] +core = ["importlib_metadata (>=6) ; python_version < \"3.10\"", "jaraco.functools (>=4)", "jaraco.text (>=3.7)", "more_itertools", "more_itertools (>=8.8)", "packaging (>=24.2)", "platformdirs (>=4.2.2)", "tomli (>=2.0.1) ; python_version < \"3.11\"", "wheel (>=0.43.0)"] +cover = ["pytest-cov"] +doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "pyproject-hooks (!=1.1)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier", "towncrier (<24.7)"] +enabler = ["pytest-enabler (>=2.2)"] +test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21) ; python_version >= \"3.9\" and sys_platform != \"cygwin\"", "jaraco.envs (>=2.2)", "jaraco.path (>=3.7.2)", "jaraco.test (>=5.5)", "packaging (>=24.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.*)", "pytest-home (>=0.5)", "pytest-perf ; sys_platform != \"cygwin\"", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel (>=0.44.0)"] +type = ["importlib_metadata (>=7.0.2) ; python_version < \"3.10\"", "jaraco.develop (>=7.21) ; sys_platform != \"cygwin\"", "mypy (==1.14.*)", "pytest-mypy"] + [[package]] name = "shellingham" version = "1.5.4" description = "Tool to Detect Surrounding Shell" optional = false python-versions = ">=3.7" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686"}, {file = "shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de"}, @@ -2857,24 +3843,210 @@ version = "1.3.1" description = "Sniff out which async library your code is running under" optional = false python-versions = ">=3.7" -groups = ["main"] +groups = ["main", "dev"] 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 = "snowballstemmer" +version = "3.0.1" +description = "This package provides 32 stemmers for 30 languages generated from Snowball algorithms." +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*" +groups = ["docs"] +files = [ + {file = "snowballstemmer-3.0.1-py3-none-any.whl", hash = "sha256:6cd7b3897da8d6c9ffb968a6781fa6532dce9c3618a4b127d920dab764a19064"}, + {file = "snowballstemmer-3.0.1.tar.gz", hash = "sha256:6d5eeeec8e9f84d4d56b847692bacf79bc2c8e90c7f80ca4444ff8b6f2e52895"}, +] + [[package]] name = "soupsieve" version = "2.7" description = "A modern CSS selector implementation for Beautiful Soup." optional = false python-versions = ">=3.8" -groups = ["main"] +groups = ["main", "docs"] files = [ {file = "soupsieve-2.7-py3-none-any.whl", hash = "sha256:6e60cc5c1ffaf1cebcc12e8188320b72071e922c2e897f737cadce79ad5d30c4"}, {file = "soupsieve-2.7.tar.gz", hash = "sha256:ad282f9b6926286d2ead4750552c8a6142bc4c783fd66b0293547c8fe6ae126a"}, ] +[[package]] +name = "sphinx" +version = "8.1.3" +description = "Python documentation generator" +optional = false +python-versions = ">=3.10" +groups = ["docs"] +files = [ + {file = "sphinx-8.1.3-py3-none-any.whl", hash = "sha256:09719015511837b76bf6e03e42eb7595ac8c2e41eeb9c29c5b755c6b677992a2"}, + {file = "sphinx-8.1.3.tar.gz", hash = "sha256:43c1911eecb0d3e161ad78611bc905d1ad0e523e4ddc202a58a821773dc4c927"}, +] + +[package.dependencies] +alabaster = ">=0.7.14" +babel = ">=2.13" +colorama = {version = ">=0.4.6", markers = "sys_platform == \"win32\""} +docutils = ">=0.20,<0.22" +imagesize = ">=1.3" +Jinja2 = ">=3.1" +packaging = ">=23.0" +Pygments = ">=2.17" +requests = ">=2.30.0" +snowballstemmer = ">=2.2" +sphinxcontrib-applehelp = ">=1.0.7" +sphinxcontrib-devhelp = ">=1.0.6" +sphinxcontrib-htmlhelp = ">=2.0.6" +sphinxcontrib-jsmath = ">=1.0.1" +sphinxcontrib-qthelp = ">=1.0.6" +sphinxcontrib-serializinghtml = ">=1.1.9" +tomli = {version = ">=2", markers = "python_version < \"3.11\""} + +[package.extras] +docs = ["sphinxcontrib-websupport"] +lint = ["flake8 (>=6.0)", "mypy (==1.11.1)", "pyright (==1.1.384)", "pytest (>=6.0)", "ruff (==0.6.9)", "sphinx-lint (>=0.9)", "tomli (>=2)", "types-Pillow (==10.2.0.20240822)", "types-Pygments (==2.18.0.20240506)", "types-colorama (==0.4.15.20240311)", "types-defusedxml (==0.7.0.20240218)", "types-docutils (==0.21.0.20241005)", "types-requests (==2.32.0.20240914)", "types-urllib3 (==1.26.25.14)"] +test = ["cython (>=3.0)", "defusedxml (>=0.7.1)", "pytest (>=8.0)", "setuptools (>=70.0)", "typing_extensions (>=4.9)"] + +[[package]] +name = "sphinx-autodoc-typehints" +version = "1.22" +description = "Type hints (PEP 484) support for the Sphinx autodoc extension" +optional = false +python-versions = ">=3.7" +groups = ["docs"] +files = [ + {file = "sphinx_autodoc_typehints-1.22-py3-none-any.whl", hash = "sha256:ef4a8b9d52de66065aa7d3adfabf5a436feb8a2eff07c2ddc31625d8807f2b69"}, + {file = "sphinx_autodoc_typehints-1.22.tar.gz", hash = "sha256:71fca2d5eee9b034204e4c686ab20b4d8f5eb9409396216bcae6c87c38e18ea6"}, +] + +[package.dependencies] +sphinx = ">=5.3" + +[package.extras] +docs = ["furo (>=2022.12.7)", "sphinx (>=6.1.3)", "sphinx-autodoc-typehints (>=1.21)"] +testing = ["covdefaults (>=2.2.2)", "coverage (>=7.0.5)", "diff-cover (>=7.3)", "nptyping (>=2.4.1)", "pytest (>=7.2.1)", "pytest-cov (>=4)", "sphobjinv (>=2.3.1)", "typing-extensions (>=4.4)"] +type-comment = ["typed-ast (>=1.5.4) ; python_version < \"3.8\""] + +[[package]] +name = "sphinx-basic-ng" +version = "1.0.0b2" +description = "A modern skeleton for Sphinx themes." +optional = false +python-versions = ">=3.7" +groups = ["docs"] +files = [ + {file = "sphinx_basic_ng-1.0.0b2-py3-none-any.whl", hash = "sha256:eb09aedbabfb650607e9b4b68c9d240b90b1e1be221d6ad71d61c52e29f7932b"}, + {file = "sphinx_basic_ng-1.0.0b2.tar.gz", hash = "sha256:9ec55a47c90c8c002b5960c57492ec3021f5193cb26cebc2dc4ea226848651c9"}, +] + +[package.dependencies] +sphinx = ">=4.0" + +[package.extras] +docs = ["furo", "ipython", "myst-parser", "sphinx-copybutton", "sphinx-inline-tabs"] + +[[package]] +name = "sphinxcontrib-applehelp" +version = "2.0.0" +description = "sphinxcontrib-applehelp is a Sphinx extension which outputs Apple help books" +optional = false +python-versions = ">=3.9" +groups = ["docs"] +files = [ + {file = "sphinxcontrib_applehelp-2.0.0-py3-none-any.whl", hash = "sha256:4cd3f0ec4ac5dd9c17ec65e9ab272c9b867ea77425228e68ecf08d6b28ddbdb5"}, + {file = "sphinxcontrib_applehelp-2.0.0.tar.gz", hash = "sha256:2f29ef331735ce958efa4734873f084941970894c6090408b079c61b2e1c06d1"}, +] + +[package.extras] +lint = ["mypy", "ruff (==0.5.5)", "types-docutils"] +standalone = ["Sphinx (>=5)"] +test = ["pytest"] + +[[package]] +name = "sphinxcontrib-devhelp" +version = "2.0.0" +description = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp documents" +optional = false +python-versions = ">=3.9" +groups = ["docs"] +files = [ + {file = "sphinxcontrib_devhelp-2.0.0-py3-none-any.whl", hash = "sha256:aefb8b83854e4b0998877524d1029fd3e6879210422ee3780459e28a1f03a8a2"}, + {file = "sphinxcontrib_devhelp-2.0.0.tar.gz", hash = "sha256:411f5d96d445d1d73bb5d52133377b4248ec79db5c793ce7dbe59e074b4dd1ad"}, +] + +[package.extras] +lint = ["mypy", "ruff (==0.5.5)", "types-docutils"] +standalone = ["Sphinx (>=5)"] +test = ["pytest"] + +[[package]] +name = "sphinxcontrib-htmlhelp" +version = "2.1.0" +description = "sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files" +optional = false +python-versions = ">=3.9" +groups = ["docs"] +files = [ + {file = "sphinxcontrib_htmlhelp-2.1.0-py3-none-any.whl", hash = "sha256:166759820b47002d22914d64a075ce08f4c46818e17cfc9470a9786b759b19f8"}, + {file = "sphinxcontrib_htmlhelp-2.1.0.tar.gz", hash = "sha256:c9e2916ace8aad64cc13a0d233ee22317f2b9025b9cf3295249fa985cc7082e9"}, +] + +[package.extras] +lint = ["mypy", "ruff (==0.5.5)", "types-docutils"] +standalone = ["Sphinx (>=5)"] +test = ["html5lib", "pytest"] + +[[package]] +name = "sphinxcontrib-jsmath" +version = "1.0.1" +description = "A sphinx extension which renders display math in HTML via JavaScript" +optional = false +python-versions = ">=3.5" +groups = ["docs"] +files = [ + {file = "sphinxcontrib-jsmath-1.0.1.tar.gz", hash = "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8"}, + {file = "sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl", hash = "sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178"}, +] + +[package.extras] +test = ["flake8", "mypy", "pytest"] + +[[package]] +name = "sphinxcontrib-qthelp" +version = "2.0.0" +description = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp documents" +optional = false +python-versions = ">=3.9" +groups = ["docs"] +files = [ + {file = "sphinxcontrib_qthelp-2.0.0-py3-none-any.whl", hash = "sha256:b18a828cdba941ccd6ee8445dbe72ffa3ef8cbe7505d8cd1fa0d42d3f2d5f3eb"}, + {file = "sphinxcontrib_qthelp-2.0.0.tar.gz", hash = "sha256:4fe7d0ac8fc171045be623aba3e2a8f613f8682731f9153bb2e40ece16b9bbab"}, +] + +[package.extras] +lint = ["mypy", "ruff (==0.5.5)", "types-docutils"] +standalone = ["Sphinx (>=5)"] +test = ["defusedxml (>=0.7.1)", "pytest"] + +[[package]] +name = "sphinxcontrib-serializinghtml" +version = "2.0.0" +description = "sphinxcontrib-serializinghtml is a sphinx extension which outputs \"serialized\" HTML files (json and pickle)" +optional = false +python-versions = ">=3.9" +groups = ["docs"] +files = [ + {file = "sphinxcontrib_serializinghtml-2.0.0-py3-none-any.whl", hash = "sha256:6e2cb0eef194e10c27ec0023bfeb25badbbb5868244cf5bc5bdc04e4464bf331"}, + {file = "sphinxcontrib_serializinghtml-2.0.0.tar.gz", hash = "sha256:e9d912827f872c029017a53f0ef2180b327c3f7fd23c87229f7a8e8b70031d4d"}, +] + +[package.extras] +lint = ["mypy", "ruff (==0.5.5)", "types-docutils"] +standalone = ["Sphinx (>=5)"] +test = ["pytest"] + [[package]] name = "starlette" version = "0.45.3" @@ -2893,6 +4065,21 @@ anyio = ">=3.6.2,<5" [package.extras] full = ["httpx (>=0.27.0,<0.29.0)", "itsdangerous", "jinja2", "python-multipart (>=0.0.18)", "pyyaml"] +[[package]] +name = "stevedore" +version = "5.4.1" +description = "Manage dynamic plugins for Python applications" +optional = false +python-versions = ">=3.9" +groups = ["dev"] +files = [ + {file = "stevedore-5.4.1-py3-none-any.whl", hash = "sha256:d10a31c7b86cba16c1f6e8d15416955fc797052351a56af15e608ad20811fcfe"}, + {file = "stevedore-5.4.1.tar.gz", hash = "sha256:3135b5ae50fe12816ef291baff420acb727fcd356106e3e9cbfa9e5985cd6f4b"}, +] + +[package.dependencies] +pbr = ">=2.0.0" + [[package]] name = "sympy" version = "1.13.3" @@ -2917,7 +4104,7 @@ version = "9.1.2" description = "Retry code until it succeeds" optional = false python-versions = ">=3.9" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "tenacity-9.1.2-py3-none-any.whl", hash = "sha256:f77bf36710d8b73a50b2dd155c97b870017ad21afe6ab300326b0371b3b05138"}, {file = "tenacity-9.1.2.tar.gz", hash = "sha256:1169d376c297e7de388d18b4481760d478b0e99a777cad3a9c86e556f4b697cb"}, @@ -2960,13 +4147,55 @@ dev = ["tokenizers[testing]"] docs = ["setuptools-rust", "sphinx", "sphinx-rtd-theme"] testing = ["black (==22.3)", "datasets", "numpy", "pytest", "requests", "ruff"] +[[package]] +name = "tomli" +version = "2.2.1" +description = "A lil' TOML parser" +optional = false +python-versions = ">=3.8" +groups = ["main", "dev", "docs"] +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 = "tomlkit" version = "0.13.2" description = "Style preserving TOML library" optional = false python-versions = ">=3.8" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "tomlkit-0.13.2-py3-none-any.whl", hash = "sha256:7a974427f6e119197f670fbbbeae7bef749a6c14e793db934baefc1b5f03efde"}, {file = "tomlkit-0.13.2.tar.gz", hash = "sha256:fff5fe59a87295b278abd31bec92c15d9bc4a06885ab12bcea52c71119392e79"}, @@ -2978,7 +4207,7 @@ version = "4.67.1" description = "Fast, Extensible Progress Meter" optional = false python-versions = ">=3.7" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "tqdm-4.67.1-py3-none-any.whl", hash = "sha256:26445eca388f82e72884e0d580d5464cd801a3ea01e63e5601bdff9ba6a48de2"}, {file = "tqdm-4.67.1.tar.gz", hash = "sha256:f8aef9c52c08c13a65f30ea34f4e5aac3fd1a34959879d7e59e63027286627f2"}, @@ -3000,7 +4229,7 @@ version = "0.15.2" description = "Typer, build great CLIs. Easy to code. Based on Python type hints." optional = false python-versions = ">=3.7" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "typer-0.15.2-py3-none-any.whl", hash = "sha256:46a499c6107d645a9c13f7ee46c5d5096cae6f5fc57dd11eccbbb9ae3e44ddfc"}, {file = "typer-0.15.2.tar.gz", hash = "sha256:ab2fab47533a813c49fe1f16b1a370fd5819099c00b119e0633df65f22144ba5"}, @@ -3018,27 +4247,12 @@ version = "4.13.2" description = "Backported and Experimental Type Hints for Python 3.8+" optional = false python-versions = ">=3.8" -groups = ["main"] +groups = ["main", "dev", "docs"] files = [ {file = "typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c"}, {file = "typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef"}, ] -[[package]] -name = "typing-inspection" -version = "0.4.0" -description = "Runtime typing introspection tools" -optional = false -python-versions = ">=3.9" -groups = ["main"] -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.dependencies] -typing-extensions = ">=4.12.0" - [[package]] name = "tzdata" version = "2025.2" @@ -3069,7 +4283,7 @@ version = "2.4.0" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false python-versions = ">=3.9" -groups = ["main"] +groups = ["main", "dev", "docs"] files = [ {file = "urllib3-2.4.0-py3-none-any.whl", hash = "sha256:4e16665048960a0900c702d4a66415956a584919c03361cac9f1df5c5dd7e813"}, {file = "urllib3-2.4.0.tar.gz", hash = "sha256:414bc6535b787febd7567804cc015fee39daab8ad86268f1310a9250697de466"}, @@ -3100,6 +4314,7 @@ h11 = ">=0.8" httptools = {version = ">=0.6.3", optional = true, markers = "extra == \"standard\""} python-dotenv = {version = ">=0.13", optional = true, markers = "extra == \"standard\""} pyyaml = {version = ">=5.1", optional = true, markers = "extra == \"standard\""} +typing-extensions = {version = ">=4.0", markers = "python_version < \"3.11\""} uvloop = {version = ">=0.14.0,<0.15.0 || >0.15.0,<0.15.1 || >0.15.1", optional = true, markers = "sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\" and extra == \"standard\""} watchfiles = {version = ">=0.13", optional = true, markers = "extra == \"standard\""} websockets = {version = ">=10.4", optional = true, markers = "extra == \"standard\""} @@ -3451,5 +4666,5 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.1" -python-versions = ">=3.13" -content-hash = "989f7c9280c1b173ba2e454a82e2440b552121b46b3ea130fc7283e2e341b09a" +python-versions = ">=3.10,<3.11" +content-hash = "9f833ea979438fc5acfcbd843288ff21a688cbb2f9c6556b634a975f87399d05" diff --git a/pylint-output.txt b/pylint-output.txt new file mode 100644 index 0000000000000000000000000000000000000000..b96d3cd44ddec7dc5728e3a7e2327c852f850092 --- /dev/null +++ b/pylint-output.txt @@ -0,0 +1,4 @@ + +------------------------------------ +Your code has been rated at 10.00/10 + diff --git a/pyproject.toml b/pyproject.toml index 531cf138850b4c342e5a3bbf6af5cdc7970c8a90..9857c1d1ab5b6a6b54c0d6b188e6e94a4d535c79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,11 +3,13 @@ name = "ragntex" version = "1.0.0" description = "From Text to Visuals: Auto-Generating LaTeX Beamer Presentations with GenAI" authors = [ - {name = "AnnaErsh",email = "aershova096@gmail.com"} + {name = "AnnaErsh",email = "aershova096@gmail.com"}, + {name = "KNiewczas",email = "kajetan.niewczas@gmail.com"} ] license = {text = "Apache 2.0"} readme = "README.md" -requires-python = ">=3.13" +packages = [{ include = "src" }] +requires-python = ">=3.10,<3.11" dependencies = [ "google-genai (==1.11.0)", "chromadb (==1.0.5)", @@ -18,9 +20,26 @@ dependencies = [ "rtree (>=1.4.0,<2.0.0)", "pymupdf (>=1.25.5,<2.0.0)", "gradio (>=5.27.1,<6.0.0)", + "langfuse (>=2.60.5,<3.0.0)", + "pydantic (>=2.6.0,<2.10.0)", + "rsa (>=4.7,<5.0)", ] [build-system] requires = ["poetry-core>=2.0.0,<3.0.0"] build-backend = "poetry.core.masonry.api" + +[tool.poetry.group.dev.dependencies] +pylint = "^3.3.7" +black = "^25.1.0" +pytest = "^8.4.0" +mypy = "^1.16.0" +isort = "^6.0.1" +safety = "^3.5.2" +bandit = "^1.8.3" + + +[tool.poetry.group.docs.dependencies] +sphinx-autodoc-typehints = "1.22" +furo = "^2024.8.6" \ No newline at end of file diff --git a/ragntex.py b/ragntex.py index e4368f6b8f2b00e9892f9e4ae66ff6e2f4a4c08d..a8566fcb245136564900851cdca7d2a26054924b 100644 --- a/ragntex.py +++ b/ragntex.py @@ -1,135 +1,16 @@ -import os -import re -from datetime import datetime -from dotenv import load_dotenv - -# from src.database import db, embed_fn -# from src.document_processing import process_documents -# from src.images_processing import save_pdf_images, save_pdf_figures -# from src.latex_compilation import CompilePresentation -# from src.prompt import prompt -# from src.google_client import client - -from src import ( - db, - embed_fn, - process_documents, - save_pdf_images, - save_pdf_figures, - prompt, - CompilePresentation, - client, - # demo, - Logger, -) - -LOGGER = Logger.get_logger() - -# demo.launch() -load_dotenv() -MAIN_DIR = os.getenv("MAIN_DIR") +"""RAGnTex: A Retrieval-Augmented Generation for LaTeX Documents""" -# Get all the existing papers in the database -all_entries = db.get(include=["metadatas"]) -existing_pdfs = [meta.get("source_pdf") for meta in all_entries["metadatas"]] - -# Dataset -dataset = MAIN_DIR + "dataset/" -files = os.listdir(dataset) +import os -LOGGER.info("Looking for new PDFs to append to our database...") -# Look for new PDFs to append to our database -pdf_files = [ - os.path.join(dataset, f) - for f in files - if f.lower().endswith(".pdf") and f not in existing_pdfs -] +from src import demo, init_telemetry -documents, metadatas = process_documents(pdf_files) -LOGGER.info("Adding new PDFs to the database...") -# Fill in the database -if documents: - db.add( - documents=documents, - ids=[str(i) for i in range(len(documents))], - metadatas=metadatas, +# Setup OpenTelemetry +_ = init_telemetry() +# Run Gradio +if os.getenv("IN_DOCKER") == "true": + demo.launch( + server_name="0.0.0.0", # nosec: intentional bind all interfaces for HuggingFace Spaces + server_port=7860, ) - -# Prompting -LOGGER.info("Retrieving relevant documents...") -embed_fn.document_mode = False -query = "I need an interesting presentation." -query_oneline = query.replace( - "\n", " " -) # (Optional) For cleaner input in case of newlines -result = db.query(query_texts=[query], n_results=2) -[documents] = result["documents"] -[metadatas] = result["metadatas"] - - -for passage, metas in zip(documents, metadatas): - passage_oneline = passage.replace("\n", " ") - images_passage = metas["images_passage"] - - prompt += f"PASSAGE: {passage_oneline}\n" - prompt += f"IMAGES: {images_passage}\n" - -# Create a new subfolder -LOGGER.info("πŸ’Ύ Creating new subfolder...") -base_path = MAIN_DIR + "output/" -timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S") -work_dir = os.path.join(base_path, timestamp) -os.makedirs(work_dir, exist_ok=False) -LOGGER.info("πŸ“ Created folder: %s", work_dir) - -# Generate the presentation code -model_name = "gemini-2.0-flash" -# model_name = "gemini-2.5-flash-preview-04-17" -LOGGER.info("⭐️ Generating response...") -answer = client.models.generate_content(model=model_name, contents=prompt) -LOGGER.info("🎲 Generated the response using: %s", model_name) - -# Create a subfolder for graphics -graphics_dir = os.path.join(work_dir, "gfx") -os.makedirs(graphics_dir, exist_ok=True) -LOGGER.info("πŸŒ„ Images will be saved to: %s", graphics_dir) - -# Find images, which are used in the presentation -pattern_img = re.compile( - r"doc(?P[a-zA-Z0-9_]+)_page(?P\d+)_img(?P\d+)_hash(?P[a-fA-F0-9]{8})\.png" -) -matches_img = pattern_img.finditer(answer.text) - -req_imgs = [] -for match in matches_img: - req_img = { - "doc": match.group("doc"), - "page": int(match.group("page")), - "img": int(match.group("img")), - "hash": match.group("hash"), - } - req_imgs.append(req_img) - -# Find figures, which are used in the presentation -pattern_fig = re.compile( - r"doc(?P[a-zA-Z0-9_]+)_page(?P\d+)_fig(?P\d+)_hash(?P[a-fA-F0-9]{8})\.png" -) -matches_fig = pattern_fig.finditer(answer.text) - -req_figs = [] -for match in matches_fig: - req_fig = { - "doc": match.group("doc"), - "page": int(match.group("page")), - "fig": int(match.group("fig")), - "hash": match.group("hash"), - } - req_figs.append(req_fig) - -# Save the required graphics -for metadata in metadatas: - save_pdf_images(metadata["pdf_path"], req_imgs, graphics_dir) - save_pdf_figures(metadata["pdf_path"], req_figs, graphics_dir) - -LOGGER.info("Compiling presentation...") -CompilePresentation(answer.text, work_dir) +else: + demo.launch() diff --git a/src/__init__.py b/src/__init__.py index e3abbb44def398e14b81e188a30d7d249e11c9c0..3d342d3bb2bbb8fe1cbfa4ff775f4c2d79370376 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -1,20 +1,11 @@ -from .database import db, embed_fn -from .processing import process_documents, save_pdf_images, save_pdf_figures, prompt -from .compilation import CompilePresentation -from .services import client -from .utils import upload_files, Logger -# from .interface import demo +"""Initialize the package by exposing the main interface and telemetry setup.""" + +from .generator import generate_presentation +from .interface import demo +from .telemetry import init_telemetry __all__ = [ - "db", - "embed_fn", - "process_documents", - "save_pdf_images", - "save_pdf_figures", - "prompt", - "CompilePresentation", - "client", - "upload_files", - "Logger", - # "demo", + "demo", + "init_telemetry", + "generate_presentation", ] diff --git a/src/compilation/__init__.py b/src/compilation/__init__.py index 0277e6db3cf68cc4fe3b3645b8532df499d47225..d8489f3df407c31b3fbf9a744b0f37bde4c3df8d 100644 --- a/src/compilation/__init__.py +++ b/src/compilation/__init__.py @@ -1,3 +1,7 @@ -from .latex_compilation import CompilePresentation +"""This module initializes the latex compilation package.""" -__all__ = ["CompilePresentation"] +from .json_to_tex import json_to_tex +from .latex_compilation import compile_presentation +from .latex_tools import replace_unicode_greek + +__all__ = ["compile_presentation", "json_to_tex", "replace_unicode_greek"] diff --git a/src/compilation/json_to_tex.py b/src/compilation/json_to_tex.py new file mode 100644 index 0000000000000000000000000000000000000000..f2c78352c27835db341d7afe1eb9a9e336978c81 --- /dev/null +++ b/src/compilation/json_to_tex.py @@ -0,0 +1,113 @@ +"""This module provides functionality to convert a JSON LLM output to LaTeX Beamer presentation.""" + +import json + + +def render_content(content: list[str], content_format: str) -> str: + """Render content in LaTeX format depending is it si itemized list or plain text. + Args: + content (list[str]): List of content items. + content_format (str): Format of the content, either "itemize" or "text". + Returns: + str: LaTeX formatted content. + """ + # Remove blank or whitespace-only entries + filtered_content = [c.strip() for c in content if c.strip()] + if content_format == "text": + return "\n\n".join(filtered_content) + return ( + "\\begin{itemize}\n" + + "\n".join(f"\\item {c}" for c in filtered_content) + + "\n\\end{itemize}" + ) + + +def json_to_tex( + presentation_json: str, theme: str, color_theme: str, aspect_ratio: str +) -> str: + """Convert a JSON representation of a presentation to LaTeX Beamer format. + Args: + presentation (Dict[str, Any]): JSON LLM output of the presentation. + theme (str): Beamer theme to use. + color_theme (str): Beamer color theme to use. + aspect_ratio (str): Aspect ratio for the presentation, e.g., "16:9", "4:3". + Returns: + str: LaTeX Beamer code as a string. + """ + presentation = json.loads(presentation_json) + aspect_ratio_num = 169 if aspect_ratio == "16:9" else 43 + header = f"""\\documentclass[aspectratio={aspect_ratio_num}]{{beamer}} + \\usepackage[utf8]{{inputenc}} + \\usetheme{{{theme}}} + \\usecolortheme{{{color_theme}}} + \\title{{{presentation["title"]}}} + \\author{{{presentation["author"]}}} + \\date{{\\today}} + + \\usepackage{{graphicx}} + + \\begin{{document}} + + \\frame{{\\titlepage}}""" + + slides = [] + + for slide in presentation["slides"]: + slide_type = slide["type"] + content = slide.get("content", []) + content_format = slide.get("content_format", "itemize") + body = render_content(content, content_format) + + # if slide_type == "title": + # continue + + if slide_type in {"introduction", "summary"}: + title = "Introduction" if slide_type == "introduction" else "Summary" + slides.append( + f"""\\begin{{frame}} + \\frametitle{{{title}}} + {body} + \\end{{frame}}""" + ) + + elif slide_type == "core_idea": + core_title = slide.get("title", "Core Idea") + layout = slide.get("layout", "text_only") + + if layout == "text_only": + slides.append( + f"""\\begin{{frame}} + \\frametitle{{{core_title}}} + {body} + \\end{{frame}}""" + ) + + elif layout == "two_column": + img = slide["image"] + slides.append( + f"""\\begin{{frame}} + \\frametitle{{{core_title}}} + \\begin{{columns}} + \\begin{{column}}{{0.5\\linewidth}} + {body} + \\end{{column}} + \\begin{{column}}{{0.5\\linewidth}} + \\center{{\\includegraphics[height=1.0\\textheight, width=1.0\\textwidth, keepaspectratio]{{{img["path"]}}} \\\\ {img["caption"]}}} + \\end{{column}} + \\end{{columns}} + \\end{{frame}}""" + ) + + elif layout == "single_image": + img = slide["image"] + slides.append( + f"""\\begin{{frame}} + \\frametitle{{{core_title}}} + \\center{{\\includegraphics[height=0.5\\textheight, width=0.8\\textwidth, keepaspectratio]{{{img["path"]}}} \\\\ {img["caption"]} \\\\}} + {body} + \\end{{frame}}""" + ) + + footer = "\\end{document}" + + return "\n\n".join([header] + slides + [footer]) diff --git a/src/compilation/latex_compilation.py b/src/compilation/latex_compilation.py index 78ba7621760727ef45474d79a02f55f0c012e7bf..15e3a134d2062f2180709b3cf15481489aac9838 100644 --- a/src/compilation/latex_compilation.py +++ b/src/compilation/latex_compilation.py @@ -1,11 +1,24 @@ -import os -import subprocess -from ..utils import Logger +"""Module for compiling LaTeX presentations into PDF format.""" + +import os # nosec: checked usage, inputs are sanitized +import subprocess # nosec: checked usage, inputs are sanitized +from pathlib import Path + +from langfuse.decorators import langfuse_context, observe + +from ..telemetry import Logger LOGGER = Logger.get_logger() -def CompilePresentation(latex_code, work_dir): +@observe(name="🧱 compile_presentation") +def compile_presentation(latex_code, work_dir) -> str: + """Compile LaTeX code into a PDF presentation. + Args: + latex_code (str): LaTeX code to be compiled. + work_dir (str): Directory where the LaTeX file will be saved and compiled. + """ + LOGGER.info("Compiling presentation...") # Remove possible Markdown wrapping around the output if latex_code.startswith("```latex"): latex_code = latex_code.split("\n", 1)[1] # Remove the first line @@ -14,40 +27,66 @@ def CompilePresentation(latex_code, work_dir): # Save LaTeX code to file tex_file = os.path.join(work_dir, "presentation.tex") - with open(tex_file, "w") as f: + with open(tex_file, "w", encoding="utf-8") as f: f.write(latex_code) - LOGGER.info("=" * 100) - LOGGER.info("πŸ“„ Files in the directory:") + LOGGER.info("πŸ“„ Files in the directory: %s", work_dir) # List files in the directory using Python (instead of `!ls`) for file in os.listdir(work_dir): LOGGER.info(file) # Compile with pdflatex (using subprocess instead of `!`) - os.chdir(work_dir) # Change working directory - try: # Run pdflatex twice to ensure proper slide enumeration subprocess.run( ["pdflatex", "-interaction=nonstopmode", "presentation.tex"], + cwd=work_dir, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - ) + ) # nosec B603 B607 - fixed command, no untrusted input subprocess.run( ["pdflatex", "-interaction=nonstopmode", "presentation.tex"], + cwd=work_dir, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - ) + ) # nosec B603 B607 - fixed command, no untrusted input except subprocess.CalledProcessError as e: # Handle error in case of failed LaTeX compilation - LOGGER.error("❌ PDF generation failed. Here's the log: %s", e.stderr.decode()) - else: + langfuse_context.update_current_observation( + output={"pdf.success": False, "pdf.error_log": e.stderr.decode()} + ) # Check for PDF output - if not os.path.exists("presentation.pdf"): - LOGGER.error("❌ PDF generation failed. No PDF file found.") - else: - LOGGER.info("πŸ’Ύ PDF generated successfully in: %s", work_dir) + pdf_file = Path(work_dir) / "presentation.pdf" + if not pdf_file.exists(): + LOGGER.error( + "❌ PDF generation failed and no PDF file found. Here's the log: %s", + e.stderr.decode(), + ) + return "❌ Presentation compilation failed. Please try again later." + LOGGER.error( + "⚠️ PDF generation failed, but PDF file exists. Here's the log: %s", + e.stderr.decode(), + ) + return ( + "⚠️ Presentation compilation contains errors. Please cross-check the output." + ) + + # Success, but still check for PDF output + pdf_file = Path(work_dir) / "presentation.pdf" + if not pdf_file.exists(): + langfuse_context.update_current_observation( + output={ + "pdf.success": False, + "pdf.error_log": "❌ PDF generation succeded, but no PDF file found.", + } + ) + LOGGER.error("❌ PDF generation failed. No PDF file found.") + return "❌ Presentation compilation failed. Please try again later." + + langfuse_context.update_current_observation(output={"pdf.success": True}) + LOGGER.info("βœ… PDF generated successfully in: %s", work_dir) + return "⭐️ Presentation generated successfully!" diff --git a/src/compilation/latex_tools.py b/src/compilation/latex_tools.py new file mode 100644 index 0000000000000000000000000000000000000000..1f52f2584d3e461fe44c4accb4c8b817d546e70c --- /dev/null +++ b/src/compilation/latex_tools.py @@ -0,0 +1,32 @@ +"""This module provides tools to work with LaTeX Beamer presentations.""" + + +def replace_unicode_greek(text): + """Replace Greek Unicode characters with LaTeX equivalents. + Args: + text (str): Input text containing Greek characters. + Returns: + str: Text with Greek characters replaced by LaTeX commands. + """ + greek_map = { + 'Ξ±': r'$\alpha$', 'Ξ²': r'$\beta$', 'Ξ³': r'$\gamma$', + 'Ξ΄': r'$\delta$', 'Ξ΅': r'$\epsilon$', 'ΞΆ': r'$\zeta$', + 'Ξ·': r'$\eta$', 'ΞΈ': r'$\theta$', 'ΞΉ': r'$\iota$', + 'ΞΊ': r'$\kappa$', 'Ξ»': r'$\lambda$', 'ΞΌ': r'$\mu$', + 'Ξ½': r'$\nu$', 'ΞΎ': r'$\xi$', 'ΞΏ': 'o', 'Ο€': r'$\pi$', + 'ρ': r'$\rho$', 'Οƒ': r'$\sigma$', 'Ο‚': r'$\varsigma$', + 'Ο„': r'$\tau$', 'Ο…': r'$\upsilon$', 'Ο†': r'$\phi$', + 'Ο‡': r'$\chi$', 'ψ': r'$\psi$', 'Ο‰': r'$\omega$', + 'Ξ‘': 'A', 'Ξ’': 'B', 'Ξ“': r'$\Gamma$', 'Ξ”': r'$\Delta$', + 'Ξ•': 'E', 'Ξ–': 'Z', 'Ξ—': 'H', 'Θ': r'$\Theta$', + 'Ξ™': 'I', 'Κ': 'K', 'Ξ›': r'$\Lambda$', 'Μ': 'M', + 'Ν': 'N', 'Ξ': r'$\Xi$', 'Ο': 'O', 'Ξ ': r'$\Pi$', + 'Ξ‘': 'P', 'Ξ£': r'$\Sigma$', 'Ξ€': 'T', 'Ξ₯': r'$\Upsilon$', + 'Ξ¦': r'$\Phi$', 'Ξ§': 'X', 'Ξ¨': r'$\Psi$', 'Ξ©': r'$\Omega$', + 'Ο•': r'$\varphi$', 'Ο‘': r'$\vartheta$', 'Ο°': r'$\varkappa$', 'Ο±': r'$\varrho$', + } + + for char, replacement in greek_map.items(): + text = text.replace(char, replacement) + + return text diff --git a/src/database/__init__.py b/src/database/__init__.py index 3c88f846a0ee08678b1746b79c44aadd8b56f99d..b7fc74572e68da0a45f8897fa57b05dc67fcb10c 100644 --- a/src/database/__init__.py +++ b/src/database/__init__.py @@ -1,3 +1,7 @@ -from .database import db, embed_fn +"""This module initializes the database package.""" -__all__ = ["db", "embed_fn"] +from .database import chroma_client, embed_fn +from .db_manipulation import (clean_db, ingest_files_to_db, + retrive_files_from_db) + +__all__ = ["chroma_client", "embed_fn", "ingest_files_to_db", "retrive_files_from_db", "clean_db"] diff --git a/src/database/database.py b/src/database/database.py index caff8b6d3935e2cf35a47e8b783093f34d0a3db8..e268fce33ace331e22bc8eb89736af9a56bf187b 100644 --- a/src/database/database.py +++ b/src/database/database.py @@ -1,8 +1,10 @@ +"""Database module for user-uploaded files.""" + +import chromadb +from chromadb import Documents, EmbeddingFunction, Embeddings +from google import genai from google.api_core import retry from google.genai import types -from google import genai -from chromadb import Documents, EmbeddingFunction, Embeddings -import chromadb from ..services import client @@ -11,11 +13,13 @@ is_retriable = lambda e: (isinstance(e, genai.errors.APIError) and e.code in {42 class GeminiEmbeddingFunction(EmbeddingFunction): + """A class to handle retrieval embedding functions using Google Gemini API.""" + def __init__(self): self.document_mode = True @retry.Retry(predicate=is_retriable) - def __call__(self, input: Documents) -> Embeddings: + def __call__(self, inputs: Documents) -> Embeddings: if self.document_mode: embedding_task = "retrieval_document" else: @@ -23,7 +27,7 @@ class GeminiEmbeddingFunction(EmbeddingFunction): response = client.models.embed_content( model="models/text-embedding-004", - contents=input, + contents=inputs, config=types.EmbedContentConfig( task_type=embedding_task, ), @@ -31,11 +35,7 @@ class GeminiEmbeddingFunction(EmbeddingFunction): return [e.values for e in response.embeddings] -DB_NAME = "ragntex" - embed_fn = GeminiEmbeddingFunction() embed_fn.document_mode = True chroma_client = chromadb.Client() -# chroma_client.delete_collection(DB_NAME) -db = chroma_client.get_or_create_collection(name=DB_NAME, embedding_function=embed_fn) diff --git a/src/database/db_manipulation.py b/src/database/db_manipulation.py new file mode 100644 index 0000000000000000000000000000000000000000..089875476e1037b3aa1585cf5ab9917c2ba21f5b --- /dev/null +++ b/src/database/db_manipulation.py @@ -0,0 +1,119 @@ +"""Module for adding and getting PDF files to/from the database.""" + +from typing import List, Mapping, Union + +from langfuse.decorators import langfuse_context, observe + +from ..processing import process_documents +from ..telemetry import Logger +from .database import chroma_client, embed_fn + +LOGGER = Logger.get_logger() + + +@observe(name="𝌊 ingest_files_to_db") +def ingest_files_to_db(pdf_files, session_id) -> list[str]: + """Add new files to the database if they are not yet there. + Args: + pdf_files (list): List of PDF files to be ingested. + session_id (str): Unique identifier for the current session. + """ + # Get or create the database collection + db = chroma_client.get_or_create_collection( + name=session_id, embedding_function=embed_fn + ) + + # Get all the existing entries and extract the known filenames + all_entries = db.get(include=["metadatas"]) or [] + + if not all_entries: + LOGGER.info("πŸ“‚ No existing entries in the database. Ingesting all PDFs.") + + existing_pdfs = set( + meta.get("pdf_path") + for meta in all_entries["metadatas"] # type: ignore[union-attr] + if meta.get("pdf_path") + ) + + # Filter out already ingested PDFs + new_pdfs = [file for file in pdf_files if file not in existing_pdfs] + + if not new_pdfs: + LOGGER.info("πŸ“‚ No new PDFs to ingest. Skipping ingestion.") + return [] + + # Process new files only + documents, metadatas, failed = process_documents(new_pdfs) + + LOGGER.info("βž• Adding %d new PDFs to the database...", len(new_pdfs)) + if documents: + db.add( + documents=documents, + ids=[str(i) for i in range(len(documents))], + metadatas=metadatas, + ) + LOGGER.info("βœ… Documents ingested successfully.") + + return failed + + +Metadata = Mapping[str, Union[str, int, float, bool]] +DocumentsBatch = List[List[str]] +MetadataBatch = List[List[Metadata]] + + +@observe(name="πŸ” retrieve_files_from_db") +def retrive_files_from_db( + topic: str, session_id: str +) -> tuple[DocumentsBatch, MetadataBatch]: + """Retrieve relevant documents from the database based on the provided topic. + Args: + topic (str): The topic for which to retrieve documents. + session_id (str): Unique identifier for the current session. + Returns: + tuple: A 2-element tuple: + - list[str]: List of retrieved documents. + - list[dict]: List of metadata associated with the documents. + """ + # Get or create the database collection + db = chroma_client.get_or_create_collection( + name=session_id, embedding_function=embed_fn + ) + if not db: + LOGGER.error("❌ Database collection not found or could not be created.") + return [], [] + + LOGGER.info("πŸ” Retrieving relevant documents...") + embed_fn.document_mode = False + query_oneline = topic.replace("\n", " ") + + n_yelded_docs = 2 + result = db.query(query_texts=[query_oneline], n_results=n_yelded_docs) + langfuse_context.update_current_observation( + output={ + "input.query_oneline": query_oneline, + "output.n_results": n_yelded_docs, + "output.metadatas": result["metadatas"], + } + ) + [documents] = result.get("documents") or [[]] + [metadatas] = result.get("metadatas") or [[]] + + return [documents], [metadatas] + + +def clean_db(session_id: str) -> None: + """Clean the database collection for the given session ID. + Args: + session_id (str): Unique identifier for the current session. + """ + db = chroma_client.get_or_create_collection( + name=session_id, embedding_function=embed_fn + ) + if db: + chroma_client.delete_collection(name=session_id) + LOGGER.info("πŸ—‘οΈ Cleaning database for session ID: %s", session_id) + else: + LOGGER.warning( + "❌ Database collection not found for session ID: %s", session_id + ) diff --git a/src/generator.py b/src/generator.py new file mode 100644 index 0000000000000000000000000000000000000000..5ce4f32e538888e36095697a346a14a011ca53c5 --- /dev/null +++ b/src/generator.py @@ -0,0 +1,95 @@ +"""Module to put it all together and manage the generation of a presentation.""" + +from dataclasses import dataclass +from typing import Optional + +from langfuse.decorators import langfuse_context, observe + +from src.compilation import (compile_presentation, json_to_tex, + replace_unicode_greek) +# from datetime import datetime +from src.database import retrive_files_from_db +from src.processing import create_output_folder, find_used_gfx +from src.services import build_prompt, client, generate_with_retry +from src.telemetry import Logger + +LOGGER = Logger.get_logger() + + +@dataclass +class PresentationConfig: + """Configuration for the presentation generation.""" + + model_name: str = "gemini-2.0-flash" + aspect_ratio: str = "16:9" + theme: str = "default" + color_theme: str = "default" + topic: str = "" + + +@observe(name="πŸ§‘β€πŸŽ¨ generate_presentation") +def generate_presentation( + config_dict, session_id +) -> tuple[str, Optional[str], Optional[str]]: + """Main function to generate a presentation based on the provided theme, color, and topic. + + Args: + config_dict (dict): Configuration dictionary containing: + - model_name (str): Name of the model to use for generation. + - aspect_ratio (str): Aspect ratio for the presentation, e.g., "16:9", "4:3". + - theme (str): Beamer theme to use. + - color_theme (str): Beamer color theme to use. + - topic (str): Topic of the presentation. + session_id (str): Unique identifier for the current session. + + Returns: + tuple: + A 3-element tuple containing: + - str: Status message (success or error). + - Optional[str]: Trace ID for telemetry purposes, or None if unavailable. + - Optional[str]: Path to the presentation folder, or None if unavailable. + """ + # Cast dict to dataclass + try: + config = PresentationConfig(**config_dict) + except TypeError as e: + # Handle missing or extra keys gracefully + return f"Config error: {str(e)}", None, None + + trace_id = langfuse_context.get_current_trace_id() + + [documents], [metadatas] = retrive_files_from_db(config.topic, session_id) + + prompt = build_prompt(documents, metadatas, config.aspect_ratio) + + work_dir = create_output_folder(session_id) + # Generate the presentation code + model_name = config.model_name + LOGGER.info("⭐️ Generating response...") + try: + answer = generate_with_retry(client, model_name, prompt) + except Exception as e: + LOGGER.error("❌ Gemini is not reponding: %s", str(e)) + return f"Gemini error: {str(e)}", trace_id, work_dir + + langfuse_context.update_current_observation( + output={ + "model_name": model_name, + "session_id": session_id, + "aspect_ratio": config.aspect_ratio, + "prompt_length": len(prompt), + "output.response": answer.text, + } + ) + LOGGER.info("🎲 Generated the response using: %s", model_name) + + find_used_gfx(answer, work_dir, metadatas) + latex_code = json_to_tex( + answer.text, config.theme, config.color_theme, config.aspect_ratio + ) + latex_code = replace_unicode_greek(latex_code) + compilation_status = compile_presentation(latex_code, work_dir) + + if compilation_status: + return compilation_status, trace_id, work_dir + return "❌ Unknown critial error. Please try again later.", trace_id, work_dir diff --git a/src/interface/__init__.py b/src/interface/__init__.py index 15e585090ecec632efb7e9e519e23884d5b6af8b..dce688da8cef1dac27e17fedc93646fc52ab635a 100644 --- a/src/interface/__init__.py +++ b/src/interface/__init__.py @@ -1,3 +1,16 @@ +"""This module initializes the UI package.""" + from .gradio_interface import demo +from .manage_files import delete_files, download_files, upload_files +from .session_manager import (check_session_status, create_session, + with_update_session) -__all__ = ["demo"] +__all__ = [ + "demo", + "upload_files", + "download_files", + "delete_files", + "create_session", + "with_update_session", + "check_session_status", +] diff --git a/src/interface/gradio_interface.py b/src/interface/gradio_interface.py new file mode 100644 index 0000000000000000000000000000000000000000..2a7ac802b09241386b89316ab7738480780deb17 --- /dev/null +++ b/src/interface/gradio_interface.py @@ -0,0 +1,506 @@ +# pylint: disable=no-member, line-too-long +"""Gradio UI for the RAG'n'TeX LaTeX Presentation Generator.""" + +import base64 + +import gradio as gr + +from ..generator import generate_presentation +from ..telemetry import submit_feedback +from .manage_files import download_files, upload_files +from .session_manager import (check_session_status, create_session, + with_update_session) + +SESSION_TIMEOUT = 900 + + +def update_config(key, value, config) -> dict: + """Helper function to update configuration settings. + These settings will be later used for generate_presentation function. + + Args: + key (str): Configuration key to update. + value (str): New value for the configuration key. + config (dict): Current configuration dictionary. + + Returns: + dict: Updated configuration dictionary with the new key-value pair. + """ + config[key] = value + return config + + +def upload_and_update_list( + files: list, uploaded_list, session_id +) -> tuple[str, list[str]]: + """Helper function to handle uploaded documents and update the list of uploaded files. + Args: + files (list): List of file-like objects to be uploaded. + uploaded_list (list): Current list of uploaded file paths. + session_id (str): Unique identifier for the current session. + Returns: + tuple: A 2-element tuple: + - str: Status message indicating the result of the upload operation. + - list[str]: Updated list of uploaded file paths.""" + + status, new_paths = upload_files(files, session_id) + updated_list = uploaded_list + [p for p in new_paths if p not in uploaded_list] + + return status, updated_list + + +def generate_iframe(folder_path) -> str: + """Generate an HTML iframe to display the PDF presentation. + Args: + folder_path (str): Path to the folder containing the generated PDF presentation. + Returns: + str: HTML string containing the iframe to display the PDF. + """ + + file_path = f"{folder_path}/presentation.pdf" + if not file_path: + return "" + with open(file_path, "rb") as f: + base64_pdf = base64.b64encode(f.read()).decode("utf-8") + pdf_display = f""" +
+
+ """ + + return pdf_display + + +def encode_image(image_path) -> str: + """Encode an image file to a base64 data URL. + Args: + image_path (str): Path to the image file. + Returns: + str: Base64 data URL of the image. + """ + with open(image_path, "rb") as f: + data = f.read() + return f"data:image/png;base64,{base64.b64encode(data).decode()}" + + +banner_base64 = encode_image("gfx/long_logo.png") +logo_base64 = encode_image("gfx/icon_logo.png") +github_base64 = encode_image("gfx/github-mark-white.png") +favicon_base64 = encode_image("gfx/favicon.ico") + + +# Custom Gradio theme +theme = gr.themes.Monochrome( + neutral_hue=gr.themes.Color( + c50="#f8f4fe", + c100="#ede9fe", + c200="#ddd6fe", + c300="#c4b5fd", + c400="#a78bfa", + c500="#8b5cf6", + c600="#7c3aed", + c700="#6d28d9", + c800="#5b21b6", + c900="#4c1d95", + c950="#181e44", + ), +).set(body_background_fill="*neutral_50", body_text_color="*neutral_950") + + +# Additional JavaScript to handle session management and UI updates +JS_FUNC = r""" +() => { + // Force light theme + const url = new URL(window.location); + if (url.searchParams.get('__theme') !== 'light') { + url.searchParams.set('__theme', 'light'); + window.location.href = url.href; + } + + const overlayDiv = document.createElement("div"); + overlayDiv.id = "session-overlay"; + overlayDiv.style = ` + display: flex; + position: fixed; + top: 0; left: 0; width: 100vw; height: 100vh; + justify-content: center; + align-items: center; + background-color: rgba(0, 0, 0, 0.7); + color: white; + font-size: 1.5rem; + text-align: center; + z-index: 999999; + `; + overlayDiv.innerHTML = ` + ❌ Session expired.
πŸ”„ Please refresh the page to start over. + `; + + const checker = setInterval(() => { + const checkBtn = document.querySelector('#check-session-button'); + if (checkBtn) checkBtn.click(); + + const statusBox = document.querySelector('#session-status textarea'); + if (!statusBox) return; + + const value = statusBox.value; + + if (value === "expired") { + document.body.appendChild(overlayDiv); + console.log("Session expired, please refresh the page."); + + clearInterval(checker); + } + }, 5000); + + } +""" + + +with gr.Blocks(theme=theme, js=JS_FUNC) as demo: + # Session management + session_id_state = gr.State() + session_timeout = gr.State(SESSION_TIMEOUT) + status_output = gr.Textbox(visible=False, elem_id="session-status") + check_btn = gr.Button(visible=False, elem_id="check-session-button") + check_btn.click( + fn=check_session_status, + inputs=[session_id_state], + outputs=[status_output], + ) + ### + + uploaded_files_state = gr.State([]) + presentation_folder_state = gr.State("") + + # Page title and favicon (doesn't work? Gradio is really agressive) + gr.HTML( + f""" + + """, + elem_id="custom-head-injection", + visible=False, + ) + + # Mess with the download-box + gr.HTML( + """ + + """, + elem_id="custom-style-injection", + visible=False, + ) + + gr.Markdown( + '

AI-powered LaTeX Presentation Generator

' + ) + with gr.Row(): + with gr.Column(scale=1): + gr.HTML( + f""" +
+ +
+ """ + ) + with gr.Column(scale=1): + gr.Markdown( + '
Turn your PDFs and ideas into beautiful LaTeX ' + "presentations with AI. Built on top of the RAG'n'TeX" + " engine, this tool automatically selects relevant content and compiles well-structured" + " slides. Ideal for students, researchers, and educators looking to save time and " + "create topic-focused presentations with minimal effort.
" + ) + gr.Markdown( + '
Just upload your PDFs, click Upload Files, ' + "choose a theme, enter your topic, and hit Generate Presentation β€” it's that easy!
" + ) + gr.HTML( + f""" +
+

Please ⭐️ us on GitHub!

+ + GitHub + RAG'n'TeX + +
+ """ + ) + + with gr.Row(): + with gr.Column(scale=1): + gr.Markdown("## πŸ“‚ Step 1: Upload PDF Documents") + file_input = gr.File( + file_types=[".pdf"], file_count="multiple", label="Select PDF Files" + ) + upload_button = gr.Button("Upload Files", variant="primary") + + gr.Markdown("## 🎨 Step 2: Choose the parameters") + config_state = gr.State({}) + model_state = gr.State("default") + model_radio = gr.Radio( + ["gemini-2.0-flash", "gemini-2.5-flash-preview-05-20"], + label="LLM", + info="Choose Gemini version", + value="gemini-2.0-flash", + ) + model_radio.change( + fn=lambda value, config: update_config("model_name", value, config), + inputs=[model_radio, config_state], # only real components here + outputs=config_state, + ) + + aspect_ratio_radio = gr.Radio( + ["16:9", "4:3"], + label="Aspect Ratio", + info="Choose presentation aspect ratio", + value="16:9", + ) + + aspect_ratio_radio.change( + fn=lambda value, config: update_config("aspect_ratio", value, config), + inputs=[aspect_ratio_radio, config_state], # only real components here + outputs=config_state, + ) + presentation_theme_state = gr.State("default") + theme_dropdown = gr.Dropdown( + choices=[ + "default", + "Darmstadt", + "Malmoe", + "AnnArbor", + "Dresden", + "Marburg", + "Antibes", + "Frankfurt", + "Montpellier", + "Bergen", + "Goettingen", + "PaloAlto", + "Berkeley", + "Hannover", + "Pittsburgh", + "Berlin", + "Ilmenau", + "Rochester", + "Boadilla", + "JuanLesPins", + "Singapore", + "CambridgeUS", + "Luebeck", + "Szeged", + "Copenhagen", + "Madrid", + "Warsaw", + ], + value="default", # default option + label="Choose a presentation theme", + ) + + theme_dropdown.change( + fn=lambda value, config: update_config("theme", value, config), + inputs=[theme_dropdown, config_state], # only real components here + outputs=config_state, + ) + color_theme_state = gr.State("default") + color_dropdown = gr.Dropdown( + choices=[ + "default", + "albatross", + "beetle", + "crane", + "dolphin", + "fly", + "lily", + "orchid", + "rose", + "seagull", + "seahorse", + "sidebartab", + "structure", + "whale", + "wolverine", + ], + value="default", # default option + label="Choose a color theme", + ) + + color_dropdown.change( + fn=lambda value, config: update_config("color_theme", value, config), + inputs=[color_dropdown, config_state], # only real components here + outputs=config_state, + ) + + gr.Markdown("## 🧠 Step 3: Enter Presentation Topic") + topic_input = gr.Textbox( + label="Presentation Topic", + placeholder="e.g., Introduction to Quantum Computing", + lines=1, + ) + topic_input.change( + fn=lambda value, config: update_config("topic", value, config), + inputs=[topic_input, config_state], # only real components here + outputs=config_state, + ) + submit_topic_button = gr.Button("Generate Presentation", variant="primary") + + with gr.Column(scale=1): + gr.Markdown("## πŸ“„ Uploaded Files") + upload_output = gr.Textbox( + label="Upload Status", lines=3, interactive=False + ) + + gr.Markdown("## πŸ“ Presentation Processing") + compilation_status = gr.Textbox( + label="Compilation Status", lines=1, interactive=False + ) + + gr.Markdown("## πŸŽ‰ Final Presentation") + pdf_output = gr.File( + label="Download/View Presentation", + interactive=False, + elem_id="download-box", + ) + pdf_output_viewer = gr.HTML(label="Presentation Preview") + trace_id_state = gr.State("") + + gr.Markdown("
") + + with gr.Row(): + with gr.Column(scale=1): + gr.Markdown("## ⭐ Rate Us") + rating = gr.Radio( + choices=["⭐️", "⭐️⭐️", "⭐️⭐️⭐️", "⭐️⭐️⭐️⭐️", "⭐️⭐️⭐️⭐️⭐️"], + label="How would you rate this app?", + interactive=True, + type="value", + value=None, + show_label=True, + container=True, + ) + feedback_comment = gr.Textbox( + label="Give us a comment (optional)", + placeholder="What did you like or what can be improved?", + lines=3, + max_lines=5, + interactive=True, + ) + submit_feedback_button = gr.Button("Submit Feedback", variant="secondary") + feedback_output = gr.Textbox( + label="Feedback Status", interactive=False, lines=2 + ) + + with gr.Column(scale=1): + gr.Markdown("## πŸ™Œ Credits") + gr.HTML( + f""" +
+ + +
+
+

RAG'n'TeX is a collaborative effort by a team of developers and researchers driven + to make the everyday work of scientists and professionals easier. By combining LaTeX with AI, + we create smart tools that help you build polished, accurate presentations quickly and smoothly. + Our goal is to make the process simple and stress-free, so you can spend more time on what really matters.

+
+

πŸ“„ Licensed under the MIT License

+
+

Authors:

+ +
+
+ + +
+ Illustration +
+
+ """ + ) + + # Event handlers + + demo.load( + fn=create_session, + inputs=session_timeout, + outputs=session_id_state, + ) + + upload_button.click( + fn=with_update_session(upload_and_update_list), + inputs=[file_input, uploaded_files_state, session_id_state], + outputs=[upload_output, uploaded_files_state], + ) + + trace_id_state = gr.State("") + submit_topic_button.click( + fn=with_update_session(generate_presentation), + inputs=[ + config_state, + session_id_state, + ], + outputs=[compilation_status, trace_id_state, presentation_folder_state], + ) + + compilation_status.change( + fn=download_files, + inputs=[ + presentation_folder_state, + session_id_state, + ], + outputs=pdf_output, + ) + + pdf_output.change( + fn=generate_iframe, + inputs=presentation_folder_state, + outputs=pdf_output_viewer, + ) + + submit_feedback_button.click( + fn=with_update_session(submit_feedback), + inputs=[ + rating, + feedback_comment, + trace_id_state, + session_id_state, + ], + outputs=feedback_output, + ) diff --git a/src/interface/manage_files.py b/src/interface/manage_files.py new file mode 100644 index 0000000000000000000000000000000000000000..678d140d022393ec0d6d59861f878af9ce24cc0b --- /dev/null +++ b/src/interface/manage_files.py @@ -0,0 +1,108 @@ +"""Module to handle file uploads and downloads via UI.""" + +import re +import shutil +import zipfile +from pathlib import Path + +from ..database import ingest_files_to_db +from ..telemetry.logging_utils import Logger + +LOGGER = Logger.get_logger() + + +def upload_files(files: list, session_id: str) -> tuple[str, list[str]]: + """Upload files and save them in the temporary directory. + Args: + files (list): List of file-like objects to be uploaded. + session_id (str): Unique identifier for the current session. + Returns: + str: Message indicating the result of the upload operation. + list[str]: List of saved file paths. + """ + if not files: + return "❌ No new files selected", [] + + upload_dir = Path.cwd() / "tmp" / session_id + upload_dir.mkdir(parents=True, exist_ok=True) + + messages = [] + saved_paths = [] + + for file in files: + try: + temp_path = Path(file.name) + # Prepare the safe file name + safe_name = re.sub(r"[^a-zA-Z0-9_]", "_", temp_path.stem) + safe_name = re.sub(r"_+", "_", safe_name) + file_name = f"{safe_name}{temp_path.suffix}" + target_path = upload_dir / file_name + + if target_path.exists(): + messages.append(f"⚠️ File already exists: {file_name}") + continue + + if not temp_path.exists(): + messages.append(f"❌ File not found: {file_name}") + continue + + shutil.move(str(temp_path), str(target_path)) + messages.append(f"βœ… Uploaded new file: {file_name}") + LOGGER.info("πŸ“€ Uploaded file %s to %s", file_name, upload_dir) + + saved_paths.append(str(target_path)) + + except (FileNotFoundError, PermissionError, shutil.Error, OSError) as e: + LOGGER.error("❌ Error uploading %s", file_name, exc_info=e) + messages.append(f"❌ Error uploading {file_name}: {e}") + + if saved_paths: + failed = ingest_files_to_db(saved_paths, session_id) + if failed: + messages.append( + f"⚠️ Failed to process files: {', '.join(Path(f).name for f in failed)}" + ) + LOGGER.warning( + "⚠️ Failed to process files: %s", ", ".join(Path(f).name for f in failed) + ) + else: + messages.append("πŸ› οΈ All files processed successfully!") + LOGGER.info("πŸ› οΈ All files processed successfully!") + + return "\n".join(messages), saved_paths + + +def download_files(folder_path, session_id) -> str: + """Prepare downloadable zip archive from the specified folder path.""" + + if not folder_path: + return "No folder path provided." + + folder = Path(folder_path) + zip_path = Path.cwd() / "tmp" / session_id / "presentation.zip" + + with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as zipf: + for file in folder.rglob("*"): + if file.is_file() and file != zip_path: + arcname = Path("presentation") / file.relative_to(folder) + zipf.write(file, arcname=arcname) + LOGGER.info("πŸ“¦ Created zip archive at %s", zip_path) + + return str(zip_path) + + +def delete_files(session_id: str) -> None: + """Delete all files in the specified session's temporary directory.""" + + upload_dir = Path.cwd() / "tmp" / session_id + + if not upload_dir.exists(): + return + + try: + shutil.rmtree(upload_dir) + LOGGER.info("πŸ—‘οΈ Deleted folder: %s", upload_dir) + return + except Exception as e: + LOGGER.error("❌ Error deleting: %s", upload_dir, exc_info=e) + return diff --git a/src/interface/session_manager.py b/src/interface/session_manager.py new file mode 100644 index 0000000000000000000000000000000000000000..69796deac43d0dde623cd11faa47a3244843ddfa --- /dev/null +++ b/src/interface/session_manager.py @@ -0,0 +1,123 @@ +"""Session Manager Module""" + +import threading +import time +import uuid +from functools import wraps +from typing import Any, Callable + +from ..database import clean_db +from ..telemetry.logging_utils import Logger +from .manage_files import delete_files + +LOGGER = Logger.get_logger() + + +# Global session manager +session_data = {} + + +def create_session(timeout=600) -> str: + """Create a new session and return its ID. + This function generates a unique session ID, initializes the session data + with the current timestamp, and starts a background thread to monitor + the session for inactivity. If the session is inactive for a specified + timeout period, it will be automatically cleaned up. + + Returns: + str: The unique session ID. + """ + + # Create new session + session_id = str(uuid.uuid4()) + session_data[session_id] = { + "last_active": time.time(), + } + LOGGER.info("πŸͺͺ Created new session with ID: %s", session_id) + + # Start clean-up watcher + threading.Thread( + target=watch_session, args=(session_id, timeout), daemon=True + ).start() + + return session_id + + +def watch_session(session_id, timeout=600) -> None: + """Clean up if no activity for `timeout` seconds. + This function runs in a separate thread and checks if the session + is still active. If the session has not been active for the specified + timeout period, it deletes the session data. + + Args: + session_id (str): The ID of the session to watch. + timeout (int): The time in seconds after which the session is considered inactive. + """ + + while True: + time.sleep(30) + session = session_data.get(session_id) + if not session: + break + if time.time() - session["last_active"] > timeout: + LOGGER.info("πŸ•’ Session expired, ID: %s", session_id) + del session_data[session_id] + time.sleep(10) + delete_files(session_id) + clean_db(session_id) + LOGGER.info("🧹 Deleted session with ID: %s", session_id) + break + + +def update_session(session_id) -> None: + """Update the last active time for a session. + This function checks if the session ID exists in the session data + and updates its last active timestamp. + + Args: + session_id (str): The ID of the session to update. + """ + + if session_id in session_data: + session_data[session_id]["last_active"] = time.time() + + +def with_update_session(fn: Callable[..., Any]) -> Callable[..., Any]: + """Decorator to update session activity. + This decorator checks if the session ID is provided in the arguments + and updates the session's last active time. + + Args: + fn (callable): The function to wrap. + + Returns: + callable: The wrapped function that updates the session activity. + """ + + @wraps(fn) + def wrapper(*args, **kwargs): + try: + session_id = kwargs.get("session_id") + if session_id is None and args: + session_id = args[-1] + if session_id in session_data: + update_session(session_id) + except Exception as e: + LOGGER.error("❌ Failed to upadate session ID: %s", session_id, exc_info=e) + return fn(*args, **kwargs) + + return wrapper + + +def check_session_status(session_id: str) -> str: + """Check if a session is active or expired. + This function checks if the provided session ID exists in the session data. + If it exists, the session is considered active; otherwise, it is expired. + + Args: + session_id (str): The ID of the session to check. + + Returns: + str: "active" if the session is active, "expired" if it is not. + """ + return "active" if session_id in session_data else "expired" diff --git a/src/processing/__init__.py b/src/processing/__init__.py index 7310e691050e0911a8e850e01b2721c22037d21d..3e03e2a133ec33d61ca260d6fe58d2a83350722f 100644 --- a/src/processing/__init__.py +++ b/src/processing/__init__.py @@ -1,5 +1,14 @@ -from .document_processing import process_documents -from .images_processing import save_pdf_images, save_pdf_figures -from .prompt import prompt +"""This module initializes the document processing package.""" -__all__ = ["process_documents", "save_pdf_images", "save_pdf_figures", "prompt"] +from .document_processing import delete_uploaded_files, process_documents +from .images_processing import find_used_gfx, save_pdf_figures, save_pdf_images +from .output_folder import create_output_folder + +__all__ = [ + "process_documents", + "delete_uploaded_files", + "save_pdf_images", + "save_pdf_figures", + "find_used_gfx", + "create_output_folder", +] diff --git a/src/processing/document_processing.py b/src/processing/document_processing.py index 28ac4273b43030cbd58d015c1d2ade135f5baf99..800a69dad80f0abe2910e3acc6b5cbc36371bd29 100644 --- a/src/processing/document_processing.py +++ b/src/processing/document_processing.py @@ -1,12 +1,29 @@ +"""Module handling PDF document processing and content extraction.""" + +import os import re +from pathlib import Path + import fitz -import os -import hashlib +from langfuse.decorators import langfuse_context, observe +from ..telemetry import Logger from .images_processing import extract_images, extract_vector +LOGGER = Logger.get_logger() -def extract_pdf_content(pdf_path: str): + +@observe(name="βš™οΈ extract_pdf_content") +def extract_pdf_content(pdf_path: str) -> tuple[str, list[dict], dict]: + """Extract text and images from a PDF file. + Args: + pdf_path (str): Path to the PDF file. + Returns: + tuple: A 3-element tuple: + - str: Extracted text from the PDF. + - list: List of dictionaries containing image metadata. + - dict: Metadata about the PDF, including the number of images and the PDF path. + """ doc = fitz.open(pdf_path) pdf = os.path.splitext(os.path.basename(pdf_path))[0] @@ -20,42 +37,71 @@ def extract_pdf_content(pdf_path: str): figs += extract_images(pdf, doc, page, page_num) # Extract vector graphics - figs += extract_vector(pdf, doc, page, page_num) + figs += extract_vector(pdf, page, page_num) # Format the metadata metas = {"num_images": len(figs), "pdf_path": pdf_path} + langfuse_context.update_current_observation(output={"figs": figs, "metas": metas}) return text, figs, metas -def process_documents(pdf_files): +@observe(name="πŸ“Š process_documents") +def process_documents(pdf_files) -> tuple[list[str], list[dict], list[str]]: + """Process a list of PDF files to extract text and images metadata. + Args: + pdf_files (list): List of paths to PDF files. + Returns: + tuple: A 2-element tuple: + - list[str]: List of extracted text from each PDF. + - list[dict]: List of metadata dictionaries for each PDF. + """ documents = [] metadatas = [] + failed = [] for pdf_path in pdf_files: - text, imgs, metas = extract_pdf_content(pdf_path) + try: + text, imgs, metas = extract_pdf_content(pdf_path) + except Exception as e: + LOGGER.error("❌ Error processing %s", pdf_path, exc_info=e) + langfuse_context.update_current_observation( + output={ + "output.images_passage": None, + "output.num_images": None, + "output.pdf_path": pdf_path, + } + ) + failed.append(pdf_path) + continue documents.append(text) # Format images images_info = [] - for i, img in enumerate(imgs, start=1): + for _, img in enumerate(imgs, start=1): caption = img.get("caption") caption_str = str(caption) if caption is not None else "" - img_name = img["name"] - img_ratio = img["ratio"] - full_path = f"gfx/{img_name}" + full_path = f"gfx/{img['name']}" cleaned_caption = re.sub( - r"^(fig(?:ure)?\.?\s*\d+\.\s*)", "", caption_str, flags=re.IGNORECASE + r"^(fig(?:ure)?\.?\s*\d+\.\s*)", + "", + caption_str, + flags=re.IGNORECASE, ).strip() caption = cleaned_caption if cleaned_caption else "None" images_info.append( - f'{{"path": "{full_path}", "caption": "{caption}", "orientation": "{img_ratio}"}}' + ( + f'{{"path": "{full_path}", ' + f'"caption": "{caption}", ' + f'"orientation": "{img["ratio"]}"}}' + ) ) images_passage = "\n".join(images_info) + # span.set_attribute("output.images_passage", images_passage) # Format metadata fixed_metadata = { @@ -63,6 +109,33 @@ def process_documents(pdf_files): "pdf_path": metas.get("pdf_path"), "images_passage": images_passage, } + + langfuse_context.update_current_observation( + output={ + "output.images_passage": images_passage, + "output.num_images": metas.get("num_images"), + "output.pdf_path": metas.get("pdf_path"), + } + ) metadatas.append(fixed_metadata) - return documents, metadatas + return documents, metadatas, failed + + +@observe(name="πŸ—‘οΈ delete_uploaded_files") +def delete_uploaded_files(uploaded_files) -> None: + """Delete uploaded files after processing. + Args: + uploaded_files (list): List of file paths to be deleted. + """ + for file in uploaded_files: + try: + path = Path(file) + if path.exists(): + path.unlink() # Delete the file + LOGGER.info(f"Deleted file: {file}") + else: + LOGGER.warning(f"File not found for deletion: {file}") + LOGGER.info("🧹 Cleaned up uploaded files.") + except (OSError, PermissionError) as e: + LOGGER.warning(f"Failed to delete {file}", exc_info=e) diff --git a/src/processing/images_processing.py b/src/processing/images_processing.py index a71ae3447664dc7cc031f3f2219a1139dff0e288..cb382f791d4f5d39621d9341c88bc19634d79474 100644 --- a/src/processing/images_processing.py +++ b/src/processing/images_processing.py @@ -1,12 +1,34 @@ -import fitz -import re -import os +# pylint: disable=line-too-long +"""Module handling images exrtraction and processing from the uploaded PDF documents.""" + import hashlib +import json +import os +import re from collections import defaultdict +from typing import Optional + +import fitz +from langfuse.decorators import langfuse_context, observe from rtree import index +from ..telemetry import Logger -def find_image_caption(page, image_bbox, max_distance=100): +LOGGER = Logger.get_logger() + + +def find_image_caption(page, image_bbox, max_distance=100) -> Optional[str]: + """Method to find and extract image caption based on the image bounding box. + + Args: + page (fitz.Page): The page object from which to extract the caption. + image_bbox (fitz.Rect): The bounding box of the image. + max_distance (int): The maximum vertical distance from the image bottom to consider + a text block as a potential caption. + + Returns: + str: The extracted caption text if found, otherwise None. + """ # Get all text blocks on the page blocks = page.get_text("dict")["blocks"] image_bottom = image_bbox.y1 @@ -21,7 +43,7 @@ def find_image_caption(page, image_bbox, max_distance=100): continue block_bbox = block["bbox"] - x0, y0, x1, y1 = block_bbox + x0, y0, x1, _ = block_bbox vertical_distance = y0 - image_bottom # Merge all spans' text into one string @@ -42,28 +64,40 @@ def find_image_caption(page, image_bbox, max_distance=100): if re.match(r"^(Fig(ure)?\.?\s*\d+[:\-])", block_text, re.IGNORECASE): best_match_caption = block_text break - else: - fallback_caption = block_text - closest_distance = vertical_distance + fallback_caption = block_text + closest_distance = vertical_distance if best_match_caption and len(best_match_caption.strip()) > 10: return best_match_caption.strip() - elif fallback_caption and len(fallback_caption.strip()) > 10: + if fallback_caption and len(fallback_caption.strip()) > 10: return fallback_caption.strip() - else: - return None + return None -def extract_images(pdf, doc, page, page_num): - images = page.get_images(full=True) +def extract_images(pdf, doc, page, page_num) -> list[dict]: + """Extract images from a PDF page and classify them based on their aspect ratio. + Args: + pdf (str): The PDF filename without extension. + doc (fitz.Document): The PDF document object. + page (fitz.Page): The PDF page object. + page_num (int): The page number in the PDF document. + + Returns: + list: A list of dictionaries containing image metadata, including: + - "name": The name of the image file. + - "caption": The caption of the image, if found. + - "ratio": The aspect ratio classification of the image ("horizontal", "vertical", or "square"). + - "hash": The MD5 hash of the image content. + """ + images = page.get_images(full=True) imgs = [] for img_index, img in enumerate(images): # Extract the image xref = img[0] base_image = doc.extract_image(xref) image_bytes = base_image["image"] - image_hash = hashlib.md5(image_bytes).hexdigest() + image_hash = hashlib.md5(image_bytes, usedforsecurity=False).hexdigest() image_name = f"doc{pdf}_page{page_num}_img{img_index}_hash{image_hash[:8]}.png" # Find the bbox @@ -73,36 +107,51 @@ def extract_images(pdf, doc, page, page_num): image_bbox = fitz.Rect(img_info["bbox"]) break - # Get the image ratio - width = image_bbox.width - height = image_bbox.height - ratio = width / height if height != 0 else None + if image_bbox: + # Get the image ratio + width = image_bbox.width + height = image_bbox.height + ratio = width / height if height != 0 else 20 - # Classify the image based on the ratio - if ratio >= 1.5: - image_type = "horizontal" - elif ratio <= 0.67: - image_type = "vertical" - else: - image_type = "square" + # Remove images with weird ratios + if ratio < 0.1 or ratio > 10: + continue + + # Classify the image based on the ratio + if ratio >= 1.5: + image_type = "horizontal" + elif ratio <= 0.67: + image_type = "vertical" + else: + image_type = "square" - # Get caption based on bbox - caption = find_image_caption(page, image_bbox) if image_bbox else None + # Get caption based on bbox + caption = find_image_caption(page, image_bbox) if image_bbox else None - # Append an image - imgs.append( - { - "name": image_name, - "caption": caption, - "ratio": image_type, - "hash": image_hash, - } - ) + # Append an image + imgs.append( + { + "name": image_name, + "caption": caption, + "ratio": image_type, + "hash": image_hash, + } + ) return imgs -def are_bounding_boxes_close(bbox1, bbox2, threshold=50): +def are_bounding_boxes_close(bbox1, bbox2, threshold=50) -> bool: + """Check if two bounding boxes are close to each other based on their edges. + + Args: + bbox1 (tuple): The first bounding box as a tuple (left, top, right, bottom). + bbox2 (tuple): The second bounding box as a tuple (left, top, right, bottom). + threshold (int): The distance threshold to consider two boxes as close. + + Returns: + bool: True if the bounding boxes are close, False otherwise. + """ # Extracting the four edges of each bounding box left1, top1, right1, bottom1 = bbox1 left2, top2, right2, bottom2 = bbox2 @@ -116,7 +165,15 @@ def are_bounding_boxes_close(bbox1, bbox2, threshold=50): ) -def merge_bounding_boxes(bboxes): +def merge_bounding_boxes(bboxes) -> Optional[fitz.Rect]: + """Merge a list of bounding boxes into a single bounding box. + + Args: + bboxes (list): A list of bounding boxes, each represented as a tuple (left, top, right, bottom). + + Returns: + fitz.Rect: A single bounding box that encompasses all input bounding boxes. + """ if not bboxes: return None # Start with the first bounding box @@ -126,7 +183,16 @@ def merge_bounding_boxes(bboxes): return combined_bbox -def group_bounding_boxes(bboxes, max_drawings=2000, threshold=50): +def group_bounding_boxes(bboxes, threshold=50) -> list: + """Group bounding boxes that are close to each other into larger bounding boxes. + + Args: + bboxes (list): A list of bounding boxes, each represented as a tuple (left, top, right, bottom). + threshold (int): The distance threshold to consider two boxes as close. + + Returns: + list: A list of merged bounding boxes, where each box represents a group of close bounding boxes. + """ # R-tree index setup idx = index.Index() for i, rect in enumerate(bboxes): @@ -155,7 +221,7 @@ def group_bounding_boxes(bboxes, max_drawings=2000, threshold=50): # Find all connected components using DFS for i in range(len(bboxes)): if not visited[i]: - component = [] + component = [] # type: ignore dfs(i, component) components.append(component) @@ -163,7 +229,17 @@ def group_bounding_boxes(bboxes, max_drawings=2000, threshold=50): return [merge_bounding_boxes(group) for group in components] -def process_large_drawing(drawings, max_drawings=1000, threshold=50): +def process_large_drawing(drawings, max_drawings=1000, threshold=50) -> list: + """Process a large number of drawings by grouping them into bounding boxes. + + Args: + drawings (list): A list of drawing dictionaries, each containing a "rect" key with bounding box coordinates. + max_drawings (int): Maximum number of drawings to process at once. + threshold (int): The distance threshold to consider two boxes as close. + + Returns: + list: A list of merged bounding boxes, where each box represents a group of close drawings. + """ bboxes = [fitz.Rect(d["rect"]) for d in drawings if d.get("rect")] if len(bboxes) < max_drawings: @@ -182,7 +258,17 @@ def process_large_drawing(drawings, max_drawings=1000, threshold=50): return group_bounding_boxes(all_results, threshold=threshold) -def find_surrounding_text(page, group, threshold=50): +def find_surrounding_text(page, group, threshold=50) -> list: + """Find text blocks surrounding a given bounding box on a PDF page. + + Args: + page (fitz.Page): The PDF page object. + group (fitz.Rect): The bounding box of the group of drawings. + threshold (int): The distance threshold to consider a text block as surrounding. + + Returns: + list: A list of bounding boxes of surrounding text blocks. + """ text_blocks = page.get_text("dict")["blocks"] expanded = group + (-threshold, -threshold, threshold, threshold) surrounding = [] @@ -198,18 +284,33 @@ def find_surrounding_text(page, group, threshold=50): return surrounding -def extract_vector(pdf, doc, page, page_num): - MAX_DRAWINGS = 1000 +def extract_vector(pdf, page, page_num) -> list[dict]: + """Extract vector graphics from a PDF page and classify them based on their aspect ratio. + + Args: + pdf (str): The PDF filename without extension. + page (fitz.Page): The PDF page object. + page_num (int): The page number in the PDF document. + + Returns: + list: A list of dictionaries containing figure metadata, including: + - "name": The name of the figure file. + - "caption": The caption of the figure, if found. + - "ratio": The aspect ratio classification of the figure ("horizontal", "vertical", or "square"). + - "hash": The MD5 hash of the figure content. + """ + # pylint: disable=invalid-name + MAX_DRAWINGS = 800 MIN_SIZE = 0.05 MAX_SIZE = 0.30 THRESHOLD = 5 ZOOM = 4 + # pylint: enable=invalid-name page_size = page.rect.width * page.rect.height min_size = page_size * MIN_SIZE max_size = page_size * MAX_SIZE - all_text = page.get_text() drawings = page.get_drawings() # Group drawings into figures @@ -227,20 +328,28 @@ def extract_vector(pdf, doc, page, page_num): figure_bbox = group # Filter by minimal plot size - width = figure_bbox[2] - figure_bbox[0] - height = figure_bbox[3] - figure_bbox[1] + if figure_bbox is not None: + width = figure_bbox[2] - figure_bbox[0] + height = figure_bbox[3] - figure_bbox[1] + else: + width = height = 0 + area = width * height - if area > min_size and area < max_size: + if min_size < area < max_size: scale_mat = fitz.Matrix(ZOOM, ZOOM) figure_pix = page.get_pixmap(matrix=scale_mat, clip=figure_bbox) figure_bytes = figure_pix.tobytes("png") - figure_hash = hashlib.md5(figure_bytes).hexdigest() + figure_hash = hashlib.md5(figure_bytes, usedforsecurity=False).hexdigest() figure_name = ( f"doc{pdf}_page{page_num}_fig{group_num}_hash{figure_hash[:8]}.png" ) # Get the figure ratio - ratio = width / height if height != 0 else None + ratio = width / height if height != 0 else 20 + + # Remove images with weird ratios + if ratio < 0.1 or ratio > 10: + continue # Classify the image based on the ratio if ratio >= 1.5: @@ -266,7 +375,17 @@ def extract_vector(pdf, doc, page, page_num): return figs -def save_pdf_images(pdf_path: str, req_imgs: list, images_dir: str): +def save_pdf_images(pdf_path: str, req_imgs: list, images_dir: str) -> bool: + """Save images used in the presentation to the specified directory. + + Args: + pdf_path (str): Path to the PDF file. + req_imgs (list): List of dictionaries containing required images metadata. + images_dir (str): Directory where the images will be saved. + + Returns: + bool: True if images were saved successfully, False otherwise. + """ doc = fitz.open(pdf_path) pdf = os.path.splitext(os.path.basename(pdf_path))[0] @@ -285,7 +404,7 @@ def save_pdf_images(pdf_path: str, req_imgs: list, images_dir: str): xref = img[0] base_image = doc.extract_image(xref) image_bytes = base_image["image"] - image_hash = hashlib.md5(image_bytes).hexdigest() + image_hash = hashlib.md5(image_bytes, usedforsecurity=False).hexdigest() image_found = any( pdf == img["doc"] @@ -305,7 +424,17 @@ def save_pdf_images(pdf_path: str, req_imgs: list, images_dir: str): return True -def save_pdf_figures(pdf_path: str, req_figs: list, figures_dir: str): +def save_pdf_figures(pdf_path: str, req_figs: list, figures_dir: str) -> bool: + """Save figures used in the presentation to the specified directory. + + Args: + pdf_path (str): Path to the PDF file. + req_figs (list): List of dictionaries containing required figures metadata. + figures_dir (str): Directory where the figures will be saved. + + Returns: + bool: True if figures were saved successfully, False otherwise. + """ doc = fitz.open(pdf_path) pdf = os.path.splitext(os.path.basename(pdf_path))[0] @@ -317,17 +446,18 @@ def save_pdf_figures(pdf_path: str, req_figs: list, figures_dir: str): for page_num, page in enumerate(doc): if page_num in pages_to_inspect: + # pylint: disable=invalid-name MAX_DRAWINGS = 1000 MIN_SIZE = 0.05 MAX_SIZE = 0.30 THRESHOLD = 5 ZOOM = 4 + # pylint: enable=invalid-name page_size = page.rect.width * page.rect.height min_size = page_size * MIN_SIZE max_size = page_size * MAX_SIZE - all_text = page.get_text() drawings = page.get_drawings() # Group drawings into figures @@ -344,14 +474,20 @@ def save_pdf_figures(pdf_path: str, req_figs: list, figures_dir: str): figure_bbox = group # Filter by minimal plot size - width = figure_bbox[2] - figure_bbox[0] - height = figure_bbox[3] - figure_bbox[1] + if figure_bbox is not None: + width = figure_bbox[2] - figure_bbox[0] + height = figure_bbox[3] - figure_bbox[1] + else: + width = height = 0 + area = width * height - if area > min_size and area < max_size: + if min_size < area < max_size: scale_mat = fitz.Matrix(ZOOM, ZOOM) figure_pix = page.get_pixmap(matrix=scale_mat, clip=figure_bbox) figure_bytes = figure_pix.tobytes("png") - figure_hash = hashlib.md5(figure_bytes).hexdigest() + figure_hash = hashlib.md5( + figure_bytes, usedforsecurity=False + ).hexdigest() figure_found = any( pdf == fig["doc"] @@ -369,3 +505,57 @@ def save_pdf_figures(pdf_path: str, req_figs: list, figures_dir: str): f.write(figure_bytes) return True + + +@observe(name="πŸ” find_used_gfx") +def find_used_gfx(answer, work_dir: str, metadatas: list) -> None: + """Finds and saves the figures used in the LLM output to the gfx directory + where the presentation will be compiled. + + Args: + answer (str): The LLM answer containing names of the figures. + work_dir (str): The working directory where the presentation will be compiled. + metadatas (list): List of metadata dictionaries containing PDF paths. + """ + graphics_dir = os.path.join(work_dir, "gfx") + os.makedirs(graphics_dir, exist_ok=True) + LOGGER.info("πŸŒ„ Images will be saved to: %s", graphics_dir) + + # Find images, which are used in the presentation + pattern_img = re.compile( + r"doc(?P[a-zA-Z0-9_]+)_page(?P\d+)_img(?P\d+)_hash(?P[a-fA-F0-9]{8})\.png" + ) + matches_img = pattern_img.finditer(answer.text) + + req_imgs = [] + for match in matches_img: + req_img = { + "doc": match.group("doc"), + "page": int(match.group("page")), + "img": int(match.group("img")), + "hash": match.group("hash"), + } + req_imgs.append(req_img) + + # Find figures, which are used in the presentation + pattern_fig = re.compile( + r"doc(?P[a-zA-Z0-9_]+)_page(?P\d+)_fig(?P\d+)_hash(?P[a-fA-F0-9]{8})\.png" + ) + matches_fig = pattern_fig.finditer(answer.text) + req_figs = [] + for match in matches_fig: + req_fig = { + "doc": match.group("doc"), + "page": int(match.group("page")), + "fig": int(match.group("fig")), + "hash": match.group("hash"), + } + req_figs.append(req_fig) + # span.set_attribute("output.req_figs", json.dumps(req_figs)) + langfuse_context.update_current_observation( + output={"output.req_figs": json.dumps(req_figs)} + ) + # Save the required graphics + for metadata in metadatas: + save_pdf_images(metadata["pdf_path"], req_imgs, graphics_dir) + save_pdf_figures(metadata["pdf_path"], req_figs, graphics_dir) diff --git a/src/processing/output_folder.py b/src/processing/output_folder.py new file mode 100644 index 0000000000000000000000000000000000000000..316c3e9e5f852e24780eaabdf58ba2b73fce5c6a --- /dev/null +++ b/src/processing/output_folder.py @@ -0,0 +1,27 @@ +"""Module to create an output folder for saving results.""" + +import os +from datetime import datetime +from pathlib import Path + +from ..telemetry import Logger + +LOGGER = Logger.get_logger() + + +def create_output_folder(session_id: str) -> str: + """Create a new folder where the output will be saved. + Args: + session_id (str): Unique identifier for the current session. + Returns: + str: Path to the newly created output folder. + """ + + base_path = Path.cwd() / "tmp" / session_id + base_path.mkdir(parents=True, exist_ok=True) + timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S") + work_dir = os.path.join(base_path, timestamp) + os.makedirs(work_dir, exist_ok=False) + LOGGER.info("πŸ“ Created new subfolder: %s", work_dir) + + return work_dir diff --git a/src/processing/prompt.py b/src/processing/prompt.py deleted file mode 100644 index f900fbbef9eefe945d787b058285a23c0b17f104..0000000000000000000000000000000000000000 --- a/src/processing/prompt.py +++ /dev/null @@ -1,100 +0,0 @@ -prompt = r"""You are a presentation assistant that creates clear, concise, and engaging slide decks from the reference material provided. You extract the most relevant and important information, organize it logically, and generate LaTeX code for a presentation using the Beamer class. - -Structure your slides as follows: -1. **Introduction**: Present the topic and explain why it's important or interesting. -2. **Main Content**: Break down the topic into 2–4 core ideas, one idea per slide. Explain each with clear language, bullet points, or short sentences. -3. **Summary**: Recap the key takeaways, what was learned, and what it means for the audience. - -Use friendly and accessible language that anyone can understand. Avoid technical jargon unless it's essentialβ€”and when you use it, explain it simply. - -Output only valid LaTeX Beamer code. Each slide must be defined using \begin{frame} ... \end{frame}. - -Here is some reference content retrieved from a document. Please generate a LaTeX Beamer presentation based on the content, following this structure: - -1. Introduction (what is the topic and why it matters) -2. Main Part (a few slides on the core ideas) -3. Summary (what was learned, 2–3 key takeaways) - -Please output valid LaTeX code only, like this format: - -\documentclass{beamer} -\usetheme{Madrid} - -\title{[Presentation Title]} -\author{AI-generated} -\date{\today} - -\begin{document} - -\frame{\titlepage} - -\begin{frame} -\frametitle{Introduction} -\begin{itemize} -\item What's the topic? -\item Why is it important? -\end{itemize} -\end{frame} - -\begin{frame} -\frametitle{Core Idea 1} -\begin{itemize} -\item Key point 1 -\item Key point 2 -\end{itemize} -\end{frame} - -\begin{frame} -\frametitle{Core Idea 2} -\begin{columns} -\begin{column}{0.5\linewidth} -\begin{itemize} -\item Key point 1 -\item Key point 2 -\end{itemize} -\end{column} -\begin{column}{0.5\linewidth} -\center{\includegraphics[height=1.0\textheight, width=1.0\textwidth, keepaspectratio]{gfx/image} \\ image caption} -\end{column} -\end{columns} -\end{frame} - -\begin{frame} -\frametitle{Core Idea 3} -\center{\includegraphics[height=0.5\textheight, width=0.8\textwidth, keepaspectratio]{gfx/image} \\ image caption\\} -\begin{itemize} -\item Key point 1 -\item Key point 2 -\end{itemize} -\end{frame} - -... - -\begin{frame} -\frametitle{Summary} -\begin{itemize} -\item Key takeaway 1 -\item Key takeaway 2 -\end{itemize} -\end{frame} - -\end{document} - -""" - -prompt += r"""You must use **at least one image** when creating a presentation. In your output, include `\\includegraphics` commands in **at least half of the slides** where appropriate. - -Prioritize the slide structure of **Core Idea 2** (two-column layout) over **Core Idea 3** (single image on top). -Only use Core Idea 3 when appropriate based on the image orientation. - -You must select images **only from the list provided below**. Each item includes: -- `"path"`: the exact image path to use β€” **you must copy it exactly as-is**. -- `"caption"`: the image's description β€” if `"None"`, **do not use the image**. -- `"orientation"`: either `"horizontal"`, `"vertical"`, or `"square"`. - -Strict rules: -- Never invent, change, or guess the image path. Use the `"path"` value exactly as written. -- Never change or edit anything inside the square brackets `[...]` in any `\\includegraphics` command. All image formatting options (height, width, keepaspectratio) must be left untouched. -- Skip any image with caption `"None"`. -- Use **Core Idea 2** layout for **vertical** and **square** images. -- Use **Core Idea 3** layout for **horizontal** images (when a two-column layout is not suitable).\n\n""" diff --git a/src/services/__init__.py b/src/services/__init__.py index 92c6ef417cced7178e5d3adc7f07edc931a31ea1..2b8a46417d64509872dad6dfc8bc2a2efdd2027b 100644 --- a/src/services/__init__.py +++ b/src/services/__init__.py @@ -1,3 +1,7 @@ -from .google_client import client +"""This module initializes the services package.""" -__all__ = ["client"] +from .google_client import client, generate_with_retry +from .output_schema import Presentation +from .prompt import build_prompt + +__all__ = ["client", "build_prompt", "Presentation", "generate_with_retry"] diff --git a/src/services/google_client.py b/src/services/google_client.py index 68abb59e57154967bbd053f58e168ce1bf7d2f00..5e93c4aa811e7fcc9265b4e28ab47a38d4a8ed34 100644 --- a/src/services/google_client.py +++ b/src/services/google_client.py @@ -1,7 +1,89 @@ +"""Initialize and export a GenAI client using the provided Google API key.""" + +from __future__ import annotations + import os -from google import genai +import time +from typing import Any + +import httpx from dotenv import load_dotenv +from google import genai +from google.api_core.exceptions import GoogleAPIError + +from .output_schema import Presentation + +# --------------------------------------------------------------------------- # +# Globals +# --------------------------------------------------------------------------- # load_dotenv() -GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY") -client = genai.Client(api_key=GOOGLE_API_KEY) +GOOGLE_API_KEY: str | None = os.getenv("GOOGLE_API_KEY") + +# A singleton Gemini client that the rest of the project can import. +client: genai.Client = genai.Client(api_key=GOOGLE_API_KEY) + +# --------------------------------------------------------------------------- # +# Public helpers +# --------------------------------------------------------------------------- # + + +def generate_with_retry( + genai_client: genai.Client, + model_name: str, + prompt: str, + *, + max_retries: int = 3, + retry_delay: int = 2, +) -> Any: + """Generate content using the specified model with retry logic for transient errors. + + Args: + client (genai.Client): The GenAI client instance. + model_name (str): The name of the model to use for content generation. + prompt (str): The prompt to send to the model. + max_retries (int): Maximum number of retry attempts for transient errors. + retry_delay (int): Delay between retries in seconds. + + Returns: + Any + The response returned by ``genai_client.generate()``. + + Raises: + httpx.RemoteProtocolError: If the server disconnects unexpectedly. + httpx.HTTPError: For other HTTP-related errors. + GoogleAPIError: For errors specific to the Google API. + """ + answer = None + + for attempt in range(1, max_retries + 1): + try: + answer = genai_client.models.generate_content( + model=model_name, + contents=prompt, + config={ + "response_mime_type": "application/json", + "response_schema": Presentation, + }, + ) + return answer + + except httpx.RemoteProtocolError as e: + print(f"[Attempt {attempt}] Server disconnected: {e}") + if attempt < max_retries: + time.sleep(retry_delay) + else: + raise # re-raise if out of retries + + except httpx.HTTPError as e: + print(f"[Attempt {attempt}] HTTP error: {e}") + raise # you might not want to retry on all HTTP errors + + except GoogleAPIError as e: + print(f"Google API error: {e}") + raise + + except Exception as e: + print(f"Unexpected error: {e}") + raise + raise RuntimeError("generate_with_retry exhausted retries without returning") diff --git a/src/services/output_schema.py b/src/services/output_schema.py new file mode 100644 index 0000000000000000000000000000000000000000..12fa0fd18335c14edac503b428efb81ad79e4484 --- /dev/null +++ b/src/services/output_schema.py @@ -0,0 +1,46 @@ +"""This module defines the output schema for the LLM output.""" + +from typing import List, Literal, Optional + +from pydantic import BaseModel, Field + + +class Image(BaseModel): + """Represents an image used in a presentation slide.""" + + path: str = Field(..., description="Exact image path from a predefined list.") + caption: str = Field(..., description="Image caption text.") + orientation: Literal["horizontal", "vertical", "square"] = Field( + ..., description="Image orientation." + ) + + +class Slide(BaseModel): + """Represents a slide in the presentation.""" + + type: Literal["title", "introduction", "core_idea", "summary"] = Field( + ..., description="Type of the slide." + ) + title: Optional[str] = Field( + None, description="Slide title, required only for 'core_idea' slides." + ) + content_format: Optional[Literal["itemize", "text"]] = Field( + None, description="Format of the slide content." + ) + content: List[str] = Field( + ..., description="List of bullet points or text paragraphs." + ) + layout: Optional[Literal["text_only", "two_column", "single_image"]] = Field( + None, description="Slide layout for 'core_idea' slides." + ) + image: Optional[Image] = Field( + None, description="Image object if layout is 'two_column' or 'single_image'." + ) + + +class Presentation(BaseModel): + """Represents the entire presentation structure.""" + + title: str = Field(..., description="Title of the presentation.") + author: str = Field(..., description="Author of the presentation.") + slides: List[Slide] = Field(..., description="List of slides in the presentation.") diff --git a/src/services/prompt.py b/src/services/prompt.py new file mode 100644 index 0000000000000000000000000000000000000000..e67c4485240203c59fe6c42f749d166e7c3d6d5e --- /dev/null +++ b/src/services/prompt.py @@ -0,0 +1,204 @@ +"""Module contatining the master prompt.""" + + +# This is an AI prompt template, not a SQL statement. +# Bandit flagged it mistakenly as a possible SQL injection. +def get_prompt( + presentation_theme: str = "default", color_theme: str = "default" +) -> str: + """ + Returns the prompt used for generating LaTeX Beamer presentations. + Args: + presentation_theme (str): The theme for the presentation, default is "default". + color_theme (str): The color theme for the presentation, default is "default". + Returns: + str: the prompt with the specified themes and structure for generating a + LaTeX Beamer presentation. + """ + prompt = f"""You are a presentation assistant that creates clear, concise, and engaging + slide decks from the reference material provided. You extract the most relevant and important + information, organize it logically, and generate LaTeX code for a presentation using + the Beamer class. + + Structure your slides as follows: + 1. **Introduction**: Present the topic and explain why it's important or interesting. + 2. **Main Content**: Break down the topic into 2–4 core ideas, one idea per slide. Explain each with clear + language, bullet points, or short sentences. + 3. **Summary**: Recap the key takeaways, what was learned, and what it means for the audience. + + Use friendly and accessible language that anyone can understand. Avoid technical jargon unless it's + essentialβ€”and when you use it, explain it simply. + + Output only valid LaTeX Beamer code. Each slide must be defined using \\begin{{frame}} ... \\end{{frame}}. + + Here is some reference content retrieved from a document. Please generate a LaTeX Beamer presentation based on + the content, following this structure: + + 1. Introduction (what is the topic and why it matters) + 2. Main Part (a few slides on the core ideas) + 3. Summary (what was learned, 2–3 key takeaways) + + Please output valid LaTeX code only, like this format: + + \\documentclass{{beamer}} + \\usetheme{{{presentation_theme}}} + \\usecolortheme{{{color_theme}}} + \\title{{[Presentation Title]}} + \\author{{AI-generated}} + \\date{{\\today}} + + \\begin{{document}} + + \\frame{{\\titlepage}} + + \\begin{{frame}} + \\frametitle{{Introduction}} + \\begin{{itemize}} + \\item What's the topic? + \\item Why is it important? + \\end{{itemize}} + \\end{{frame}} + + \\begin{{frame}} + \\frametitle{{Core Idea 1}} + \\begin{{itemize}} + \\item Key point 1 + \\item Key point 2 + \\end{{itemize}} + \\end{{frame}} + + \\begin{{frame}} + \\frametitle{{Core Idea 2}} + \\begin{{columns}} + \\begin{{column}}{{0.5\\linewidth}} + \\begin{{itemize}} + \\item Key point 1 + \\item Key point 2 + \\end{{itemize}} + \\end{{column}} + \\begin{{column}}{{0.5\\linewidth}} + \\center{{\\includegraphics[height=1.0\\textheight, width=1.0\\textwidth, keepaspectratio]{{gfx/image}} \\\\ image caption}} + \\end{{column}} + \\end{{columns}} + \\end{{frame}} + + \\begin{{frame}} + \\frametitle{{Core Idea 3}} + \\center{{\\includegraphics[height=0.5\\textheight, width=0.8\\textwidth, keepaspectratio]{{gfx/image}} \\\\ image caption\\\\}} + \\begin{{itemize}} + \\item Key point 1 + \\item Key point 2 + \\end{{itemize}} + \\end{{frame}} + + ... + + \\begin{{frame}} + \\frametitle{{Summary}} + \\begin{{itemize}} + \\item Key takeaway 1 + \\item Key takeaway 2 + \\end{{itemize}} + \\end{{frame}} + + \\end{{document}} + + You must use **at least one image** when creating a presentation. + In your output, include `\\includegraphics` + commands in **at least half of the slides** where appropriate. + + Prioritize the slide structure of **Core Idea 2** (two-column layout) over **Core Idea 3** (single image on top). + Only use Core Idea 3 when appropriate based on the image orientation. + + You must select images **only from the list provided below**. Each item includes: + - `"path"`: the exact image path to use β€” **you must copy it exactly as-is**. + - `"caption"`: the image's description β€” if `"None"`, **do not use the image**. + - `"orientation"`: either `"horizontal"`, `"vertical"`, or `"square"`. + + Strict rules: + - Never invent, change, or guess the image path. Use the `"path"` value exactly as written. + - Never change or edit anything inside the square brackets `[...]` in any `\\includegraphics` + command. All image formatting options (height, width, keepaspectratio) must be left untouched. + - Skip any image with caption `"None"`. + - Use **Core Idea 2** layout for **vertical** and **square** images. + - Use **Core Idea 3** layout for **horizontal** images + (when a two-column layout is not suitable).\n\n""" # nosec B608 + + return prompt + + +def get_prompt_json(aspect_ratio: str = "16:9") -> str: + """ + JSON-based prompt for structured LLM output. + Args: + aspect_ratio (str): The desired aspect ratio for the presentation, e.g., "16:9". + Returns: + str: The JSON prompt string for generating a structured presentation. + """ + return f""" +You are a presentation assistant that creates clear, concise, and engaging presentation structures in JSON format. + +You must output only a **valid JSON object** with the following fields: + +- "title": Title of the presentation. +- "author": Set to "AI-generated". +- "slides": A list of slides. Each slide is an object with: + + Required: + - "type": One of the following slide types: + - "title" (for the title page) + - "introduction" (slide introducing the topic) + - "core_idea" (content slide with an optional image) + - "content_format": One of: + - "itemize" (for bullet points) + - "text" (for plain text content) + - "content": A list of bullet points (1–3) or plain text for the slides. + - "summary" (recap slide) + + Conditionally required: + - "title": Required only for "core_idea" slides (string). + + For "core_idea" slides: + - "layout": One of: + - "text_only" + - "two_column" + - "single_image" + - "image": Optional object, **required only if layout is "two_column" or "single_image"**, with: + - "path": Exact image path from a predefined list. + - "caption": Image caption text. Summarize it in one consize sentence. If "None", do not use the image. + - "orientation": One of "horizontal", "vertical", or "square". Take it from the image metadata. + +**Rules:** +- Include a slide of type "title". +- Include exactly one "introduction" and one "summary" slide. +- Include 2–4 "core_idea" slides. +- Use **at least one image**. +- Include images in **at least half of the core idea slides**. +- Each and every bullet point or phrase must be valid, clear, and easy to understand. +- Use: + - "two_column" layout for **vertical** or **square** images. + - "single_image" layout for **horizontal** images. +- Do not use any image with caption `"None"`. +- Do not invent or modify the image paths. +- Desired aspect ratio of the presentation is {aspect_ratio}. Your content must be suitable for this aspect ratio. + +Return only the JSON object. Do not include any explanations, LaTeX, or Markdown. +""" + + +def build_prompt(documents, metadatas, aspect_ratio) -> str: + """ + Build the prompt for the LLM based on the provided documents and metadata. + Args: + documents (list): List of document passages. + metadatas (list): List of metadata dictionaries corresponding to the documents. + aspect_ratio (str): The desired aspect ratio for the presentation, e.g., "16:9". + Returns: + str: The complete prompt string ready for LLM input. + """ + prompt = get_prompt_json(aspect_ratio) + for passage, metas in zip(documents, metadatas): + passage_oneline = passage.replace("\n", " ") + prompt += f"PASSAGE: {passage_oneline}\n" + prompt += f"IMAGES: {metas['images_passage']}\n" + return prompt diff --git a/src/telemetry/__init__.py b/src/telemetry/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..ac2b870c4e1473ca698c0ee6e85206ff76b75112 --- /dev/null +++ b/src/telemetry/__init__.py @@ -0,0 +1,10 @@ +"""Initialize telemetry and logging utilities.""" + +from .logging_utils import Logger +from .telemetry import init_telemetry, submit_feedback + +__all__ = [ + "init_telemetry", + "submit_feedback", + "Logger", +] diff --git a/src/utils/logging_utils.py b/src/telemetry/logging_utils.py similarity index 57% rename from src/utils/logging_utils.py rename to src/telemetry/logging_utils.py index a8fbe995dcc4e8a0cc255ada18e24f474ad95bb4..0e8fff0f51e62a7467cb468d73b5a474d4a7bb53 100644 --- a/src/utils/logging_utils.py +++ b/src/telemetry/logging_utils.py @@ -1,8 +1,4 @@ -""" -logging_utils.py - -This module provides logging configuration. -""" +"""Module for setting up and managing a global logger instance.""" import logging @@ -27,11 +23,22 @@ class Logger: ) cls._logger = logging.getLogger("Logger") + # add compatibility with opentelemetry + otel_loggers = [ + "opentelemetry.sdk", + "opentelemetry.trace", + "opentelemetry.exporter.otlp.proto.http.trace_exporter", + ] + + for name in otel_loggers: + logging.getLogger(name).setLevel(logging.DEBUG) + @classmethod def get_logger(cls) -> logging.Logger: """ Returns the global logger instance. """ + cls.setup_logging() # Ensure logging is set up before returning the logger if cls._logger is None: - cls.setup_logging() # Ensure logging is set up before returning the logger + raise RuntimeError("Logger was not properly initialized") return cls._logger diff --git a/src/telemetry/telemetry.py b/src/telemetry/telemetry.py new file mode 100644 index 0000000000000000000000000000000000000000..682d2303788e472021d37e6fe24f0f6cc54f9ae5 --- /dev/null +++ b/src/telemetry/telemetry.py @@ -0,0 +1,57 @@ +"""Telemetry utilities for Langfuse integration and OpenTelemetry tracing.""" + +import os +from functools import lru_cache + +from langfuse import Langfuse +from langfuse.decorators import observe + +from .logging_utils import Logger + +LOGGER = Logger.get_logger() + + +@lru_cache() +def init_telemetry() -> Langfuse: + """Setup langfuse for tracing.""" + # global TRACER + return Langfuse( + public_key=os.getenv("LANGFUSE_PUBLIC_KEY"), + secret_key=os.getenv("LANGFUSE_SECRET_KEY"), + host=os.getenv("LANGFUSE_HOST"), + ) + + +@observe(name="πŸ“ submit_feedback") +def submit_feedback(rating: str, comment: str, trace_id: str, _session_id: str) -> str: + """Submit user feedback with a star rating and optional comment. + Args: + rating (str): Star rating as a string of emojis (e.g., "⭐⭐⭐"). + comment (str): Optional user comment. + trace_id (str): Langfuse trace ID for linking feedback. + session_id (str): Unique identifier for the current session. + Returns: + str: Confirmation message indicating success or failure. + """ + if not rating: + return "⚠️ Please select a star rating before submitting." + + score = rating.count("⭐️") # Converts emoji to numeric + stars_display = "⭐️" * score + "β˜†" * (5 - score) + tracer = init_telemetry() + # Submit to Langfuse if trace_id is present + if trace_id: + try: + tracer.score( + trace_id=trace_id, + name="user_feedback", + comment=comment or None, + value=score, + ) + except Exception as e: + return f"βœ… Feedback received ({stars_display}), but Langfuse logging failed: {e}" + + return ( + f"βœ… Thanks for your {stars_display} rating!" + f"{' Your comment: ' + comment if comment else ''}" + ) diff --git a/src/utils/__init__.py b/src/utils/__init__.py deleted file mode 100644 index ce2d7be38938f9b570e5babfa0ee894eba565803..0000000000000000000000000000000000000000 --- a/src/utils/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from .upload_files import upload_files -from .logging_utils import Logger - -__all__ = ["upload_files", "Logger"] diff --git a/src/utils/upload_files.py b/src/utils/upload_files.py deleted file mode 100644 index f1141ca742d46a18ff334ee5292ceb33f9d34afb..0000000000000000000000000000000000000000 --- a/src/utils/upload_files.py +++ /dev/null @@ -1,31 +0,0 @@ -from pathlib import Path -import shutil -from .logging_utils import Logger - -LOGGER = Logger.get_logger() - - -def upload_files(files): - # File: src/utils/app.py - current_file = Path(__file__).resolve() - project_root = current_file.parents[2] # utils β†’ src β†’ PROJECT ROOT - UPLOAD_DIR = project_root / "uploaded_docs" - UPLOAD_DIR.mkdir(parents=True, exist_ok=True) - - for file in files: - - # Temporary path where Gradio stores the file - temp_path = file.name - file_name = Path(file.name).name - LOGGER.info("Uploading file: %s", file_name) - - # Define where you want to save the file - filepath = UPLOAD_DIR / file_name - - # Move the temporary file to your target location - shutil.move(temp_path, filepath) - - # Add the file path to the uploaded files list - # uploaded_files.append(filepath) - - LOGGER.info("Uploading file %s to folder %s", file_name, UPLOAD_DIR)