lattica 1.0.0__cp311-cp311-macosx_11_0_arm64.whl → 1.0.1__cp311-cp311-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
@@ -89,6 +89,10 @@ class Lattica:
89
89
  self.config['key_path'] = key_path
90
90
  return self
91
91
 
92
+ def with_protocol(self, protocol: str) -> 'Lattica':
93
+ self.config['protocol'] = protocol
94
+ return self
95
+
92
96
  def build(self) -> 'Lattica':
93
97
  self._initialize_client()
94
98
  return self
@@ -148,7 +152,7 @@ class Lattica:
148
152
  serialized_value, expiration = result
149
153
  value = pickle.loads(serialized_value)
150
154
  return ValueWithExpiration(value=value, expiration_time=expiration)
151
-
155
+
152
156
  except Exception as e:
153
157
  print(f"Error getting value: {e}")
154
158
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lattica
3
- Version: 1.0.0
3
+ Version: 1.0.1
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'
@@ -41,9 +41,13 @@ A unified Python SDK for P2P networking with integrated DHT and NAT capabilities
41
41
  - **High Performance**: Built with Rust for optimal performance
42
42
 
43
43
  ## Installation
44
- You can install from source using:
44
+ You can install the released versions
45
45
  ```bash
46
- pip install git+https://github.com/GradientHQ/lattica.git#subdirectory=bindings/python
46
+ pip install lattica
47
+ ```
48
+ Or you can install from source using:
49
+ ```bash
50
+ pip install git+https://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@github.com/OpenEdgeHQ/p2p-lattica.git#subdirectory=bindings/python
47
51
  ```
48
52
 
49
53
  ## Quick Start
@@ -173,7 +177,6 @@ lattica = Lattica.builder() \
173
177
  - `with_dcutr(enabled)`: Enable/disable TCP/QUIC NAT travelsal[need relay servers]
174
178
  - `with_external_addrs(addrs)`: Set external address
175
179
  - `with_storage_path`: Persistent storage path
176
- - `with_dht_db_path`: DHT Persistent db path
177
180
  - `with_key_path`: Set Keypair path
178
181
 
179
182
  ## Development
@@ -0,0 +1,8 @@
1
+ lattica-1.0.1.dist-info/METADATA,sha256=fX-kDIcS6mzopBwkrYLAWiHKryBYMOX8ILFIxwQ3XRk,5734
2
+ lattica-1.0.1.dist-info/WHEEL,sha256=CdmMmeYa1eQuY-2vdbC6jhmKJJ-SWCUx-px1LE7blCQ,104
3
+ lattica/__init__.py,sha256=BLGWIZILK6lm9ewbDaAtU1WNuq4qJ7JNmMu_-3AAEA4,255
4
+ lattica/client.py,sha256=-wxEgMW-c_MA8Vc-I5PB34878xVvlP2aNYZIHrdRKy8,8437
5
+ lattica/connection_handler.py,sha256=oNFxBNO5-UJe9YWPvaojn1ayADjy4CC7ZDozU_jlqT4,13296
6
+ lattica_python_core/__init__.py,sha256=uXPn47KzWKWEomcCmXdktHbovVOR38Cbsv8Vu8IrTPQ,159
7
+ lattica_python_core/lattica_python_core.cpython-311-darwin.so,sha256=1G37jhB0WKUH6DcZC_1RBXfRWf-d6INi1LyzxwtU5j4,17221632
8
+ lattica-1.0.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.9.1)
2
+ Generator: maturin (1.9.4)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp311-cp311-macosx_11_0_arm64
@@ -1,8 +0,0 @@
1
- lattica-1.0.0.dist-info/METADATA,sha256=jINQznBxE8PJ50xVs2qkRd0BWPT7A5xcroy5XR7l8Ow,5608
2
- lattica-1.0.0.dist-info/WHEEL,sha256=4POUqOUvk-fNEqEa1NBlmMsgWQGl6FnEg9vsbsvEmNM,104
3
- lattica/__init__.py,sha256=BLGWIZILK6lm9ewbDaAtU1WNuq4qJ7JNmMu_-3AAEA4,255
4
- lattica/client.py,sha256=VcQSxjuPMzLAvW2B_o0pPCHTs6tlNQAwWUVTqFISykk,8300
5
- lattica/connection_handler.py,sha256=oNFxBNO5-UJe9YWPvaojn1ayADjy4CC7ZDozU_jlqT4,13296
6
- lattica_python_core/__init__.py,sha256=uXPn47KzWKWEomcCmXdktHbovVOR38Cbsv8Vu8IrTPQ,159
7
- lattica_python_core/lattica_python_core.cpython-311-darwin.so,sha256=m0AplHtL4nzHrjBXvmTCJz5HspbvzOIZl-LRi4Mri2U,22722992
8
- lattica-1.0.0.dist-info/RECORD,,