Skip to content

Commit 6a48aed

Browse files
[FIX] Include helper class under package and refactor function name (#138)
* Refactoring changed file names * Roll version * Update src/unstract/sdk/utils/tool_utils.py Co-authored-by: Chandrasekharan M <[email protected]> Signed-off-by: Gayathri <[email protected]> * Update tests/test_fs_permanent.py Co-authored-by: Chandrasekharan M <[email protected]> Signed-off-by: Gayathri <[email protected]> * Update tests/test_fs_permanent.py Co-authored-by: Chandrasekharan M <[email protected]> Signed-off-by: Gayathri <[email protected]> * Update src/unstract/sdk/utils/tool_utils.py Co-authored-by: Chandrasekharan M <[email protected]> Signed-off-by: Gayathri <[email protected]> * Address review comments * Add support for passing length to mime_type * Add recursive and fix mypy issue * CHange test case with new behavior to return FileNotFound in read() * Remove typing kwargs. * Resolve mypy issues * Resolve mypy issues * Remove unwanted conditionals/vars * Remove pandoc and tessaract. * Details of provider added to error message * fixed enum conditional matching value * Include EnvHelper in __init__ * Rename error handler * Upgrade version * Expose StorageType outside --------- Signed-off-by: Gayathri <[email protected]> Co-authored-by: Chandrasekharan M <[email protected]>
1 parent 8156743 commit 6a48aed

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/unstract/sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.54.0rc8"
1+
__version__ = "0.54.0rc9"
22

33

44
def get_sdk_version():

src/unstract/sdk/adapters/vectordb/qdrant/src/qdrant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _get_vector_db_instance(self) -> BasePydanticVectorStore:
7474
)
7575
return vector_db
7676
except Exception as e:
77-
raise self.parse_qdrant_err(e) from e
77+
raise self.parse_vector_db_err(e) from e
7878

7979
def test_connection(self) -> bool:
8080
try:

src/unstract/sdk/file_storage/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
"FileStorageHelper",
55
"PermanentFileStorage",
66
"SharedTemporaryFileStorage",
7+
"EnvHelper",
8+
"StorageType",
79
]
810

11+
from unstract.sdk.file_storage.constants import StorageType
12+
from unstract.sdk.file_storage.env_helper import EnvHelper
913
from unstract.sdk.file_storage.helper import FileStorageHelper
1014
from unstract.sdk.file_storage.impl import FileStorage
1115
from unstract.sdk.file_storage.permanent import PermanentFileStorage

0 commit comments

Comments
 (0)