lattica 1.0.7__cp311-abi3-macosx_11_0_arm64.whl → 1.0.8__cp311-abi3-macosx_11_0_arm64.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 lattica might be problematic. Click here for more details.
lattica/client.py
CHANGED
|
@@ -241,9 +241,22 @@ class Lattica:
|
|
|
241
241
|
except Exception as e:
|
|
242
242
|
raise RuntimeError(f"Failed to stop providing: {e}")
|
|
243
243
|
|
|
244
|
+
def close(self):
|
|
245
|
+
try:
|
|
246
|
+
self._lattica_instance.close()
|
|
247
|
+
except Exception as e:
|
|
248
|
+
raise RuntimeError(f"Failed to close client: {e}")
|
|
249
|
+
|
|
244
250
|
def __enter__(self):
|
|
245
251
|
self._ensure_initialized()
|
|
246
252
|
return self
|
|
247
253
|
|
|
248
254
|
def __exit__(self, exc_type, exc_val, exc_tb):
|
|
249
|
-
pass
|
|
255
|
+
pass
|
|
256
|
+
|
|
257
|
+
def __del__(self):
|
|
258
|
+
if self._lattica_instance is not None:
|
|
259
|
+
try:
|
|
260
|
+
self._lattica_instance.close()
|
|
261
|
+
except Exception as e:
|
|
262
|
+
print(f"Warning: Failed to shutdown Lattica: {e}")
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
lattica-1.0.8.dist-info/METADATA,sha256=UTJYoFJrHS9PpuaNqyv3H9zS6ItILvDJRa0wz7qNa_Y,5997
|
|
2
|
+
lattica-1.0.8.dist-info/WHEEL,sha256=kelVgS1CONjYuT6OEIC92ofaP9Aiw74EQCpLzMjs2Gg,103
|
|
3
|
+
lattica/__init__.py,sha256=8YITlLnp2HwFscCFPXoydAQlZfWQbWMIhESS26GovPI,295
|
|
4
|
+
lattica/client.py,sha256=pBQMJZx932QJeTNP0pWfyogWp1uDPgvAy2T2hvGjuDw,8846
|
|
5
|
+
lattica/connection_handler.py,sha256=w8D4hG7KsXfbDdzSmZjn9cOfl8n-HCDEf91b6rElP_4,15749
|
|
6
|
+
lattica_python_core/__init__.py,sha256=uXPn47KzWKWEomcCmXdktHbovVOR38Cbsv8Vu8IrTPQ,159
|
|
7
|
+
lattica_python_core/lattica_python_core.abi3.so,sha256=CjmvTWR_y11i4RC7nVirSs9DuhI35t3Unj_ow67hkDI,17521056
|
|
8
|
+
lattica-1.0.8.dist-info/RECORD,,
|
|
Binary file
|
lattica-1.0.7.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
lattica-1.0.7.dist-info/METADATA,sha256=SPdIj4g82bvqC1EiAGqq9cHeosvQaspyodZiCh4SMvA,5997
|
|
2
|
-
lattica-1.0.7.dist-info/WHEEL,sha256=kelVgS1CONjYuT6OEIC92ofaP9Aiw74EQCpLzMjs2Gg,103
|
|
3
|
-
lattica/__init__.py,sha256=8YITlLnp2HwFscCFPXoydAQlZfWQbWMIhESS26GovPI,295
|
|
4
|
-
lattica/client.py,sha256=-wxEgMW-c_MA8Vc-I5PB34878xVvlP2aNYZIHrdRKy8,8437
|
|
5
|
-
lattica/connection_handler.py,sha256=w8D4hG7KsXfbDdzSmZjn9cOfl8n-HCDEf91b6rElP_4,15749
|
|
6
|
-
lattica_python_core/__init__.py,sha256=uXPn47KzWKWEomcCmXdktHbovVOR38Cbsv8Vu8IrTPQ,159
|
|
7
|
-
lattica_python_core/lattica_python_core.abi3.so,sha256=9Zc0F9R8g1KvLKYw8NahKFW6FlugKAZ32ELC_eSR68Q,17520960
|
|
8
|
-
lattica-1.0.7.dist-info/RECORD,,
|
|
File without changes
|