maitai-python 1.2.4b0__py3-none-any.whl → 1.2.5__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.
- maitai/_maitai_client.py +9 -4
- maitai_common/version.py +1 -1
- {maitai_python-1.2.4b0.dist-info → maitai_python-1.2.5.dist-info}/METADATA +1 -1
- {maitai_python-1.2.4b0.dist-info → maitai_python-1.2.5.dist-info}/RECORD +6 -6
- {maitai_python-1.2.4b0.dist-info → maitai_python-1.2.5.dist-info}/WHEEL +0 -0
- {maitai_python-1.2.4b0.dist-info → maitai_python-1.2.5.dist-info}/top_level.txt +0 -0
maitai/_maitai_client.py
CHANGED
|
@@ -95,8 +95,14 @@ class MaitaiClient:
|
|
|
95
95
|
atexit.register(self.cleanup)
|
|
96
96
|
|
|
97
97
|
def cleanup(self):
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
try:
|
|
99
|
+
self.run_async_with_result(self.close_async_session())
|
|
100
|
+
except Exception as e:
|
|
101
|
+
pass
|
|
102
|
+
try:
|
|
103
|
+
self.close_session()
|
|
104
|
+
except Exception as e:
|
|
105
|
+
pass
|
|
100
106
|
if self._loop.is_running():
|
|
101
107
|
self._loop.call_soon_threadsafe(self._loop.stop)
|
|
102
108
|
if self._thr.is_alive():
|
|
@@ -132,8 +138,7 @@ class MaitaiClient:
|
|
|
132
138
|
cls._async_session = None
|
|
133
139
|
|
|
134
140
|
def __del__(self):
|
|
135
|
-
self.
|
|
136
|
-
self.run_async_with_result(self.close_async_session())
|
|
141
|
+
self.cleanup()
|
|
137
142
|
|
|
138
143
|
@classmethod
|
|
139
144
|
def run_async(cls, coro):
|
maitai_common/version.py
CHANGED
|
@@ -6,12 +6,12 @@ maitai/_evaluator.py,sha256=x2XSKv6h90VcYBnqb1BRcPOrX7O3gQ4hShZCJzXfO9Y,10344
|
|
|
6
6
|
maitai/_inference.py,sha256=4cijo8J7LDLOZFxD9jPeF9KMUmPk8xG-NaT8cGYaITs,12597
|
|
7
7
|
maitai/_maitai.py,sha256=5aF0SGbpt3O7Lu-9zHCWdPq133SlyW-uwJ9c6gMlco4,25561
|
|
8
8
|
maitai/_maitai_async.py,sha256=1Wh5KDOYesC-7xAw58iITAI5RRA4DvmCES1lRpboXzI,25636
|
|
9
|
-
maitai/_maitai_client.py,sha256=
|
|
9
|
+
maitai/_maitai_client.py,sha256=WERe_7lhnRpTXQUl7XcWLAPjIO2hCE1BDCWx9tFM90U,7805
|
|
10
10
|
maitai/_types.py,sha256=uIYm1YQv6ZmGZ4GG6p6xrCjfVGq8VSxkehLgRqtr1Rw,6436
|
|
11
11
|
maitai/_utils.py,sha256=3JN5MClGZNkcmn-hWgi8fNV2n-Ytlek37H3S6TEHzuk,11276
|
|
12
12
|
maitai/tools/__init__.py,sha256=TxJ-g4A0eIzoIMD60ctIPVppCWcdcuZWms3hPGrqkSs,4043
|
|
13
13
|
maitai_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
-
maitai_common/version.py,sha256=
|
|
14
|
+
maitai_common/version.py,sha256=YzyAEnt17xg7Bf36sbffeBWVevjAI5IaAKeYTfuRJ40,64
|
|
15
15
|
maitai_common/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
maitai_common/config/config_service.py,sha256=U8hU0F9juZtrZwIayOM_OBShxynUS8gu5K0F40KvcA0,940
|
|
17
17
|
maitai_common/processes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -37,7 +37,7 @@ maitai_gen/rates/__init__.py,sha256=Aho7HzMKRfjQz10tMJCoRVttq_cGlYh2DxxpSyTQAzU,
|
|
|
37
37
|
maitai_gen/sandbox/__init__.py,sha256=IZ4hf76V1aZrYk5S-4p7z38e-op_s341utVG2domE_g,1549
|
|
38
38
|
maitai_gen/sentinel/__init__.py,sha256=3yR28usTBIAC-M_uxEUFgqXo2PWylEKEPYmWX_dp7Cs,2513
|
|
39
39
|
maitai_gen/session/__init__.py,sha256=kCJweCFagUqGkzktucaWLti9HSLaO5AML8Jewl89yM0,1242
|
|
40
|
-
maitai_python-1.2.
|
|
41
|
-
maitai_python-1.2.
|
|
42
|
-
maitai_python-1.2.
|
|
43
|
-
maitai_python-1.2.
|
|
40
|
+
maitai_python-1.2.5.dist-info/METADATA,sha256=YQXz7fQ-gocLipPjqW6YXmY29cnjnWFj8-MUuofNbV0,1494
|
|
41
|
+
maitai_python-1.2.5.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
42
|
+
maitai_python-1.2.5.dist-info/top_level.txt,sha256=-5U1krxnwlqB-AY7nEe29ZcNvwByNc-SnBe-mph-QjI,32
|
|
43
|
+
maitai_python-1.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|