LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
feat: SDK, adapter version bumps (#85)
Chandrasekharan M34c98a0d7c60
diff --git a/backend/adapter_processor/adapter_processor.py b/backend/adapter_processor/adapter_processor.pyindex c14531f8e..ba4ef1410 100644--- a/backend/adapter_processor/adapter_processor.py+++ b/backend/adapter_processor/adapter_processor.py@@ -9,11 +9,9 @@ from adapter_processor.exceptions import (InternalServiceError,InValidAdapterId,TestAdapterException,- TestAdapterInputException,)from django.conf import settingsfrom django.core.exceptions import ObjectDoesNotExist-from platform_settings.exceptions import ActiveKeyNotFound, InvalidRequestfrom platform_settings.platform_auth_service import (PlatformAuthenticationService,)@@ -119,18 +117,8 @@ class AdapterProcessor:test_result: bool = adapter_instance.test_connection()logger.info(f"{adapter_id} test result: {test_result}")return test_result- except ActiveKeyNotFound:- raise ActiveKeyNotFound()- except InvalidRequest as e:- raise InvalidRequest(str(e.detail))- except Exception as e:- logger.error(f"Error while testing : {adapter_id}: {e}")- if isinstance(e, AdapterError):- raise TestAdapterInputException(e.message)- elif isinstance(e, ActiveKeyNotFound):- raise e- else:- raise TestAdapterException(str(e))+ except AdapterError as e:+ raise TestAdapterException(str(e))@staticmethoddef __fetch_adapters_by_key_value(key: str, value: Any) -> Adapter:diff --git a/backend/pdm.lock b/backend/pdm.lockindex a1ea74c4f..6808276ca 100644--- a/backend/pdm.lock+++ b/backend/pdm.lock@@ -5,7 +5,7 @@groups = ["default", "deploy", "test"]strategy = ["cross_platform", "inherit_metadata"]lock_version = "4.4.1"-content_hash = "sha256:5dc2189aaa7017f49f8711bc05b6fc8a4f33ac93387b53bd3e9aff95a264c33f"+content_hash = "sha256:28a719da24a450371a918600bb99e67b0b04ebd3a0d2c9f642783de7a3956efd"[[package]]name = "adlfs"@@ -338,6 +338,7 @@ version = "4.0.3"requires_python = ">=3.7"summary = "Timeout context manager for asyncio programs"groups = ["default"]+marker = "python_version < \"3.12.0\""files = [{file = "async-timeout-4.0.3.tar.gz", hash = "sha256:4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f"},{file = "async_timeout-4.0.3-py3-none-any.whl", hash = "sha256:7405140ff1230c310e51dc27b3145b9092d659ce68ff733fb0cefe3ee42be028"},@@ -406,7 +407,7 @@ files = [[[package]]name = "azure-core"-version = "1.30.0"+version = "1.30.1"requires_python = ">=3.7"summary = "Microsoft Azure Core Library for Python"groups = ["default"]@@ -416,8 +417,8 @@ dependencies = ["typing-extensions>=4.6.0",]files = [- {file = "azure-core-1.30.0.tar.gz", hash = "sha256:6f3a7883ef184722f6bd997262eddaf80cfe7e5b3e0caaaf8db1695695893d35"},- {file = "azure_core-1.30.0-py3-none-any.whl", hash = "sha256:3dae7962aad109610e68c9a7abb31d79720e1d982ddf61363038d175a5025e89"},+ {file = "azure-core-1.30.1.tar.gz", hash = "sha256:26273a254131f84269e8ea4464f3560c731f29c0c1f69ac99010845f239c1a8f"},+ {file = "azure_core-1.30.1-py3-none-any.whl", hash = "sha256:7c5ee397e48f281ec4dd773d67a0a47a0962ed6fa833036057f9ea067f688e74"},][[package]]@@ -454,7 +455,7 @@ files = [[[package]]name = "azure-storage-blob"-version = "12.19.0"+version = "12.19.1"requires_python = ">=3.7"summary = "Microsoft Azure Blob Storage Client Library for Python"groups = ["default"]@@ -465,8 +466,8 @@ dependencies = ["typing-extensions>=4.3.0",]files = [- {file = "azure-storage-blob-12.19.0.tar.gz", hash = "sha256:26c0a4320a34a3c2a1b74528ba6812ebcb632a04cd67b1c7377232c4b01a5897"},- {file = "azure_storage_blob-12.19.0-py3-none-any.whl", hash = "sha256:7bbc2c9c16678f7a420367fef6b172ba8730a7e66df7f4d7a55d5b3c8216615b"},+ {file = "azure-storage-blob-12.19.1.tar.gz", hash = "sha256:13e16ba42fc54ac2c7e8f976062173a5c82b9ec0594728e134aac372965a11b0"},+ {file = "azure_storage_blob-12.19.1-py3-none-any.whl", hash = "sha256:c5530dc51c21c9564e4eb706cd499befca8819b10dd89716d3fc90d747556243"},][[package]]@@ -1209,12 +1210,12 @@ files = [[[package]]name = "flatbuffers"-version = "23.5.26"+version = "24.3.7"summary = "The FlatBuffers serialization format for Python"groups = ["default"]files = [- {file = "flatbuffers-23.5.26-py2.py3-none-any.whl", hash = "sha256:c0ff356da363087b915fde4b8b45bdda73432fc17cddb3c8157472eab1422ad1"},- {file = "flatbuffers-23.5.26.tar.gz", hash = "sha256:9ea1144cac05ce5d86e2859f431c6cd5e66cd9c78c558317c7955fb8d4c78d89"},+ {file = "flatbuffers-24.3.7-py2.py3-none-any.whl", hash = "sha256:80c4f5dcad0ee76b7e349671a0d657f2fbba927a0244f88dd3f5ed6a3694e1fc"},+ {file = "flatbuffers-24.3.7.tar.gz", hash = "sha256:0895c22b9a6019ff2f4de2e5e2f7cd15914043e6e7033a94c0c6369422690f22"},][[package]]@@ -2694,13 +2695,13 @@ files = [[[package]]name = "packaging"-version = "23.2"+version = "24.0"requires_python = ">=3.7"summary = "Core utilities for Python packages"groups = ["default", "deploy", "test"]files = [- {file = "packaging-23.2-py3-none-any.whl", hash = "sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7"},- {file = "packaging-23.2.tar.gz", hash = "sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5"},+ {file = "packaging-24.0-py3-none-any.whl", hash = "sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5"},+ {file = "packaging-24.0.tar.gz", hash = "sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9"},][[package]]@@ -3039,7 +3040,7 @@ files = [[[package]]name = "pyarrow"-version = "15.0.0"+version = "15.0.1"requires_python = ">=3.8"summary = "Python library for Apache Arrow"groups = ["default"]@@ -3047,28 +3048,28 @@ dependencies = ["numpy<2,>=1.16.6",]files = [- {file = "pyarrow-15.0.0-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:0a524532fd6dd482edaa563b686d754c70417c2f72742a8c990b322d4c03a15d"},- {file = "pyarrow-15.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:60a6bdb314affa9c2e0d5dddf3d9cbb9ef4a8dddaa68669975287d47ece67642"},- {file = "pyarrow-15.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:66958fd1771a4d4b754cd385835e66a3ef6b12611e001d4e5edfcef5f30391e2"},- {file = "pyarrow-15.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1f500956a49aadd907eaa21d4fff75f73954605eaa41f61cb94fb008cf2e00c6"},- {file = "pyarrow-15.0.0-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:6f87d9c4f09e049c2cade559643424da84c43a35068f2a1c4653dc5b1408a929"},- {file = "pyarrow-15.0.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:85239b9f93278e130d86c0e6bb455dcb66fc3fd891398b9d45ace8799a871a1e"},- {file = "pyarrow-15.0.0-cp310-cp310-win_amd64.whl", hash = "sha256:5b8d43e31ca16aa6e12402fcb1e14352d0d809de70edd185c7650fe80e0769e3"},- {file = "pyarrow-15.0.0-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:fa7cd198280dbd0c988df525e50e35b5d16873e2cdae2aaaa6363cdb64e3eec5"},- {file = "pyarrow-15.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8780b1a29d3c8b21ba6b191305a2a607de2e30dab399776ff0aa09131e266340"},- {file = "pyarrow-15.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fe0ec198ccc680f6c92723fadcb97b74f07c45ff3fdec9dd765deb04955ccf19"},- {file = "pyarrow-15.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:036a7209c235588c2f07477fe75c07e6caced9b7b61bb897c8d4e52c4b5f9555"},- {file = "pyarrow-15.0.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:2bd8a0e5296797faf9a3294e9fa2dc67aa7f10ae2207920dbebb785c77e9dbe5"},- {file = "pyarrow-15.0.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:e8ebed6053dbe76883a822d4e8da36860f479d55a762bd9e70d8494aed87113e"},- {file = "pyarrow-15.0.0-cp311-cp311-win_amd64.whl", hash = "sha256:17d53a9d1b2b5bd7d5e4cd84d018e2a45bc9baaa68f7e6e3ebed45649900ba99"},- {file = "pyarrow-15.0.0-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:47af7036f64fce990bb8a5948c04722e4e3ea3e13b1007ef52dfe0aa8f23cf7f"},- {file = "pyarrow-15.0.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:93768ccfff85cf044c418bfeeafce9a8bb0cee091bd8fd19011aff91e58de540"},- {file = "pyarrow-15.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f6ee87fd6892700960d90abb7b17a72a5abb3b64ee0fe8db6c782bcc2d0dc0b4"},- {file = "pyarrow-15.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:001fca027738c5f6be0b7a3159cc7ba16a5c52486db18160909a0831b063c4e4"},- {file = "pyarrow-15.0.0-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:d1c48648f64aec09accf44140dccb92f4f94394b8d79976c426a5b79b11d4fa7"},- {file = "pyarrow-15.0.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:972a0141be402bb18e3201448c8ae62958c9c7923dfaa3b3d4530c835ac81aed"},- {file = "pyarrow-15.0.0-cp39-cp39-win_amd64.whl", hash = "sha256:f01fc5cf49081426429127aa2d427d9d98e1cb94a32cb961d583a70b7c4504e6"},- {file = "pyarrow-15.0.0.tar.gz", hash = "sha256:876858f549d540898f927eba4ef77cd549ad8d24baa3207cf1b72e5788b50e83"},+ {file = "pyarrow-15.0.1-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:c2ddb3be5ea938c329a84171694fc230b241ce1b6b0ff1a0280509af51c375fa"},+ {file = "pyarrow-15.0.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:7543ea88a0ff72f8e6baaf9bfdbec2c62aeabdbede9e4a571c71cc3bc43b6302"},+ {file = "pyarrow-15.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1519e218a6941fc074e4501088d891afcb2adf77c236e03c34babcf3d6a0d1c7"},+ {file = "pyarrow-15.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:28cafa86e1944761970d3b3fc0411b14ff9b5c2b73cd22aaf470d7a3976335f5"},+ {file = "pyarrow-15.0.1-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:be5c3d463e33d03eab496e1af7916b1d44001c08f0f458ad27dc16093a020638"},+ {file = "pyarrow-15.0.1-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:47b1eda15d3aa3f49a07b1808648e1397e5dc6a80a30bf87faa8e2d02dad7ac3"},+ {file = "pyarrow-15.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:e524a31be7db22deebbbcf242b189063ab9a7652c62471d296b31bc6e3cae77b"},+ {file = "pyarrow-15.0.1-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:a476fefe8bdd56122fb0d4881b785413e025858803cc1302d0d788d3522b374d"},+ {file = "pyarrow-15.0.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:309e6191be385f2e220586bfdb643f9bb21d7e1bc6dd0a6963dc538e347b2431"},+ {file = "pyarrow-15.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:83bc586903dbeb4365cbc72b602f99f70b96c5882e5dfac5278813c7d624ca3c"},+ {file = "pyarrow-15.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:07e652daac6d8b05280cd2af31c0fb61a4490ec6a53dc01588014d9fa3fdbee9"},+ {file = "pyarrow-15.0.1-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:abad2e08652df153a72177ce20c897d083b0c4ebeec051239e2654ddf4d3c996"},+ {file = "pyarrow-15.0.1-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:cde663352bc83ad75ba7b3206e049ca1a69809223942362a8649e37bd22f9e3b"},+ {file = "pyarrow-15.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:1b6e237dd7a08482a8b8f3f6512d258d2460f182931832a8c6ef3953203d31e1"},+ {file = "pyarrow-15.0.1-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:dd532d3177e031e9b2d2df19fd003d0cc0520d1747659fcabbd4d9bb87de508c"},+ {file = "pyarrow-15.0.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ce8c89848fd37e5313fc2ce601483038ee5566db96ba0808d5883b2e2e55dc53"},+ {file = "pyarrow-15.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:862eac5e5f3b6477f7a92b2f27e560e1f4e5e9edfca9ea9da8a7478bb4abd5ce"},+ {file = "pyarrow-15.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f0ea3a29cd5cb99bf14c1c4533eceaa00ea8fb580950fb5a89a5c771a994a4e"},+ {file = "pyarrow-15.0.1-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:bb902f780cfd624b2e8fd8501fadab17618fdb548532620ef3d91312aaf0888a"},+ {file = "pyarrow-15.0.1-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:4f87757f02735a6bb4ad2e1b98279ac45d53b748d5baf52401516413007c6999"},+ {file = "pyarrow-15.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:efd3816c7fbfcbd406ac0f69873cebb052effd7cdc153ae5836d1b00845845d7"},+ {file = "pyarrow-15.0.1.tar.gz", hash = "sha256:21d812548d39d490e0c6928a7c663f37b96bf764034123d4b4ab4530ecc757a9"},][[package]]@@ -3365,36 +3366,36 @@ files = [[[package]]name = "pyparsing"-version = "3.1.1"+version = "3.1.2"requires_python = ">=3.6.8"summary = "pyparsing module - Classes and methods to define and execute parsing grammars"groups = ["default"]marker = "python_version > \"3.0\""files = [- {file = "pyparsing-3.1.1-py3-none-any.whl", hash = "sha256:32c7c0b711493c72ff18a981d24f28aaf9c1fb7ed5e9667c9e84e3db623bdbfb"},- {file = "pyparsing-3.1.1.tar.gz", hash = "sha256:ede28a1a32462f5a9705e07aea48001a08f7cf81a021585011deba701581a0db"},+ {file = "pyparsing-3.1.2-py3-none-any.whl", hash = "sha256:f9db75911801ed778fe61bb643079ff86601aca99fcae6345aa67292038fb742"},+ {file = "pyparsing-3.1.2.tar.gz", hash = "sha256:a1bac0ce561155ecc3ed78ca94d3c9378656ad4c94c1270de543f621420f94ad"},][[package]]name = "pypdfium2"-version = "4.27.0"+version = "4.28.0"requires_python = ">= 3.6"summary = "Python bindings to PDFium"groups = ["default"]files = [- {file = "pypdfium2-4.27.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:2938f423c79b49df9057993f747e537a05b71bc2c847801ac743f27c3220d363"},- {file = "pypdfium2-4.27.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:f396941e070bf6c245890f2ffb2cb04f39585e3cda93ebb1648f1ed0e99b921f"},- {file = "pypdfium2-4.27.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4d593649fd787c4521f3b8e84892a070d62c19ae3dee7995f38e760e4e14c7c5"},- {file = "pypdfium2-4.27.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:abb16df75dd0ba1c92553bbc9127edce46d59008047bb68abbf002963495d561"},- {file = "pypdfium2-4.27.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:69c76670e62db707fa5374eb8c71c2e9f9e4d6518707cd47725f7c2725129f8a"},- {file = "pypdfium2-4.27.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:40fe503afef2a4c8180c75c1bb3c98eead4c60158b859c440c4c4bf4fa5b3ece"},- {file = "pypdfium2-4.27.0-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bfeb8337c1435ecaa584649b21b691152e06be3b01db761a2cd863fb2fdfda04"},- {file = "pypdfium2-4.27.0-py3-none-musllinux_1_1_i686.whl", hash = "sha256:83c5c12714a5302b9947fe8fe97b003e9b934dec2529e5c10414d3ef5a3c8f19"},- {file = "pypdfium2-4.27.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:c85e6f4fe5475665237da8a698e92c68339bdbc3257e2bcb325feacde5873dbc"},- {file = "pypdfium2-4.27.0-py3-none-win32.whl", hash = "sha256:5c3413d4eeab8f2618b7af7d827dde5b7d40e752033c555e5889508b94f42090"},- {file = "pypdfium2-4.27.0-py3-none-win_amd64.whl", hash = "sha256:597d262152e4aff36f6b2a395826c74c28977055b3b7233963cc91b243c74c78"},- {file = "pypdfium2-4.27.0-py3-none-win_arm64.whl", hash = "sha256:ee4f4f433c9896953ef2ff8622a0912775b88380f91c6a2b8126fc5387d05620"},- {file = "pypdfium2-4.27.0.tar.gz", hash = "sha256:1ff6ac30b98850558c0d163e37fdb868f683b1b2e8ae734072138571a0546222"},+ {file = "pypdfium2-4.28.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:b95dcbd6320e769c81314f0042e3507f4f14c1eb954882ae26d9504a4afe843d"},+ {file = "pypdfium2-4.28.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c6159c2751773575fe7b74bb438f5cf6ed832432eb6db2095922af60803ed911"},+ {file = "pypdfium2-4.28.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91e78c0830e1ff99461b00e3bd0f5b5242bb6b0de6f07e929cdea9d8b1cdbdce"},+ {file = "pypdfium2-4.28.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:562dac267e1323a3206d87072ad1595f923b9a983ac77c8e17fe36aec0ae1b72"},+ {file = "pypdfium2-4.28.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a7779fc76e4fa7ee1c1971f78e0995d5217da405167e8d6b55daa02194b4c2ae"},+ {file = "pypdfium2-4.28.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5e223f3c0b702406927baed3cd581ac19c2a8a254019035387b47ae05051dd71"},+ {file = "pypdfium2-4.28.0-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:1a647454bdc36f11264a8cbbbf8bdfd47997aa81abd2e4984965693428761c22"},+ {file = "pypdfium2-4.28.0-py3-none-musllinux_1_1_i686.whl", hash = "sha256:0a168ac8de5b3ff6b78dfef575eaeb429a64bb6da5683f8138d3a6917eba6f39"},+ {file = "pypdfium2-4.28.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:c999b2dc41e3050bf893252f1f9edb2af37e61d87ce17d9725975bf7bf00acaa"},+ {file = "pypdfium2-4.28.0-py3-none-win32.whl", hash = "sha256:0b7b1e1748ac72f57d3e77580adc20b23d0d644598fd83339cd2ac4e803e9ed9"},+ {file = "pypdfium2-4.28.0-py3-none-win_amd64.whl", hash = "sha256:927f9b9498d009573509b3f6f75bab2e9aaca689cac5af0afb6fbfbaa6279cc3"},+ {file = "pypdfium2-4.28.0-py3-none-win_arm64.whl", hash = "sha256:61cb7f54d6cf26e9d9b996f553f803f2658d93fcee4f76016264b268f41c9bf7"},+ {file = "pypdfium2-4.28.0.tar.gz", hash = "sha256:1f18981bcceb3a9e59c6de3e4e7e070cddc4de1f7faf419d9ad5f677b06fd909"},][[package]]@@ -3425,7 +3426,7 @@ files = [[[package]]name = "pytest"-version = "8.0.2"+version = "8.1.1"requires_python = ">=3.8"summary = "pytest: simple powerful testing with Python"groups = ["test"]@@ -3434,12 +3435,12 @@ dependencies = ["exceptiongroup>=1.0.0rc8; python_version < \"3.11\"","iniconfig","packaging",- "pluggy<2.0,>=1.3.0",- "tomli>=1.0.0; python_version < \"3.11\"",+ "pluggy<2.0,>=1.4",+ "tomli>=1; python_version < \"3.11\"",]files = [- {file = "pytest-8.0.2-py3-none-any.whl", hash = "sha256:edfaaef32ce5172d5466b5127b42e0d6d35ebbe4453f0e3505d96afd93f6b096"},- {file = "pytest-8.0.2.tar.gz", hash = "sha256:d4051d623a2e0b7e51960ba963193b09ce6daeb9759a451844a21e4ddedfc1bd"},+ {file = "pytest-8.1.1-py3-none-any.whl", hash = "sha256:2a8386cfc11fa9d2c50ee7b2a57e7d898ef90470a7a34c4b949ff59662bb78b7"},+ {file = "pytest-8.1.1.tar.gz", hash = "sha256:ac978141a75948948817d360297b7aae0fcb9d6ff6bc9ec6d514b85d5a65c044"},][[package]]@@ -3631,16 +3632,16 @@ files = [[[package]]name = "redis"-version = "5.0.2"+version = "5.0.3"requires_python = ">=3.7"summary = "Python client for Redis database and key-value store"groups = ["default"]dependencies = [- "async-timeout>=4.0.3",+ "async-timeout>=4.0.3; python_full_version < \"3.11.3\"",]files = [- {file = "redis-5.0.2-py3-none-any.whl", hash = "sha256:4caa8e1fcb6f3c0ef28dba99535101d80934b7d4cd541bbb47f4a3826ee472d1"},- {file = "redis-5.0.2.tar.gz", hash = "sha256:3f82cc80d350e93042c8e6e7a5d0596e4dd68715babffba79492733e1f367037"},+ {file = "redis-5.0.3-py3-none-any.whl", hash = "sha256:5da9b8fe9e1254293756c16c008e8620b3d15fcc6dde6babde9541850e72a32d"},+ {file = "redis-5.0.3.tar.gz", hash = "sha256:4973bae7444c0fbed64a06b87446f79361cb7e4ec1538c022d696ed7a5015580"},][[package]]@@ -3751,7 +3752,7 @@ files = [[[package]]name = "requests-oauthlib"-version = "1.3.1"+version = "1.4.0"requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"summary = "OAuthlib authentication support for Requests."groups = ["default"]@@ -3760,8 +3761,8 @@ dependencies = ["requests>=2.0.0",]files = [- {file = "requests-oauthlib-1.3.1.tar.gz", hash = "sha256:75beac4a47881eeb94d5ea5d6ad31ef88856affe2332b9aafb52c6452ccf0d7a"},- {file = "requests_oauthlib-1.3.1-py2.py3-none-any.whl", hash = "sha256:2577c501a2fb8d05a304c09d090d6e47c306fef15809d102b327cf8364bddab5"},+ {file = "requests-oauthlib-1.4.0.tar.gz", hash = "sha256:acee623221e4a39abcbb919312c8ff04bd44e7e417087fb4bd5e2a2f53d5e79a"},+ {file = "requests_oauthlib-1.4.0-py2.py3-none-any.whl", hash = "sha256:7a3130d94a17520169e38db6c8d75f2c974643788465ecc2e4b36d288bf13033"},][[package]]@@ -4361,7 +4362,7 @@ files = [[[package]]name = "storage3"-version = "0.7.0"+version = "0.7.3"requires_python = ">=3.8,<4.0"summary = "Supabase Storage client for Python."groups = ["default"]@@ -4371,8 +4372,8 @@ dependencies = ["typing-extensions<5.0.0,>=4.2.0",]files = [- {file = "storage3-0.7.0-py3-none-any.whl", hash = "sha256:dd2d6e68f7a3dc038047ed62fa8bdc5c2e3d6b6e56ee2951195d084bcce71605"},- {file = "storage3-0.7.0.tar.gz", hash = "sha256:9ddecc775cdc04514413bd44b9ec61bc25aad9faadabefdb6e6e88b33756f5fd"},+ {file = "storage3-0.7.3-py3-none-any.whl", hash = "sha256:dc6a59da801ee6fc00015da4967ac0b5c3e5508d31ffd796f0e4c83957e5c6a0"},+ {file = "storage3-0.7.3.tar.gz", hash = "sha256:943c31de4a7c7490ad7960d963a6b410979ebd0e1b3d320d76cb61564ab0b528"},][[package]]@@ -4773,7 +4774,7 @@ files = [[[package]]name = "unstract-adapters"-version = "0.4.0"+version = "0.4.1"requires_python = "<3.12,>=3.9"summary = "Unstract Adapters"groups = ["default"]@@ -4799,8 +4800,8 @@ dependencies = ["weaviate-client==3.25.3",]files = [- {file = "unstract_adapters-0.4.0-py3-none-any.whl", hash = "sha256:6a7fd6fa376f883242c290a862c4d1b024c357b003cb9d86b494c350edfc58a4"},- {file = "unstract_adapters-0.4.0.tar.gz", hash = "sha256:78c56813c626af61d1d7b64f3cc603ce7b276a11c96d634d154fce5bc55cd7e6"},+ {file = "unstract_adapters-0.4.1-py3-none-any.whl", hash = "sha256:d8be73fe96f37f347274b62360e2a99b69e83b93e4be4c93797e383e0a0cafbb"},+ {file = "unstract_adapters-0.4.1.tar.gz", hash = "sha256:1f0ceaa8a26af51dd46713ec73b029a115c2a9f43a00e10ae73e8dedee7e1069"},][[package]]@@ -4857,7 +4858,7 @@ dependencies = [[[package]]name = "unstract-sdk"-version = "0.14.0"+version = "0.15.0"requires_python = "<3.11.1,>=3.9"summary = "A framework for writing Unstract Tools/Apps"groups = ["default"]@@ -4871,11 +4872,11 @@ dependencies = ["python-magic~=0.4.27","tiktoken~=0.4.0","transformers==4.37.0",- "unstract-adapters~=0.4.0",+ "unstract-adapters~=0.4.1",]files = [- {file = "unstract_sdk-0.14.0-py3-none-any.whl", hash = "sha256:f1494ac22d3a8f637ad96c168f31021d86644ac14817b13ced740c4f3eb7084a"},- {file = "unstract_sdk-0.14.0.tar.gz", hash = "sha256:448b72fa22d91ed589c8932d5764c912f75d464bd4b1cbade528d4330b91dd7a"},+ {file = "unstract_sdk-0.15.0-py3-none-any.whl", hash = "sha256:3037f231d4d1b12f4768ccc7152428f039048ff13a70d68b028669ba99394626"},+ {file = "unstract_sdk-0.15.0.tar.gz", hash = "sha256:ad1cc9eafad4976e6f9e087ed72b139d7936b03b5f8422b5b11dfbf55db007e3"},][[package]]@@ -4889,7 +4890,7 @@ dependencies = ["PyYAML~=6.0.1","docker~=6.1.3","jsonschema~=4.18.2",- "unstract-adapters~=0.4.0",+ "unstract-adapters~=0.4.1","unstract-tool-sandbox",]diff --git a/backend/prompt_studio/prompt_studio_core/exceptions.py b/backend/prompt_studio/prompt_studio_core/exceptions.pyindex fb417cb1b..1d553603f 100644--- a/backend/prompt_studio/prompt_studio_core/exceptions.py+++ b/backend/prompt_studio/prompt_studio_core/exceptions.py@@ -19,7 +19,7 @@ class PromptNotValid(APIException):class IndexingError(APIException):- status_code = 400+ status_code = 500default_detail = "Error while indexing file"diff --git a/backend/prompt_studio/prompt_studio_core/prompt_studio_helper.py b/backend/prompt_studio/prompt_studio_core/prompt_studio_helper.pyindex 90e10c7fc..9895f80a9 100644--- a/backend/prompt_studio/prompt_studio_core/prompt_studio_helper.py+++ b/backend/prompt_studio/prompt_studio_core/prompt_studio_helper.py@@ -23,10 +23,11 @@ from prompt_studio.prompt_studio_core.models import CustomToolfrom prompt_studio.prompt_studio_core.prompt_ide_base_tool import (PromptIdeBaseTool,)-from prompt_studio.prompt_studio_index_manager.prompt_studio_index_helper import (+from prompt_studio.prompt_studio_index_manager.prompt_studio_index_helper import ( # noqa: E501PromptStudioIndexHelper,)from unstract.sdk.constants import LogLevel+from unstract.sdk.exceptions import SdkErrorfrom unstract.sdk.index import ToolIndexfrom unstract.sdk.prompt import PromptToolfrom unstract.sdk.utils.tool_utils import ToolUtils@@ -151,7 +152,7 @@ class PromptStudioHelper:doc_id = PromptStudioHelper.dynamic_indexer(profile_manager=default_profile,tool_id=tool_id,- file_name=file_path,+ file_path=file_path,org_id=org_id,document_id=document_id,is_summary=is_summary,@@ -174,7 +175,7 @@ class PromptStudioHelper:file_name: str,org_id: str,user_id: str,- document_id: str+ document_id: str,) -> Any:"""Execute chain/single run of the prompts. Makes a call to promptservice and returns the dict of response.@@ -227,8 +228,7 @@ class PromptStudioHelper:),)if not prompt_instance:- logger.error(- f"Prompt id {id} does not have any data in db")+ logger.error(f"Prompt id {id} does not have any data in db")raise PromptNotValid()except Exception as exc:logger.error(f"Error while fetching prompt {exc}")@@ -257,7 +257,7 @@ class PromptStudioHelper:tool=tool,prompts=prompts,org_id=org_id,- document_id=document_id+ document_id=document_id,)stream_log.publish(tool.tool_id,@@ -277,7 +277,7 @@ class PromptStudioHelper:path: str,prompts: list[ToolStudioPrompt],org_id: str,- document_id: str+ document_id: str,) -> Any:"""Utility function to invoke prompt service. Used internally.@@ -315,7 +315,7 @@ class PromptStudioHelper:raise DefaultProfileError()PromptStudioHelper.dynamic_indexer(profile_manager=prompt_profile_manager,- file_name=path,+ file_path=path,tool_id=str(tool.tool_id),org_id=org_id,document_id=document_id,@@ -397,11 +397,28 @@ class PromptStudioHelper:def dynamic_indexer(profile_manager: ProfileManager,tool_id: str,- file_name: str,+ file_path: str,org_id: str,document_id: str,is_summary: bool = False,) -> str:+ """Used to index a file based on the passed arguments.++ This is useful when a file needs to be indexed dynamically as the+ parameters meant for indexing changes. The file++ Args:+ profile_manager (ProfileManager): Profile manager instance that hold+ values such as chunk size, chunk overlap and adapter IDs+ tool_id (str): UUID of the prompt studio tool+ file_path (str): Path to the file that needs to be indexed+ org_id (str): ID of the organization+ is_summary (bool, optional): Flag to ensure if extracted contents+ need to be persisted. Defaults to False.++ Returns:+ str: Index key for the combination of arguments+ """try:util = PromptIdeBaseTool(log_level=LogLevel.INFO, org_id=org_id)tool_index = ToolIndex(tool=util)@@ -411,33 +428,34 @@ class PromptStudioHelper:embedding_model = str(profile_manager.embedding_model.id)vector_db = str(profile_manager.vector_store.id)x2text_adapter = str(profile_manager.x2text.id)- file_hash = ToolUtils.get_hash_from_file(file_path=file_name)+ file_hash = ToolUtils.get_hash_from_file(file_path=file_path)extract_file_path: Optional[str] = Noneif not is_summary:- directory, filename = os.path.split(file_name)+ directory, filename = os.path.split(file_path)extract_file_path = os.path.join(directory, "extract", os.path.splitext(filename)[0] + ".txt")- doc_id = str(- tool_index.index_file(++ try:+ doc_id: str = tool_index.index_file(tool_id=tool_id,embedding_type=embedding_model,vector_db=vector_db,x2text_adapter=x2text_adapter,- file_path=file_name,+ file_path=file_path,file_hash=file_hash,chunk_size=profile_manager.chunk_size,chunk_overlap=profile_manager.chunk_overlap,reindex=profile_manager.reindex,output_file_path=extract_file_path,)- )-- PromptStudioIndexHelper.handle_index_manager(- document_id=document_id,- is_summary=is_summary,- profile_manager=profile_manager,- doc_id=doc_id,- )- return doc_id+ PromptStudioIndexHelper.handle_index_manager(+ document_id=document_id,+ is_summary=is_summary,+ profile_manager=profile_manager,+ doc_id=doc_id,+ )+ return doc_id+ except SdkError as e:+ raise IndexingError(str(e))diff --git a/backend/prompt_studio/prompt_studio_core/views.py b/backend/prompt_studio/prompt_studio_core/views.pyindex 0f090f7c8..868e85faa 100644--- a/backend/prompt_studio/prompt_studio_core/views.py+++ b/backend/prompt_studio/prompt_studio_core/views.py@@ -198,11 +198,23 @@ class PromptStudioCoreView(viewsets.ModelViewSet):ToolStudioPromptKeys.TOOL_ID)document_id: str = serializer.validated_data.get(- ToolStudioPromptKeys.DOCUMENT_ID)+ ToolStudioPromptKeys.DOCUMENT_ID+ )document: DocumentManager = DocumentManager.objects.get(pk=document_id)file_name: str = document.document_name- try:- unique_id = PromptStudioHelper.index_document(+ unique_id = PromptStudioHelper.index_document(+ tool_id=tool_id,+ file_name=file_name,+ org_id=request.org_id,+ user_id=request.user.user_id,+ document_id=document_id,+ )++ for processor_plugin in self.processor_plugins:+ cls = processor_plugin[ProcessorConfig.METADATA][+ ProcessorConfig.METADATA_SERVICE_CLASS+ ]+ cls.process(tool_id=tool_id,file_name=file_name,org_id=request.org_id,@@ -210,30 +222,15 @@ class PromptStudioCoreView(viewsets.ModelViewSet):document_id=document_id,)- for processor_plugin in self.processor_plugins:- cls = processor_plugin[ProcessorConfig.METADATA][- ProcessorConfig.METADATA_SERVICE_CLASS- ]- cls.process(- tool_id=tool_id,- file_name=file_name,- org_id=request.org_id,- user_id=request.user.user_id,- document_id=document_id,- )-- if unique_id:- return Response(- {"message": "Document indexed successfully."},- status=status.HTTP_200_OK,- )- else:- logger.error(- "Error occured while indexing. Unique ID is not valid."- )- raise IndexingError()- except Exception as exc:- logger.error(f"Error occured while indexing {exc}")+ if unique_id:+ return Response(+ {"message": "Document indexed successfully."},+ status=status.HTTP_200_OK,+ )+ else:+ logger.error(+ "Error occured while indexing. Unique ID is not valid."+ )raise IndexingError()@action(detail=True, methods=["post"])diff --git a/backend/prompt_studio/prompt_studio_document_manager/prompt_studio_document_helper.py b/backend/prompt_studio/prompt_studio_document_manager/prompt_studio_document_helper.pyindex 2f101dc73..bf28a285e 100644--- a/backend/prompt_studio/prompt_studio_document_manager/prompt_studio_document_helper.py+++ b/backend/prompt_studio/prompt_studio_document_manager/prompt_studio_document_helper.py@@ -8,17 +8,17 @@ logger = logging.getLogger(__name__)class PromptStudioDocumentHelper:-@staticmethod- def create(tool_id: str, document_name: str):+ def create(tool_id: str, document_name: str) -> DocumentManager:tool: CustomTool = CustomTool.objects.get(pk=tool_id)document: DocumentManager = DocumentManager.objects.create(- tool=tool, document_name=document_name)+ tool=tool, document_name=document_name+ )logger.info("Successfully created the record")return document@staticmethod- def delete(document_id: str):+ def delete(document_id: str) -> None:document: DocumentManager = DocumentManager.objects.get(pk=document_id)document.delete()logger.info("Successfully deleted the record")diff --git a/backend/prompt_studio/prompt_studio_document_manager/serializers.py b/backend/prompt_studio/prompt_studio_document_manager/serializers.pyindex bcad0558a..844500fc8 100644--- a/backend/prompt_studio/prompt_studio_document_manager/serializers.py+++ b/backend/prompt_studio/prompt_studio_document_manager/serializers.py@@ -1,3 +1,5 @@+from typing import Any+from backend.serializers import AuditSerializerfrom .constants import PSDMKeys@@ -9,8 +11,11 @@ class PromptStudioDocumentManagerSerializer(AuditSerializer):model = DocumentManagerfields = "__all__"- def to_representation(self, instance):+ def to_representation(self, instance: DocumentManager) -> dict[str, Any]:rep: dict[str, str] = super().to_representation(instance)- required_fields = [PSDMKeys.DOCUMENT_NAME,- PSDMKeys.TOOL, PSDMKeys.DOCUMENT_ID]+ required_fields = [+ PSDMKeys.DOCUMENT_NAME,+ PSDMKeys.TOOL,+ PSDMKeys.DOCUMENT_ID,+ ]return {key: rep[key] for key in required_fields if key in rep}diff --git a/backend/prompt_studio/prompt_studio_index_manager/prompt_studio_index_helper.py b/backend/prompt_studio/prompt_studio_index_manager/prompt_studio_index_helper.pyindex c044f475d..82a768e94 100644--- a/backend/prompt_studio/prompt_studio_index_manager/prompt_studio_index_helper.py+++ b/backend/prompt_studio/prompt_studio_index_manager/prompt_studio_index_helper.py@@ -1,5 +1,6 @@import jsonimport logging+from typing import Optionalfrom prompt_studio.prompt_profile_manager.models import ProfileManagerfrom prompt_studio.prompt_studio_document_manager.models import DocumentManager@@ -10,14 +11,13 @@ logger = logging.getLogger(__name__)class PromptStudioIndexHelper:-@staticmethoddef handle_index_manager(document_id: str,is_summary: bool,profile_manager: ProfileManager,- doc_id: str- ):+ doc_id: str,+ ) -> IndexManager:document: DocumentManager = DocumentManager.objects.get(pk=document_id)index_id = "raw_index_id"@@ -25,16 +25,13 @@ class PromptStudioIndexHelper:index_id = "summarize_index_id"try:- index_manager: IndexManager = IndexManager.objects.get(**{- "document_manager": document,- "profile_manager": profile_manager,- })- except Exception:+ index_manager: Optional[IndexManager] = IndexManager.objects.get(+ document_manager=document, profile_manager=profile_manager+ )+ except IndexManager.DoesNotExist:index_manager = None- args: dict = {- f'{index_id}': doc_id,- }+ args: dict[str, str] = {f"{index_id}": doc_id}index_ids_list = []if index_manager:@@ -49,9 +46,10 @@ class PromptStudioIndexHelper:if index_manager:result: IndexManager = IndexManager.objects.filter(- index_manager_id=index_manager.index_manager_id).update(**args)+ index_manager_id=index_manager.index_manager_id+ ).update(**args)else:args["document_manager"] = documentargs["profile_manager"] = profile_manager- result: IndexManager = IndexManager.objects.create(**args)+ result = IndexManager.objects.create(**args)return resultdiff --git a/backend/pyproject.toml b/backend/pyproject.tomlindex 9d2ab9e84..cbe843beb 100644--- a/backend/pyproject.toml+++ b/backend/pyproject.toml@@ -30,8 +30,8 @@ dependencies = ["python-socketio==5.9.0", # For log_events"social-auth-app-django==5.3.0", # For OAuth"social-auth-core==4.4.2", # For OAuth- "unstract-sdk~=0.14.0",- "unstract-adapters~=0.4.0",+ "unstract-sdk~=0.15.0",+ "unstract-adapters~=0.4.1",# ! IMPORTANT!# Indirect local dependencies usually need to be added in their own projects# as: https://pdm-project.org/latest/usage/dependency/#local-dependencies.diff --git a/backend/sample.env b/backend/sample.envindex 2e620a84b..2494d77e4 100644--- a/backend/sample.env+++ b/backend/sample.env@@ -86,9 +86,9 @@ PROMPT_PORT=3003PROMPT_STUDIO_FILE_PATH=/app/prompt-studio-data# Structure Tool-STRUCTURE_TOOL_IMAGE_URL="docker:unstract/tool-structure:0.0.2"+STRUCTURE_TOOL_IMAGE_URL="docker:unstract/tool-structure:0.0.3"STRUCTURE_TOOL_IMAGE_NAME="unstract/tool-structure"-STRUCTURE_TOOL_IMAGE_TAG="0.0.2"+STRUCTURE_TOOL_IMAGE_TAG="0.0.3"# Feature FlagsEVALUATION_SERVER_IP=localhostdiff --git a/pdm.lock b/pdm.lockindex c07caf241..174dc0135 100644--- a/pdm.lock+++ b/pdm.lock@@ -5,7 +5,7 @@groups = ["default", "hook-check-django-migrations", "lint"]strategy = ["cross_platform", "inherit_metadata"]lock_version = "4.4.1"-content_hash = "sha256:10c6580a67524607c9363d6dbdd5195a83071d59cab04886bbf19373ed32a6e9"+content_hash = "sha256:491338db9a251dab561c00d824ea671c11a29436b7461818c6008f839a59901f"[[package]]name = "absolufy-imports"@@ -349,6 +349,7 @@ version = "4.0.3"requires_python = ">=3.7"summary = "Timeout context manager for asyncio programs"groups = ["hook-check-django-migrations"]+marker = "python_version < \"3.12.0\""files = [{file = "async-timeout-4.0.3.tar.gz", hash = "sha256:4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f"},{file = "async_timeout-4.0.3-py3-none-any.whl", hash = "sha256:7405140ff1230c310e51dc27b3145b9092d659ce68ff733fb0cefe3ee42be028"},@@ -433,7 +434,7 @@ files = [[[package]]name = "azure-core"-version = "1.30.0"+version = "1.30.1"requires_python = ">=3.7"summary = "Microsoft Azure Core Library for Python"groups = ["hook-check-django-migrations"]@@ -443,8 +444,8 @@ dependencies = ["typing-extensions>=4.6.0",]files = [- {file = "azure-core-1.30.0.tar.gz", hash = "sha256:6f3a7883ef184722f6bd997262eddaf80cfe7e5b3e0caaaf8db1695695893d35"},- {file = "azure_core-1.30.0-py3-none-any.whl", hash = "sha256:3dae7962aad109610e68c9a7abb31d79720e1d982ddf61363038d175a5025e89"},+ {file = "azure-core-1.30.1.tar.gz", hash = "sha256:26273a254131f84269e8ea4464f3560c731f29c0c1f69ac99010845f239c1a8f"},+ {file = "azure_core-1.30.1-py3-none-any.whl", hash = "sha256:7c5ee397e48f281ec4dd773d67a0a47a0962ed6fa833036057f9ea067f688e74"},][[package]]@@ -481,7 +482,7 @@ files = [[[package]]name = "azure-storage-blob"-version = "12.19.0"+version = "12.19.1"requires_python = ">=3.7"summary = "Microsoft Azure Blob Storage Client Library for Python"groups = ["hook-check-django-migrations"]@@ -492,8 +493,8 @@ dependencies = ["typing-extensions>=4.3.0",]files = [- {file = "azure-storage-blob-12.19.0.tar.gz", hash = "sha256:26c0a4320a34a3c2a1b74528ba6812ebcb632a04cd67b1c7377232c4b01a5897"},- {file = "azure_storage_blob-12.19.0-py3-none-any.whl", hash = "sha256:7bbc2c9c16678f7a420367fef6b172ba8730a7e66df7f4d7a55d5b3c8216615b"},+ {file = "azure-storage-blob-12.19.1.tar.gz", hash = "sha256:13e16ba42fc54ac2c7e8f976062173a5c82b9ec0594728e134aac372965a11b0"},+ {file = "azure_storage_blob-12.19.1-py3-none-any.whl", hash = "sha256:c5530dc51c21c9564e4eb706cd499befca8819b10dd89716d3fc90d747556243"},][[package]]@@ -1307,12 +1308,12 @@ files = [[[package]]name = "flatbuffers"-version = "23.5.26"+version = "24.3.7"summary = "The FlatBuffers serialization format for Python"groups = ["hook-check-django-migrations"]files = [- {file = "flatbuffers-23.5.26-py2.py3-none-any.whl", hash = "sha256:c0ff356da363087b915fde4b8b45bdda73432fc17cddb3c8157472eab1422ad1"},- {file = "flatbuffers-23.5.26.tar.gz", hash = "sha256:9ea1144cac05ce5d86e2859f431c6cd5e66cd9c78c558317c7955fb8d4c78d89"},+ {file = "flatbuffers-24.3.7-py2.py3-none-any.whl", hash = "sha256:80c4f5dcad0ee76b7e349671a0d657f2fbba927a0244f88dd3f5ed6a3694e1fc"},+ {file = "flatbuffers-24.3.7.tar.gz", hash = "sha256:0895c22b9a6019ff2f4de2e5e2f7cd15914043e6e7033a94c0c6369422690f22"},][[package]]@@ -1506,7 +1507,7 @@ files = [[[package]]name = "google-api-python-client"-version = "2.120.0"+version = "2.121.0"requires_python = ">=3.7"summary = "Google API Client Library for Python"groups = ["hook-check-django-migrations"]@@ -1518,8 +1519,8 @@ dependencies = ["uritemplate<5,>=3.0.1",]files = [- {file = "google-api-python-client-2.120.0.tar.gz", hash = "sha256:a0c8769cad9576768bcb3191cb1f550f6ab3290cba042badb0fb17bba03f70cc"},- {file = "google_api_python_client-2.120.0-py2.py3-none-any.whl", hash = "sha256:e2cdf4497bfc758fb44a4b487920cc1ca0571c2428187697a8e43e3b9feba1c9"},+ {file = "google-api-python-client-2.121.0.tar.gz", hash = "sha256:df863ece4db8b36ce1053ebd983e43fbc5b664209eed78e82cc84ae56ddac6c0"},+ {file = "google_api_python_client-2.121.0-py2.py3-none-any.whl", hash = "sha256:bb4da677150dd16c45818620baca8a63208c6f4180a0691ad1c1708b384c10be"},][[package]]@@ -1630,20 +1631,20 @@ files = [[[package]]name = "google-cloud-resource-manager"-version = "1.12.2"+version = "1.12.3"requires_python = ">=3.7"summary = "Google Cloud Resource Manager API client library"groups = ["hook-check-django-migrations"]dependencies = ["google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.1",- "google-auth<3.0.0dev,>=2.14.1",+ "google-auth!=2.24.0,!=2.25.0,<3.0.0dev,>=2.14.1","grpc-google-iam-v1<1.0.0dev,>=0.12.4","proto-plus<2.0.0dev,>=1.22.3","protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5",]files = [- {file = "google-cloud-resource-manager-1.12.2.tar.gz", hash = "sha256:2ede446a5087b236f0e1fb39cca3791bae97eb0d9125057401454b190d5572ee"},- {file = "google_cloud_resource_manager-1.12.2-py2.py3-none-any.whl", hash = "sha256:45abbb8911195cc831cc77c8e3be84decc271686579b332d4142af507f423ebf"},+ {file = "google-cloud-resource-manager-1.12.3.tar.gz", hash = "sha256:809851824119834e4f2310b2c4f38621c1d16b2bb14d5b9f132e69c79d355e7f"},+ {file = "google_cloud_resource_manager-1.12.3-py2.py3-none-any.whl", hash = "sha256:92be7d6959927b76d90eafc4028985c37975a46ded5466a018f02e8649e113d4"},][[package]]@@ -2827,13 +2828,13 @@ files = [[[package]]name = "packaging"-version = "23.2"+version = "24.0"requires_python = ">=3.7"summary = "Core utilities for Python packages"groups = ["hook-check-django-migrations", "lint"]files = [- {file = "packaging-23.2-py3-none-any.whl", hash = "sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7"},- {file = "packaging-23.2.tar.gz", hash = "sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5"},+ {file = "packaging-24.0-py3-none-any.whl", hash = "sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5"},+ {file = "packaging-24.0.tar.gz", hash = "sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9"},][[package]]@@ -3168,7 +3169,7 @@ files = [[[package]]name = "pyarrow"-version = "15.0.0"+version = "15.0.1"requires_python = ">=3.8"summary = "Python library for Apache Arrow"groups = ["hook-check-django-migrations"]@@ -3176,28 +3177,28 @@ dependencies = ["numpy<2,>=1.16.6",]files = [- {file = "pyarrow-15.0.0-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:0a524532fd6dd482edaa563b686d754c70417c2f72742a8c990b322d4c03a15d"},- {file = "pyarrow-15.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:60a6bdb314affa9c2e0d5dddf3d9cbb9ef4a8dddaa68669975287d47ece67642"},- {file = "pyarrow-15.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:66958fd1771a4d4b754cd385835e66a3ef6b12611e001d4e5edfcef5f30391e2"},- {file = "pyarrow-15.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1f500956a49aadd907eaa21d4fff75f73954605eaa41f61cb94fb008cf2e00c6"},- {file = "pyarrow-15.0.0-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:6f87d9c4f09e049c2cade559643424da84c43a35068f2a1c4653dc5b1408a929"},- {file = "pyarrow-15.0.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:85239b9f93278e130d86c0e6bb455dcb66fc3fd891398b9d45ace8799a871a1e"},- {file = "pyarrow-15.0.0-cp310-cp310-win_amd64.whl", hash = "sha256:5b8d43e31ca16aa6e12402fcb1e14352d0d809de70edd185c7650fe80e0769e3"},- {file = "pyarrow-15.0.0-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:fa7cd198280dbd0c988df525e50e35b5d16873e2cdae2aaaa6363cdb64e3eec5"},- {file = "pyarrow-15.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8780b1a29d3c8b21ba6b191305a2a607de2e30dab399776ff0aa09131e266340"},- {file = "pyarrow-15.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fe0ec198ccc680f6c92723fadcb97b74f07c45ff3fdec9dd765deb04955ccf19"},- {file = "pyarrow-15.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:036a7209c235588c2f07477fe75c07e6caced9b7b61bb897c8d4e52c4b5f9555"},- {file = "pyarrow-15.0.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:2bd8a0e5296797faf9a3294e9fa2dc67aa7f10ae2207920dbebb785c77e9dbe5"},- {file = "pyarrow-15.0.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:e8ebed6053dbe76883a822d4e8da36860f479d55a762bd9e70d8494aed87113e"},- {file = "pyarrow-15.0.0-cp311-cp311-win_amd64.whl", hash = "sha256:17d53a9d1b2b5bd7d5e4cd84d018e2a45bc9baaa68f7e6e3ebed45649900ba99"},- {file = "pyarrow-15.0.0-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:47af7036f64fce990bb8a5948c04722e4e3ea3e13b1007ef52dfe0aa8f23cf7f"},- {file = "pyarrow-15.0.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:93768ccfff85cf044c418bfeeafce9a8bb0cee091bd8fd19011aff91e58de540"},- {file = "pyarrow-15.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f6ee87fd6892700960d90abb7b17a72a5abb3b64ee0fe8db6c782bcc2d0dc0b4"},- {file = "pyarrow-15.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:001fca027738c5f6be0b7a3159cc7ba16a5c52486db18160909a0831b063c4e4"},- {file = "pyarrow-15.0.0-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:d1c48648f64aec09accf44140dccb92f4f94394b8d79976c426a5b79b11d4fa7"},- {file = "pyarrow-15.0.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:972a0141be402bb18e3201448c8ae62958c9c7923dfaa3b3d4530c835ac81aed"},- {file = "pyarrow-15.0.0-cp39-cp39-win_amd64.whl", hash = "sha256:f01fc5cf49081426429127aa2d427d9d98e1cb94a32cb961d583a70b7c4504e6"},- {file = "pyarrow-15.0.0.tar.gz", hash = "sha256:876858f549d540898f927eba4ef77cd549ad8d24baa3207cf1b72e5788b50e83"},+ {file = "pyarrow-15.0.1-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:c2ddb3be5ea938c329a84171694fc230b241ce1b6b0ff1a0280509af51c375fa"},+ {file = "pyarrow-15.0.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:7543ea88a0ff72f8e6baaf9bfdbec2c62aeabdbede9e4a571c71cc3bc43b6302"},+ {file = "pyarrow-15.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1519e218a6941fc074e4501088d891afcb2adf77c236e03c34babcf3d6a0d1c7"},+ {file = "pyarrow-15.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:28cafa86e1944761970d3b3fc0411b14ff9b5c2b73cd22aaf470d7a3976335f5"},+ {file = "pyarrow-15.0.1-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:be5c3d463e33d03eab496e1af7916b1d44001c08f0f458ad27dc16093a020638"},+ {file = "pyarrow-15.0.1-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:47b1eda15d3aa3f49a07b1808648e1397e5dc6a80a30bf87faa8e2d02dad7ac3"},+ {file = "pyarrow-15.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:e524a31be7db22deebbbcf242b189063ab9a7652c62471d296b31bc6e3cae77b"},+ {file = "pyarrow-15.0.1-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:a476fefe8bdd56122fb0d4881b785413e025858803cc1302d0d788d3522b374d"},+ {file = "pyarrow-15.0.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:309e6191be385f2e220586bfdb643f9bb21d7e1bc6dd0a6963dc538e347b2431"},+ {file = "pyarrow-15.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:83bc586903dbeb4365cbc72b602f99f70b96c5882e5dfac5278813c7d624ca3c"},+ {file = "pyarrow-15.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:07e652daac6d8b05280cd2af31c0fb61a4490ec6a53dc01588014d9fa3fdbee9"},+ {file = "pyarrow-15.0.1-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:abad2e08652df153a72177ce20c897d083b0c4ebeec051239e2654ddf4d3c996"},+ {file = "pyarrow-15.0.1-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:cde663352bc83ad75ba7b3206e049ca1a69809223942362a8649e37bd22f9e3b"},+ {file = "pyarrow-15.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:1b6e237dd7a08482a8b8f3f6512d258d2460f182931832a8c6ef3953203d31e1"},+ {file = "pyarrow-15.0.1-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:dd532d3177e031e9b2d2df19fd003d0cc0520d1747659fcabbd4d9bb87de508c"},+ {file = "pyarrow-15.0.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ce8c89848fd37e5313fc2ce601483038ee5566db96ba0808d5883b2e2e55dc53"},+ {file = "pyarrow-15.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:862eac5e5f3b6477f7a92b2f27e560e1f4e5e9edfca9ea9da8a7478bb4abd5ce"},+ {file = "pyarrow-15.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f0ea3a29cd5cb99bf14c1c4533eceaa00ea8fb580950fb5a89a5c771a994a4e"},+ {file = "pyarrow-15.0.1-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:bb902f780cfd624b2e8fd8501fadab17618fdb548532620ef3d91312aaf0888a"},+ {file = "pyarrow-15.0.1-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:4f87757f02735a6bb4ad2e1b98279ac45d53b748d5baf52401516413007c6999"},+ {file = "pyarrow-15.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:efd3816c7fbfcbd406ac0f69873cebb052effd7cdc153ae5836d1b00845845d7"},+ {file = "pyarrow-15.0.1.tar.gz", hash = "sha256:21d812548d39d490e0c6928a7c663f37b96bf764034123d4b4ab4530ecc757a9"},][[package]]@@ -3516,36 +3517,36 @@ files = [[[package]]name = "pyparsing"-version = "3.1.1"+version = "3.1.2"requires_python = ">=3.6.8"summary = "pyparsing module - Classes and methods to define and execute parsing grammars"groups = ["hook-check-django-migrations"]marker = "python_version > \"3.0\""files = [- {file = "pyparsing-3.1.1-py3-none-any.whl", hash = "sha256:32c7c0b711493c72ff18a981d24f28aaf9c1fb7ed5e9667c9e84e3db623bdbfb"},- {file = "pyparsing-3.1.1.tar.gz", hash = "sha256:ede28a1a32462f5a9705e07aea48001a08f7cf81a021585011deba701581a0db"},+ {file = "pyparsing-3.1.2-py3-none-any.whl", hash = "sha256:f9db75911801ed778fe61bb643079ff86601aca99fcae6345aa67292038fb742"},+ {file = "pyparsing-3.1.2.tar.gz", hash = "sha256:a1bac0ce561155ecc3ed78ca94d3c9378656ad4c94c1270de543f621420f94ad"},][[package]]name = "pypdfium2"-version = "4.27.0"+version = "4.28.0"requires_python = ">= 3.6"summary = "Python bindings to PDFium"groups = ["hook-check-django-migrations"]files = [- {file = "pypdfium2-4.27.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:2938f423c79b49df9057993f747e537a05b71bc2c847801ac743f27c3220d363"},- {file = "pypdfium2-4.27.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:f396941e070bf6c245890f2ffb2cb04f39585e3cda93ebb1648f1ed0e99b921f"},- {file = "pypdfium2-4.27.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4d593649fd787c4521f3b8e84892a070d62c19ae3dee7995f38e760e4e14c7c5"},- {file = "pypdfium2-4.27.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:abb16df75dd0ba1c92553bbc9127edce46d59008047bb68abbf002963495d561"},- {file = "pypdfium2-4.27.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:69c76670e62db707fa5374eb8c71c2e9f9e4d6518707cd47725f7c2725129f8a"},- {file = "pypdfium2-4.27.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:40fe503afef2a4c8180c75c1bb3c98eead4c60158b859c440c4c4bf4fa5b3ece"},- {file = "pypdfium2-4.27.0-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bfeb8337c1435ecaa584649b21b691152e06be3b01db761a2cd863fb2fdfda04"},- {file = "pypdfium2-4.27.0-py3-none-musllinux_1_1_i686.whl", hash = "sha256:83c5c12714a5302b9947fe8fe97b003e9b934dec2529e5c10414d3ef5a3c8f19"},- {file = "pypdfium2-4.27.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:c85e6f4fe5475665237da8a698e92c68339bdbc3257e2bcb325feacde5873dbc"},- {file = "pypdfium2-4.27.0-py3-none-win32.whl", hash = "sha256:5c3413d4eeab8f2618b7af7d827dde5b7d40e752033c555e5889508b94f42090"},- {file = "pypdfium2-4.27.0-py3-none-win_amd64.whl", hash = "sha256:597d262152e4aff36f6b2a395826c74c28977055b3b7233963cc91b243c74c78"},- {file = "pypdfium2-4.27.0-py3-none-win_arm64.whl", hash = "sha256:ee4f4f433c9896953ef2ff8622a0912775b88380f91c6a2b8126fc5387d05620"},- {file = "pypdfium2-4.27.0.tar.gz", hash = "sha256:1ff6ac30b98850558c0d163e37fdb868f683b1b2e8ae734072138571a0546222"},+ {file = "pypdfium2-4.28.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:b95dcbd6320e769c81314f0042e3507f4f14c1eb954882ae26d9504a4afe843d"},+ {file = "pypdfium2-4.28.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c6159c2751773575fe7b74bb438f5cf6ed832432eb6db2095922af60803ed911"},+ {file = "pypdfium2-4.28.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91e78c0830e1ff99461b00e3bd0f5b5242bb6b0de6f07e929cdea9d8b1cdbdce"},+ {file = "pypdfium2-4.28.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:562dac267e1323a3206d87072ad1595f923b9a983ac77c8e17fe36aec0ae1b72"},+ {file = "pypdfium2-4.28.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a7779fc76e4fa7ee1c1971f78e0995d5217da405167e8d6b55daa02194b4c2ae"},+ {file = "pypdfium2-4.28.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5e223f3c0b702406927baed3cd581ac19c2a8a254019035387b47ae05051dd71"},+ {file = "pypdfium2-4.28.0-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:1a647454bdc36f11264a8cbbbf8bdfd47997aa81abd2e4984965693428761c22"},+ {file = "pypdfium2-4.28.0-py3-none-musllinux_1_1_i686.whl", hash = "sha256:0a168ac8de5b3ff6b78dfef575eaeb429a64bb6da5683f8138d3a6917eba6f39"},+ {file = "pypdfium2-4.28.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:c999b2dc41e3050bf893252f1f9edb2af37e61d87ce17d9725975bf7bf00acaa"},+ {file = "pypdfium2-4.28.0-py3-none-win32.whl", hash = "sha256:0b7b1e1748ac72f57d3e77580adc20b23d0d644598fd83339cd2ac4e803e9ed9"},+ {file = "pypdfium2-4.28.0-py3-none-win_amd64.whl", hash = "sha256:927f9b9498d009573509b3f6f75bab2e9aaca689cac5af0afb6fbfbaa6279cc3"},+ {file = "pypdfium2-4.28.0-py3-none-win_arm64.whl", hash = "sha256:61cb7f54d6cf26e9d9b996f553f803f2658d93fcee4f76016264b268f41c9bf7"},+ {file = "pypdfium2-4.28.0.tar.gz", hash = "sha256:1f18981bcceb3a9e59c6de3e4e7e070cddc4de1f7faf419d9ad5f677b06fd909"},][[package]]@@ -3734,16 +3735,16 @@ files = [[[package]]name = "redis"-version = "5.0.2"+version = "5.0.3"requires_python = ">=3.7"summary = "Python client for Redis database and key-value store"groups = ["hook-check-django-migrations"]dependencies = [- "async-timeout>=4.0.3",+ "async-timeout>=4.0.3; python_full_version < \"3.11.3\"",]files = [- {file = "redis-5.0.2-py3-none-any.whl", hash = "sha256:4caa8e1fcb6f3c0ef28dba99535101d80934b7d4cd541bbb47f4a3826ee472d1"},- {file = "redis-5.0.2.tar.gz", hash = "sha256:3f82cc80d350e93042c8e6e7a5d0596e4dd68715babffba79492733e1f367037"},+ {file = "redis-5.0.3-py3-none-any.whl", hash = "sha256:5da9b8fe9e1254293756c16c008e8620b3d15fcc6dde6babde9541850e72a32d"},+ {file = "redis-5.0.3.tar.gz", hash = "sha256:4973bae7444c0fbed64a06b87446f79361cb7e4ec1538c022d696ed7a5015580"},][[package]]@@ -3854,7 +3855,7 @@ files = [[[package]]name = "requests-oauthlib"-version = "1.3.1"+version = "1.4.0"requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"summary = "OAuthlib authentication support for Requests."groups = ["hook-check-django-migrations"]@@ -3863,8 +3864,8 @@ dependencies = ["requests>=2.0.0",]files = [- {file = "requests-oauthlib-1.3.1.tar.gz", hash = "sha256:75beac4a47881eeb94d5ea5d6ad31ef88856affe2332b9aafb52c6452ccf0d7a"},- {file = "requests_oauthlib-1.3.1-py2.py3-none-any.whl", hash = "sha256:2577c501a2fb8d05a304c09d090d6e47c306fef15809d102b327cf8364bddab5"},+ {file = "requests-oauthlib-1.4.0.tar.gz", hash = "sha256:acee623221e4a39abcbb919312c8ff04bd44e7e417087fb4bd5e2a2f53d5e79a"},+ {file = "requests_oauthlib-1.4.0-py2.py3-none-any.whl", hash = "sha256:7a3130d94a17520169e38db6c8d75f2c974643788465ecc2e4b36d288bf13033"},][[package]]@@ -4450,7 +4451,7 @@ files = [[[package]]name = "storage3"-version = "0.7.0"+version = "0.7.3"requires_python = ">=3.8,<4.0"summary = "Supabase Storage client for Python."groups = ["hook-check-django-migrations"]@@ -4460,8 +4461,8 @@ dependencies = ["typing-extensions<5.0.0,>=4.2.0",]files = [- {file = "storage3-0.7.0-py3-none-any.whl", hash = "sha256:dd2d6e68f7a3dc038047ed62fa8bdc5c2e3d6b6e56ee2951195d084bcce71605"},- {file = "storage3-0.7.0.tar.gz", hash = "sha256:9ddecc775cdc04514413bd44b9ec61bc25aad9faadabefdb6e6e88b33756f5fd"},+ {file = "storage3-0.7.3-py3-none-any.whl", hash = "sha256:dc6a59da801ee6fc00015da4967ac0b5c3e5508d31ffd796f0e4c83957e5c6a0"},+ {file = "storage3-0.7.3.tar.gz", hash = "sha256:943c31de4a7c7490ad7960d963a6b410979ebd0e1b3d320d76cb61564ab0b528"},][[package]]@@ -4772,17 +4773,18 @@ files = [[[package]]name = "types-pyyaml"-version = "6.0.12.12"+version = "6.0.12.20240311"+requires_python = ">=3.8"summary = "Typing stubs for PyYAML"groups = ["lint"]files = [- {file = "types-PyYAML-6.0.12.12.tar.gz", hash = "sha256:334373d392fde0fdf95af5c3f1661885fa10c52167b14593eb856289e1855062"},- {file = "types_PyYAML-6.0.12.12-py3-none-any.whl", hash = "sha256:c05bc6c158facb0676674b7f11fe3960db4f389718e19e62bd2b84d6205cfd24"},+ {file = "types-PyYAML-6.0.12.20240311.tar.gz", hash = "sha256:a9e0f0f88dc835739b0c1ca51ee90d04ca2a897a71af79de9aec5f38cb0a5342"},+ {file = "types_PyYAML-6.0.12.20240311-py3-none-any.whl", hash = "sha256:b845b06a1c7e54b8e5b4c683043de0d9caf205e7434b3edc678ff2411979b8f6"},][[package]]name = "types-redis"-version = "4.6.0.20240218"+version = "4.6.0.20240311"requires_python = ">=3.8"summary = "Typing stubs for redis"groups = ["lint"]@@ -4791,8 +4793,8 @@ dependencies = ["types-pyOpenSSL",]files = [- {file = "types-redis-4.6.0.20240218.tar.gz", hash = "sha256:5103d7e690e5c74c974a161317b2d59ac2303cf8bef24175b04c2a4c3486cb39"},- {file = "types_redis-4.6.0.20240218-py3-none-any.whl", hash = "sha256:dc9c45a068240e33a04302aec5655cf41e80f91eecffccbb2df215b2f6fc375d"},+ {file = "types-redis-4.6.0.20240311.tar.gz", hash = "sha256:e049bbdff0e0a1f8e701b64636811291d21bff79bf1e7850850a44055224a85f"},+ {file = "types_redis-4.6.0.20240311-py3-none-any.whl", hash = "sha256:6b9d68a29aba1ee400c823d8e5fe88675282eb69d7211e72fe65dbe54b33daca"},][[package]]@@ -4939,7 +4941,7 @@ files = [[[package]]name = "unstract-adapters"-version = "0.4.0"+version = "0.4.1"requires_python = "<3.12,>=3.9"summary = "Unstract Adapters"groups = ["hook-check-django-migrations"]@@ -4965,8 +4967,8 @@ dependencies = ["weaviate-client==3.25.3",]files = [- {file = "unstract_adapters-0.4.0-py3-none-any.whl", hash = "sha256:6a7fd6fa376f883242c290a862c4d1b024c357b003cb9d86b494c350edfc58a4"},- {file = "unstract_adapters-0.4.0.tar.gz", hash = "sha256:78c56813c626af61d1d7b64f3cc603ce7b276a11c96d634d154fce5bc55cd7e6"},+ {file = "unstract_adapters-0.4.1-py3-none-any.whl", hash = "sha256:d8be73fe96f37f347274b62360e2a99b69e83b93e4be4c93797e383e0a0cafbb"},+ {file = "unstract_adapters-0.4.1.tar.gz", hash = "sha256:1f0ceaa8a26af51dd46713ec73b029a115c2a9f43a00e10ae73e8dedee7e1069"},][[package]]@@ -5026,7 +5028,7 @@ dependencies = [[[package]]name = "unstract-sdk"-version = "0.14.0"+version = "0.15.0"requires_python = "<3.11.1,>=3.9"summary = "A framework for writing Unstract Tools/Apps"groups = ["hook-check-django-migrations"]@@ -5040,11 +5042,11 @@ dependencies = ["python-magic~=0.4.27","tiktoken~=0.4.0","transformers==4.37.0",- "unstract-adapters~=0.4.0",+ "unstract-adapters~=0.4.1",]files = [- {file = "unstract_sdk-0.14.0-py3-none-any.whl", hash = "sha256:f1494ac22d3a8f637ad96c168f31021d86644ac14817b13ced740c4f3eb7084a"},- {file = "unstract_sdk-0.14.0.tar.gz", hash = "sha256:448b72fa22d91ed589c8932d5764c912f75d464bd4b1cbade528d4330b91dd7a"},+ {file = "unstract_sdk-0.15.0-py3-none-any.whl", hash = "sha256:3037f231d4d1b12f4768ccc7152428f039048ff13a70d68b028669ba99394626"},+ {file = "unstract_sdk-0.15.0.tar.gz", hash = "sha256:ad1cc9eafad4976e6f9e087ed72b139d7936b03b5f8422b5b11dfbf55db007e3"},][[package]]@@ -5059,7 +5061,7 @@ dependencies = ["PyYAML~=6.0.1","docker~=6.1.3","jsonschema~=4.18.2",- "unstract-adapters~=0.4.0",+ "unstract-adapters~=0.4.1","unstract-tool-sandbox",]diff --git a/platform-service/src/unstract/platform_service/main.py b/platform-service/src/unstract/platform_service/main.pyindex 627343055..4b8efec68 100644--- a/platform-service/src/unstract/platform_service/main.py+++ b/platform-service/src/unstract/platform_service/main.py@@ -15,6 +15,7 @@ from unstract.platform_service.helper import (AdapterInstanceRequestHelper,PromptStudioRequestHelper,)+from unstract.platform_service.utils import EnvManagerload_dotenv()@@ -22,12 +23,13 @@ logging.basicConfig(level=logging.INFO,format="%(asctime)s %(levelname)s %(name)s : %(message)s",)+# Configuring envsMAX_FILE_SIZE = 100 * 1024 * 1024INVALID_ORGANIZATOIN = "Invalid organization"INVALID_PAYLOAD = "Bad Request / No payload"BAD_REQUEST = "Bad Request"-REDIS_HOST = os.environ.get("REDIS_HOST")-REDIS_PORT = int(os.environ.get("REDIS_PORT", 6379))+REDIS_HOST = EnvManager.get_required_setting("REDIS_HOST")+REDIS_PORT = int(EnvManager.get_required_setting("REDIS_PORT", 6379))REDIS_USERNAME = os.environ.get("REDIS_USERNAME")REDIS_PASSWORD = os.environ.get("REDIS_PASSWORD")PG_HOST = os.environ.get("PG_HOST")@@ -45,11 +47,8 @@ PG_V_PORT = int(os.environ.get("PG_V_PORT", 5432))PG_V_USERNAME = os.environ.get("PG_V_USERNAME", "user")PG_V_PASSWORD = os.environ.get("PG_V_PASSWORD", "")PG_V_DATABASE = os.environ.get("PG_V_DATABASE", "")-ENCRYPTION_KEY = os.environ.get("ENCRYPTION_KEY")-if not (REDIS_HOST and REDIS_PORT):- raise ValueError(- "REDIS_HOST and REDIS_PORT must be set in the environment."- )+ENCRYPTION_KEY = EnvManager.get_required_setting("ENCRYPTION_KEY")+EnvManager.raise_for_missing_envs()# TODO: Follow Flask best practices and refactor accordinglyapp = Flask("platform_service")diff --git a/platform-service/src/unstract/platform_service/utils.py b/platform-service/src/unstract/platform_service/utils.pynew file mode 100644index 000000000..04fddd4b9--- /dev/null+++ b/platform-service/src/unstract/platform_service/utils.py@@ -0,0 +1,42 @@+import os+from typing import Optional+++class EnvManager:+ missing_settings: list[str] = []++ @classmethod+ def get_required_setting(+ cls, setting_key: str, default: Optional[str] = None+ ) -> Optional[str]:+ """Get the value of an environment variable specified by the given key.+ Add missing keys to `missing_settings` so that exception can be raised+ at the end.++ Args:+ key (str): The key of the environment variable+ default (Optional[str], optional): Default value to return incase of+ env not found. Defaults to None.++ Returns:+ Optional[str]: The value of the environment variable if found,+ otherwise the default value.+ """+ data = os.environ.get(setting_key, default)+ if not data:+ cls.missing_settings.append(setting_key)+ return data++ @classmethod+ def raise_for_missing_envs(cls) -> None:+ """Raises an error if some settings are not configured.++ Raises:+ ValueError: Error mentioning envs which are not configured.+ """+ if cls.missing_settings:+ ERROR_MESSAGE = (+ "Below required settings are missing.\n"+ + ",\n".join(cls.missing_settings)+ )+ raise ValueError(ERROR_MESSAGE)diff --git a/prompt-service/pdm.lock b/prompt-service/pdm.lockindex 65bd47b5f..26e2bdbea 100644--- a/prompt-service/pdm.lock+++ b/prompt-service/pdm.lock@@ -5,7 +5,7 @@groups = ["default", "deploy"]strategy = ["cross_platform", "inherit_metadata"]lock_version = "4.4.1"-content_hash = "sha256:8ada5526176f8769bb9483b71ff73b12647bedf4b895a3f9930d54f312ea6020"+content_hash = "sha256:ca29763ab2a11cea15b0fc2e5a9d5e20b5cee4646702083d407d69b02d8d9991"[[package]]name = "aiohttp"@@ -330,23 +330,23 @@ files = [[[package]]name = "boto3"-version = "1.34.56"+version = "1.34.59"requires_python = ">= 3.8"summary = "The AWS SDK for Python"groups = ["default"]dependencies = [- "botocore<1.35.0,>=1.34.56",+ "botocore<1.35.0,>=1.34.59","jmespath<2.0.0,>=0.7.1","s3transfer<0.11.0,>=0.10.0",]files = [- {file = "boto3-1.34.56-py3-none-any.whl", hash = "sha256:300888f0c1b6f32f27f85a9aa876f50f46514ec619647af7e4d20db74d339714"},- {file = "boto3-1.34.56.tar.gz", hash = "sha256:b26928f9a21cf3649cea20a59061340f3294c6e7785ceb6e1a953eb8010dc3ba"},+ {file = "boto3-1.34.59-py3-none-any.whl", hash = "sha256:004e67b078be58d34469406f93cc8b95bc43becef4bbe44523a0b8e51f84c668"},+ {file = "boto3-1.34.59.tar.gz", hash = "sha256:162edf182e53c198137a28432a626dba103f787a8f5000ed4758b73ccd203fa0"},][[package]]name = "botocore"-version = "1.34.56"+version = "1.34.59"requires_python = ">= 3.8"summary = "Low-level, data-driven core of boto 3."groups = ["default"]@@ -357,8 +357,8 @@ dependencies = ["urllib3<2.1,>=1.25.4; python_version >= \"3.10\"",]files = [- {file = "botocore-1.34.56-py3-none-any.whl", hash = "sha256:fff66e22a5589c2d58fba57d1d95c334ce771895e831f80365f6cff6453285ec"},- {file = "botocore-1.34.56.tar.gz", hash = "sha256:bffeb71ab21d47d4ecf947d9bdb2fbd1b0bbd0c27742cea7cf0b77b701c41d9f"},+ {file = "botocore-1.34.59-py3-none-any.whl", hash = "sha256:4bc112dafb1679ab571117593f7656604726a3da0e5ae5bad00ea772fa40e75c"},+ {file = "botocore-1.34.59.tar.gz", hash = "sha256:24edb4d21d7c97dea0c6c4a80d36b3809b1443a30b0bd5e317d6c319dfac823f"},][[package]]@@ -720,12 +720,12 @@ files = [[[package]]name = "flatbuffers"-version = "23.5.26"+version = "24.3.7"summary = "The FlatBuffers serialization format for Python"groups = ["default"]files = [- {file = "flatbuffers-23.5.26-py2.py3-none-any.whl", hash = "sha256:c0ff356da363087b915fde4b8b45bdda73432fc17cddb3c8157472eab1422ad1"},- {file = "flatbuffers-23.5.26.tar.gz", hash = "sha256:9ea1144cac05ce5d86e2859f431c6cd5e66cd9c78c558317c7955fb8d4c78d89"},+ {file = "flatbuffers-24.3.7-py2.py3-none-any.whl", hash = "sha256:80c4f5dcad0ee76b7e349671a0d657f2fbba927a0244f88dd3f5ed6a3694e1fc"},+ {file = "flatbuffers-24.3.7.tar.gz", hash = "sha256:0895c22b9a6019ff2f4de2e5e2f7cd15914043e6e7033a94c0c6369422690f22"},][[package]]@@ -889,7 +889,7 @@ files = [[[package]]name = "google-auth"-version = "2.28.1"+version = "2.28.2"requires_python = ">=3.7"summary = "Google Authentication Library"groups = ["default"]@@ -899,8 +899,8 @@ dependencies = ["rsa<5,>=3.1.4",]files = [- {file = "google-auth-2.28.1.tar.gz", hash = "sha256:34fc3046c257cedcf1622fc4b31fc2be7923d9b4d44973d481125ecc50d83885"},- {file = "google_auth-2.28.1-py2.py3-none-any.whl", hash = "sha256:25141e2d7a14bfcba945f5e9827f98092716e99482562f15306e5b026e21aa72"},+ {file = "google-auth-2.28.2.tar.gz", hash = "sha256:80b8b4969aa9ed5938c7828308f20f035bc79f9d8fb8120bf9dc8db20b41ba30"},+ {file = "google_auth-2.28.2-py2.py3-none-any.whl", hash = "sha256:9fd67bbcd40f16d9d42f950228e9cf02a2ded4ae49198b27432d0cded5a74c38"},][[package]]@@ -1487,7 +1487,7 @@ files = [[[package]]name = "importlib-metadata"-version = "7.0.1"+version = "7.0.2"requires_python = ">=3.8"summary = "Read metadata from Python packages"groups = ["default"]@@ -1496,8 +1496,8 @@ dependencies = ["zipp>=0.5",]files = [- {file = "importlib_metadata-7.0.1-py3-none-any.whl", hash = "sha256:4805911c3a4ec7c3966410053e9ec6a1fecd629117df5adee56dfc9432a1081e"},- {file = "importlib_metadata-7.0.1.tar.gz", hash = "sha256:f238736bb06590ae52ac1fab06a3a9ef1d8dce2b7a35b5ab329371d6c8f5d2cc"},+ {file = "importlib_metadata-7.0.2-py3-none-any.whl", hash = "sha256:f4bc4c0c070c490abf4ce96d715f68e95923320370efb66143df00199bb6c100"},+ {file = "importlib_metadata-7.0.2.tar.gz", hash = "sha256:198f568f3230878cb1b44fbd7975f87906c22336dba2e4a7f05278c281fbd792"},][[package]]@@ -2072,13 +2072,13 @@ files = [[[package]]name = "packaging"-version = "23.2"+version = "24.0"requires_python = ">=3.7"summary = "Core utilities for Python packages"groups = ["default", "deploy"]files = [- {file = "packaging-23.2-py3-none-any.whl", hash = "sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7"},- {file = "packaging-23.2.tar.gz", hash = "sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5"},+ {file = "packaging-24.0-py3-none-any.whl", hash = "sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5"},+ {file = "packaging-24.0.tar.gz", hash = "sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9"},][[package]]@@ -2372,7 +2372,7 @@ files = [[[package]]name = "pyarrow"-version = "15.0.0"+version = "15.0.1"requires_python = ">=3.8"summary = "Python library for Apache Arrow"groups = ["default"]@@ -2380,28 +2380,28 @@ dependencies = ["numpy<2,>=1.16.6",]files = [- {file = "pyarrow-15.0.0-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:0a524532fd6dd482edaa563b686d754c70417c2f72742a8c990b322d4c03a15d"},- {file = "pyarrow-15.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:60a6bdb314affa9c2e0d5dddf3d9cbb9ef4a8dddaa68669975287d47ece67642"},- {file = "pyarrow-15.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:66958fd1771a4d4b754cd385835e66a3ef6b12611e001d4e5edfcef5f30391e2"},- {file = "pyarrow-15.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1f500956a49aadd907eaa21d4fff75f73954605eaa41f61cb94fb008cf2e00c6"},- {file = "pyarrow-15.0.0-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:6f87d9c4f09e049c2cade559643424da84c43a35068f2a1c4653dc5b1408a929"},- {file = "pyarrow-15.0.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:85239b9f93278e130d86c0e6bb455dcb66fc3fd891398b9d45ace8799a871a1e"},- {file = "pyarrow-15.0.0-cp310-cp310-win_amd64.whl", hash = "sha256:5b8d43e31ca16aa6e12402fcb1e14352d0d809de70edd185c7650fe80e0769e3"},- {file = "pyarrow-15.0.0-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:fa7cd198280dbd0c988df525e50e35b5d16873e2cdae2aaaa6363cdb64e3eec5"},- {file = "pyarrow-15.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8780b1a29d3c8b21ba6b191305a2a607de2e30dab399776ff0aa09131e266340"},- {file = "pyarrow-15.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fe0ec198ccc680f6c92723fadcb97b74f07c45ff3fdec9dd765deb04955ccf19"},- {file = "pyarrow-15.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:036a7209c235588c2f07477fe75c07e6caced9b7b61bb897c8d4e52c4b5f9555"},- {file = "pyarrow-15.0.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:2bd8a0e5296797faf9a3294e9fa2dc67aa7f10ae2207920dbebb785c77e9dbe5"},- {file = "pyarrow-15.0.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:e8ebed6053dbe76883a822d4e8da36860f479d55a762bd9e70d8494aed87113e"},- {file = "pyarrow-15.0.0-cp311-cp311-win_amd64.whl", hash = "sha256:17d53a9d1b2b5bd7d5e4cd84d018e2a45bc9baaa68f7e6e3ebed45649900ba99"},- {file = "pyarrow-15.0.0-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:47af7036f64fce990bb8a5948c04722e4e3ea3e13b1007ef52dfe0aa8f23cf7f"},- {file = "pyarrow-15.0.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:93768ccfff85cf044c418bfeeafce9a8bb0cee091bd8fd19011aff91e58de540"},- {file = "pyarrow-15.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f6ee87fd6892700960d90abb7b17a72a5abb3b64ee0fe8db6c782bcc2d0dc0b4"},- {file = "pyarrow-15.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:001fca027738c5f6be0b7a3159cc7ba16a5c52486db18160909a0831b063c4e4"},- {file = "pyarrow-15.0.0-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:d1c48648f64aec09accf44140dccb92f4f94394b8d79976c426a5b79b11d4fa7"},- {file = "pyarrow-15.0.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:972a0141be402bb18e3201448c8ae62958c9c7923dfaa3b3d4530c835ac81aed"},- {file = "pyarrow-15.0.0-cp39-cp39-win_amd64.whl", hash = "sha256:f01fc5cf49081426429127aa2d427d9d98e1cb94a32cb961d583a70b7c4504e6"},- {file = "pyarrow-15.0.0.tar.gz", hash = "sha256:876858f549d540898f927eba4ef77cd549ad8d24baa3207cf1b72e5788b50e83"},+ {file = "pyarrow-15.0.1-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:c2ddb3be5ea938c329a84171694fc230b241ce1b6b0ff1a0280509af51c375fa"},+ {file = "pyarrow-15.0.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:7543ea88a0ff72f8e6baaf9bfdbec2c62aeabdbede9e4a571c71cc3bc43b6302"},+ {file = "pyarrow-15.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1519e218a6941fc074e4501088d891afcb2adf77c236e03c34babcf3d6a0d1c7"},+ {file = "pyarrow-15.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:28cafa86e1944761970d3b3fc0411b14ff9b5c2b73cd22aaf470d7a3976335f5"},+ {file = "pyarrow-15.0.1-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:be5c3d463e33d03eab496e1af7916b1d44001c08f0f458ad27dc16093a020638"},+ {file = "pyarrow-15.0.1-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:47b1eda15d3aa3f49a07b1808648e1397e5dc6a80a30bf87faa8e2d02dad7ac3"},+ {file = "pyarrow-15.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:e524a31be7db22deebbbcf242b189063ab9a7652c62471d296b31bc6e3cae77b"},+ {file = "pyarrow-15.0.1-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:a476fefe8bdd56122fb0d4881b785413e025858803cc1302d0d788d3522b374d"},+ {file = "pyarrow-15.0.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:309e6191be385f2e220586bfdb643f9bb21d7e1bc6dd0a6963dc538e347b2431"},+ {file = "pyarrow-15.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:83bc586903dbeb4365cbc72b602f99f70b96c5882e5dfac5278813c7d624ca3c"},+ {file = "pyarrow-15.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:07e652daac6d8b05280cd2af31c0fb61a4490ec6a53dc01588014d9fa3fdbee9"},+ {file = "pyarrow-15.0.1-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:abad2e08652df153a72177ce20c897d083b0c4ebeec051239e2654ddf4d3c996"},+ {file = "pyarrow-15.0.1-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:cde663352bc83ad75ba7b3206e049ca1a69809223942362a8649e37bd22f9e3b"},+ {file = "pyarrow-15.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:1b6e237dd7a08482a8b8f3f6512d258d2460f182931832a8c6ef3953203d31e1"},+ {file = "pyarrow-15.0.1-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:dd532d3177e031e9b2d2df19fd003d0cc0520d1747659fcabbd4d9bb87de508c"},+ {file = "pyarrow-15.0.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ce8c89848fd37e5313fc2ce601483038ee5566db96ba0808d5883b2e2e55dc53"},+ {file = "pyarrow-15.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:862eac5e5f3b6477f7a92b2f27e560e1f4e5e9edfca9ea9da8a7478bb4abd5ce"},+ {file = "pyarrow-15.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f0ea3a29cd5cb99bf14c1c4533eceaa00ea8fb580950fb5a89a5c771a994a4e"},+ {file = "pyarrow-15.0.1-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:bb902f780cfd624b2e8fd8501fadab17618fdb548532620ef3d91312aaf0888a"},+ {file = "pyarrow-15.0.1-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:4f87757f02735a6bb4ad2e1b98279ac45d53b748d5baf52401516413007c6999"},+ {file = "pyarrow-15.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:efd3816c7fbfcbd406ac0f69873cebb052effd7cdc153ae5836d1b00845845d7"},+ {file = "pyarrow-15.0.1.tar.gz", hash = "sha256:21d812548d39d490e0c6928a7c663f37b96bf764034123d4b4ab4530ecc757a9"},][[package]]@@ -2586,36 +2586,36 @@ files = [[[package]]name = "pyparsing"-version = "3.1.1"+version = "3.1.2"requires_python = ">=3.6.8"summary = "pyparsing module - Classes and methods to define and execute parsing grammars"groups = ["default"]marker = "python_version > \"3.0\""files = [- {file = "pyparsing-3.1.1-py3-none-any.whl", hash = "sha256:32c7c0b711493c72ff18a981d24f28aaf9c1fb7ed5e9667c9e84e3db623bdbfb"},- {file = "pyparsing-3.1.1.tar.gz", hash = "sha256:ede28a1a32462f5a9705e07aea48001a08f7cf81a021585011deba701581a0db"},+ {file = "pyparsing-3.1.2-py3-none-any.whl", hash = "sha256:f9db75911801ed778fe61bb643079ff86601aca99fcae6345aa67292038fb742"},+ {file = "pyparsing-3.1.2.tar.gz", hash = "sha256:a1bac0ce561155ecc3ed78ca94d3c9378656ad4c94c1270de543f621420f94ad"},][[package]]name = "pypdfium2"-version = "4.27.0"+version = "4.28.0"requires_python = ">= 3.6"summary = "Python bindings to PDFium"groups = ["default"]files = [- {file = "pypdfium2-4.27.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:2938f423c79b49df9057993f747e537a05b71bc2c847801ac743f27c3220d363"},- {file = "pypdfium2-4.27.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:f396941e070bf6c245890f2ffb2cb04f39585e3cda93ebb1648f1ed0e99b921f"},- {file = "pypdfium2-4.27.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4d593649fd787c4521f3b8e84892a070d62c19ae3dee7995f38e760e4e14c7c5"},- {file = "pypdfium2-4.27.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:abb16df75dd0ba1c92553bbc9127edce46d59008047bb68abbf002963495d561"},- {file = "pypdfium2-4.27.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:69c76670e62db707fa5374eb8c71c2e9f9e4d6518707cd47725f7c2725129f8a"},- {file = "pypdfium2-4.27.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:40fe503afef2a4c8180c75c1bb3c98eead4c60158b859c440c4c4bf4fa5b3ece"},- {file = "pypdfium2-4.27.0-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bfeb8337c1435ecaa584649b21b691152e06be3b01db761a2cd863fb2fdfda04"},- {file = "pypdfium2-4.27.0-py3-none-musllinux_1_1_i686.whl", hash = "sha256:83c5c12714a5302b9947fe8fe97b003e9b934dec2529e5c10414d3ef5a3c8f19"},- {file = "pypdfium2-4.27.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:c85e6f4fe5475665237da8a698e92c68339bdbc3257e2bcb325feacde5873dbc"},- {file = "pypdfium2-4.27.0-py3-none-win32.whl", hash = "sha256:5c3413d4eeab8f2618b7af7d827dde5b7d40e752033c555e5889508b94f42090"},- {file = "pypdfium2-4.27.0-py3-none-win_amd64.whl", hash = "sha256:597d262152e4aff36f6b2a395826c74c28977055b3b7233963cc91b243c74c78"},- {file = "pypdfium2-4.27.0-py3-none-win_arm64.whl", hash = "sha256:ee4f4f433c9896953ef2ff8622a0912775b88380f91c6a2b8126fc5387d05620"},- {file = "pypdfium2-4.27.0.tar.gz", hash = "sha256:1ff6ac30b98850558c0d163e37fdb868f683b1b2e8ae734072138571a0546222"},+ {file = "pypdfium2-4.28.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:b95dcbd6320e769c81314f0042e3507f4f14c1eb954882ae26d9504a4afe843d"},+ {file = "pypdfium2-4.28.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c6159c2751773575fe7b74bb438f5cf6ed832432eb6db2095922af60803ed911"},+ {file = "pypdfium2-4.28.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91e78c0830e1ff99461b00e3bd0f5b5242bb6b0de6f07e929cdea9d8b1cdbdce"},+ {file = "pypdfium2-4.28.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:562dac267e1323a3206d87072ad1595f923b9a983ac77c8e17fe36aec0ae1b72"},+ {file = "pypdfium2-4.28.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a7779fc76e4fa7ee1c1971f78e0995d5217da405167e8d6b55daa02194b4c2ae"},+ {file = "pypdfium2-4.28.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5e223f3c0b702406927baed3cd581ac19c2a8a254019035387b47ae05051dd71"},+ {file = "pypdfium2-4.28.0-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:1a647454bdc36f11264a8cbbbf8bdfd47997aa81abd2e4984965693428761c22"},+ {file = "pypdfium2-4.28.0-py3-none-musllinux_1_1_i686.whl", hash = "sha256:0a168ac8de5b3ff6b78dfef575eaeb429a64bb6da5683f8138d3a6917eba6f39"},+ {file = "pypdfium2-4.28.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:c999b2dc41e3050bf893252f1f9edb2af37e61d87ce17d9725975bf7bf00acaa"},+ {file = "pypdfium2-4.28.0-py3-none-win32.whl", hash = "sha256:0b7b1e1748ac72f57d3e77580adc20b23d0d644598fd83339cd2ac4e803e9ed9"},+ {file = "pypdfium2-4.28.0-py3-none-win_amd64.whl", hash = "sha256:927f9b9498d009573509b3f6f75bab2e9aaca689cac5af0afb6fbfbaa6279cc3"},+ {file = "pypdfium2-4.28.0-py3-none-win_arm64.whl", hash = "sha256:61cb7f54d6cf26e9d9b996f553f803f2658d93fcee4f76016264b268f41c9bf7"},+ {file = "pypdfium2-4.28.0.tar.gz", hash = "sha256:1f18981bcceb3a9e59c6de3e4e7e070cddc4de1f7faf419d9ad5f677b06fd909"},][[package]]@@ -3274,7 +3274,7 @@ files = [[[package]]name = "storage3"-version = "0.7.0"+version = "0.7.3"requires_python = ">=3.8,<4.0"summary = "Supabase Storage client for Python."groups = ["default"]@@ -3284,8 +3284,8 @@ dependencies = ["typing-extensions<5.0.0,>=4.2.0",]files = [- {file = "storage3-0.7.0-py3-none-any.whl", hash = "sha256:dd2d6e68f7a3dc038047ed62fa8bdc5c2e3d6b6e56ee2951195d084bcce71605"},- {file = "storage3-0.7.0.tar.gz", hash = "sha256:9ddecc775cdc04514413bd44b9ec61bc25aad9faadabefdb6e6e88b33756f5fd"},+ {file = "storage3-0.7.3-py3-none-any.whl", hash = "sha256:dc6a59da801ee6fc00015da4967ac0b5c3e5508d31ffd796f0e4c83957e5c6a0"},+ {file = "storage3-0.7.3.tar.gz", hash = "sha256:943c31de4a7c7490ad7960d963a6b410979ebd0e1b3d320d76cb61564ab0b528"},][[package]]@@ -3643,7 +3643,7 @@ files = [[[package]]name = "unstract-adapters"-version = "0.4.0"+version = "0.4.1"requires_python = "<3.12,>=3.9"summary = "Unstract Adapters"groups = ["default"]@@ -3669,13 +3669,13 @@ dependencies = ["weaviate-client==3.25.3",]files = [- {file = "unstract_adapters-0.4.0-py3-none-any.whl", hash = "sha256:6a7fd6fa376f883242c290a862c4d1b024c357b003cb9d86b494c350edfc58a4"},- {file = "unstract_adapters-0.4.0.tar.gz", hash = "sha256:78c56813c626af61d1d7b64f3cc603ce7b276a11c96d634d154fce5bc55cd7e6"},+ {file = "unstract_adapters-0.4.1-py3-none-any.whl", hash = "sha256:d8be73fe96f37f347274b62360e2a99b69e83b93e4be4c93797e383e0a0cafbb"},+ {file = "unstract_adapters-0.4.1.tar.gz", hash = "sha256:1f0ceaa8a26af51dd46713ec73b029a115c2a9f43a00e10ae73e8dedee7e1069"},][[package]]name = "unstract-sdk"-version = "0.14.0"+version = "0.15.0"requires_python = "<3.11.1,>=3.9"summary = "A framework for writing Unstract Tools/Apps"groups = ["default"]@@ -3689,11 +3689,11 @@ dependencies = ["python-magic~=0.4.27","tiktoken~=0.4.0","transformers==4.37.0",- "unstract-adapters~=0.4.0",+ "unstract-adapters~=0.4.1",]files = [- {file = "unstract_sdk-0.14.0-py3-none-any.whl", hash = "sha256:f1494ac22d3a8f637ad96c168f31021d86644ac14817b13ced740c4f3eb7084a"},- {file = "unstract_sdk-0.14.0.tar.gz", hash = "sha256:448b72fa22d91ed589c8932d5764c912f75d464bd4b1cbade528d4330b91dd7a"},+ {file = "unstract_sdk-0.15.0-py3-none-any.whl", hash = "sha256:3037f231d4d1b12f4768ccc7152428f039048ff13a70d68b028669ba99394626"},+ {file = "unstract_sdk-0.15.0.tar.gz", hash = "sha256:ad1cc9eafad4976e6f9e087ed72b139d7936b03b5f8422b5b11dfbf55db007e3"},][[package]]diff --git a/prompt-service/pyproject.toml b/prompt-service/pyproject.tomlindex 426504894..78326d5e7 100644--- a/prompt-service/pyproject.toml+++ b/prompt-service/pyproject.toml@@ -15,7 +15,7 @@ dependencies = ["flask~=3.0","llama-index==0.9.28","python-dotenv==1.0.0",- "unstract-sdk~=0.14.0",+ "unstract-sdk~=0.15.0",]requires-python = ">=3.9,<3.11.1"readme = "README.md"diff --git a/pyproject.toml b/pyproject.tomlindex eb4ba1143..d8807abc3 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -41,8 +41,8 @@ hook-check-django-migrations = ["psycopg2-binary==2.9.9","python-dotenv==1.0.0","python-magic==0.4.27",- "unstract-sdk~=0.14.0",- "unstract-adapters~=0.4.0",+ "unstract-sdk~=0.15.0",+ "unstract-adapters~=0.4.1","-e unstract-connectors @ file:///${PROJECT_ROOT}/unstract/connectors","-e unstract-core @ file:///${PROJECT_ROOT}/unstract/core","-e unstract-flags @ file:///${PROJECT_ROOT}/unstract/flags",diff --git a/run-platform.sh b/run-platform.shindex 2713d5738..74b243bc3 100755--- a/run-platform.sh+++ b/run-platform.sh@@ -105,7 +105,7 @@ setup_env() {env_path="$script_dir/$service/.env"# Generate Fernet Key. Refer https://pypi.org/project/cryptography/.- ENCRYPTION_KEY=$(python -c "import secrets, base64; print(base64.urlsafe_b64encode(secrets.token_bytes(32)).decode())")+ ENCRYPTION_KEY=$(python3 -c "import secrets, base64; print(base64.urlsafe_b64encode(secrets.token_bytes(32)).decode())")if [ -e "$sample_env_path" ] && [ ! -e "$env_path" ]; thencp "$sample_env_path" "$env_path"@@ -210,4 +210,4 @@ build_servicesrun_services## Run Unstract platform - END-#\ No newline at end of file+#diff --git a/tools/structure/requirements.txt b/tools/structure/requirements.txtindex 03acb23a8..e7658f93e 100644--- a/tools/structure/requirements.txt+++ b/tools/structure/requirements.txt@@ -1,4 +1,4 @@# Add your dependencies here# Required for all unstract tools-unstract-sdk~=0.14.0+unstract-sdk~=0.15.0diff --git a/tools/structure/src/config/properties.json b/tools/structure/src/config/properties.jsonindex 20ebd1e7c..e1c52bda3 100644--- a/tools/structure/src/config/properties.json+++ b/tools/structure/src/config/properties.json@@ -2,7 +2,7 @@"schemaVersion": "0.0.1","displayName": "Structure Tool","functionName": "structure_tool",- "toolVersion": "0.0.2",+ "toolVersion": "0.0.3","description": "This is a template tool which can answer set of input prompts designed in the Prompt Studio","input": {"description": "File that needs to be indexed and parsed for answers"diff --git a/unstract/tool-registry/pyproject.toml b/unstract/tool-registry/pyproject.tomlindex 391872069..83bdf1743 100644--- a/unstract/tool-registry/pyproject.toml+++ b/unstract/tool-registry/pyproject.toml@@ -13,7 +13,7 @@ dependencies = ["docker~=6.1.3","jsonschema~=4.18.2","PyYAML~=6.0.1",- "unstract-adapters~=0.4.0",+ "unstract-adapters~=0.4.1",# ! IMPORTANT!# Local dependencies usually need to be added as:# https://pdm-project.org/latest/usage/dependency/#local-dependencies