lattica 1.0.6__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}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lattica
3
- Version: 1.0.6
3
+ Version: 1.0.8
4
4
  Requires-Dist: asyncio ; python_full_version >= '3.11'
5
5
  Requires-Dist: typing-extensions ; python_full_version < '3.12'
6
6
  Requires-Dist: nest-asyncio ; python_full_version >= '3.11'
@@ -47,7 +47,7 @@ pip install lattica
47
47
  ```
48
48
  Or you can install from source using:
49
49
  ```bash
50
- pip install git+https://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@github.com/OpenEdgeHQ/p2p-lattica.git#subdirectory=bindings/python --force-reinstall
50
+ pip install git+https://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@github.com/OpenEdgeHQ/p2p-lattica.git#subdirectory=bindings/python --force-reinstall
51
51
  ```
52
52
 
53
53
  ## Quick Start
@@ -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,,
@@ -1,8 +0,0 @@
1
- lattica-1.0.6.dist-info/METADATA,sha256=rmBHx1gY55GbImjN93ecFW_ApmRCjczZ2rTOXfA3ABE,5997
2
- lattica-1.0.6.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=RMQAEjLlxRJXhlzAnessn2vq_XnIjLHkbCxvx5refGQ,17520944
8
- lattica-1.0.6.dist-info/RECORD,,