jaseci 1.4.0.17__py3-none-any.whl → 1.4.0.18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of jaseci might be problematic. Click here for more details.
- jaseci/VERSION +1 -1
- jaseci/utils/utils.py +15 -1
- {jaseci-1.4.0.17.dist-info → jaseci-1.4.0.18.dist-info}/METADATA +1 -1
- {jaseci-1.4.0.17.dist-info → jaseci-1.4.0.18.dist-info}/RECORD +8 -8
- {jaseci-1.4.0.17.dist-info → jaseci-1.4.0.18.dist-info}/LICENSE +0 -0
- {jaseci-1.4.0.17.dist-info → jaseci-1.4.0.18.dist-info}/WHEEL +0 -0
- {jaseci-1.4.0.17.dist-info → jaseci-1.4.0.18.dist-info}/entry_points.txt +0 -0
- {jaseci-1.4.0.17.dist-info → jaseci-1.4.0.18.dist-info}/top_level.txt +0 -0
jaseci/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.4.0.
|
|
1
|
+
1.4.0.18
|
jaseci/utils/utils.py
CHANGED
|
@@ -17,8 +17,9 @@ import traceback
|
|
|
17
17
|
import inspect
|
|
18
18
|
import unittest
|
|
19
19
|
from time import time
|
|
20
|
-
|
|
20
|
+
from pathlib import Path
|
|
21
21
|
from pprint import pformat
|
|
22
|
+
from typing import Union
|
|
22
23
|
|
|
23
24
|
from jaseci.utils.log_utils import LimitedSlidingBuffer
|
|
24
25
|
|
|
@@ -331,3 +332,16 @@ def find_first_api(api_name, **api_endpoints):
|
|
|
331
332
|
if api:
|
|
332
333
|
return path, api
|
|
333
334
|
raise InvalidApiException(f"api {api_name} is not existing!")
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
cache_root = Path(Path.home(), ".jaseci/models")
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
def model_base_path(cache_dir: Union[str, Path]) -> Path:
|
|
341
|
+
cache_dir = Path(cache_dir)
|
|
342
|
+
|
|
343
|
+
if not os.path.isabs(cache_dir):
|
|
344
|
+
model_cache = cache_root / cache_dir
|
|
345
|
+
else:
|
|
346
|
+
model_cache = cache_dir
|
|
347
|
+
return model_cache
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
jaseci/VERSION,sha256=
|
|
1
|
+
jaseci/VERSION,sha256=wt2cDwcEID1HJJqP4EFUnrYbbWFI95p3NNCVHoBS-L4,9
|
|
2
2
|
jaseci/__init__.py,sha256=qkJ3-ufZPGervTKYsKVNxdKvdMbrCmae8pgFAcWk5Pg,1101
|
|
3
3
|
jaseci/cli_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
jaseci/cli_tools/book_tools.py,sha256=4xeNRhKufKJgAaKI5miPTezdBDWeA-iB_H5F5cqyIB8,16103
|
|
@@ -159,14 +159,14 @@ jaseci/utils/id_list.py,sha256=L1uzwBrLRxnw3EaapOsEMA7QCsbY50RnK0nFTu2ruWo,5328
|
|
|
159
159
|
jaseci/utils/json_handler.py,sha256=P1fY7BnGBfA_mkiKjeJvAwfqGXWt3cpY0JcmPVL86bQ,2135
|
|
160
160
|
jaseci/utils/log_utils.py,sha256=U46KspmCbX6S7YzEk1LB20iB4G1DPHfpV5RFim04Mbg,1629
|
|
161
161
|
jaseci/utils/test_core.py,sha256=DG0mW2GRc2l0M1A1-vCgTUFnZh8ip_0-h7eOfKMxlXQ,1549
|
|
162
|
-
jaseci/utils/utils.py,sha256
|
|
162
|
+
jaseci/utils/utils.py,sha256=iGK-Ovf5u9Y5cQUc95GJmyGpQQa1cnF7QOCseCf42EQ,9101
|
|
163
163
|
jaseci/utils/actions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
164
164
|
jaseci/utils/actions/actions_manager.py,sha256=sKfWk9zRpDpkLo3-mKpVMKrqx7kpRG7hRi5tfDTcqb8,8527
|
|
165
165
|
jaseci/utils/actions/actions_optimizer.py,sha256=gs2spE-HFzdfW8WNqctw9DBldUxv3vj3DPpU5txZllE,20786
|
|
166
166
|
jaseci/utils/actions/actions_state.py,sha256=5p080-DtDXS9QUd2FwkrtN6-7LBqT2tmJDOKVKjDEbU,2963
|
|
167
|
-
jaseci-1.4.0.
|
|
168
|
-
jaseci-1.4.0.
|
|
169
|
-
jaseci-1.4.0.
|
|
170
|
-
jaseci-1.4.0.
|
|
171
|
-
jaseci-1.4.0.
|
|
172
|
-
jaseci-1.4.0.
|
|
167
|
+
jaseci-1.4.0.18.dist-info/LICENSE,sha256=2b_qOOd7ak6x49HwOzCAmRLSPJehiBJdqj9HDX1Jp7U,1072
|
|
168
|
+
jaseci-1.4.0.18.dist-info/METADATA,sha256=wh0bSDOWuDVz46_MXv15eNHZM0NUbXw0VByq0TRUGO8,1059
|
|
169
|
+
jaseci-1.4.0.18.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
170
|
+
jaseci-1.4.0.18.dist-info/entry_points.txt,sha256=nryZyKQLUJzlTOcA9knRGoXHGmNUCQxvvuDIEj5ePyg,88
|
|
171
|
+
jaseci-1.4.0.18.dist-info/top_level.txt,sha256=0WZh7RF_ruiaZHQSi8IWOiLRUvKKDlhcnLe-by6EyFc,7
|
|
172
|
+
jaseci-1.4.0.18.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|