wool 0.1rc7__py3-none-any.whl → 0.1rc9__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 wool might be problematic. Click here for more details.

@@ -0,0 +1,355 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from mempool import service_pb2 as mempool_dot_service__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.73.1'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + f' but the generated code in mempool/service_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class MemoryPoolStub(object):
29
+ """Missing associated documentation comment in .proto file."""
30
+
31
+ def __init__(self, channel):
32
+ """Constructor.
33
+
34
+ Args:
35
+ channel: A grpc.Channel.
36
+ """
37
+ self.session = channel.unary_stream(
38
+ '/wool._protobuf.mempool.MemoryPool/session',
39
+ request_serializer=mempool_dot_service__pb2.SessionRequest.SerializeToString,
40
+ response_deserializer=mempool_dot_service__pb2.SessionResponse.FromString,
41
+ _registered_method=True)
42
+ self.acquire = channel.unary_unary(
43
+ '/wool._protobuf.mempool.MemoryPool/acquire',
44
+ request_serializer=mempool_dot_service__pb2.AcquireRequest.SerializeToString,
45
+ response_deserializer=mempool_dot_service__pb2.AcquireResponse.FromString,
46
+ _registered_method=True)
47
+ self.map = channel.unary_unary(
48
+ '/wool._protobuf.mempool.MemoryPool/map',
49
+ request_serializer=mempool_dot_service__pb2.AcquireRequest.SerializeToString,
50
+ response_deserializer=mempool_dot_service__pb2.AcquireResponse.FromString,
51
+ _registered_method=True)
52
+ self.put = channel.unary_unary(
53
+ '/wool._protobuf.mempool.MemoryPool/put',
54
+ request_serializer=mempool_dot_service__pb2.PutRequest.SerializeToString,
55
+ response_deserializer=mempool_dot_service__pb2.PutResponse.FromString,
56
+ _registered_method=True)
57
+ self.post = channel.unary_unary(
58
+ '/wool._protobuf.mempool.MemoryPool/post',
59
+ request_serializer=mempool_dot_service__pb2.PostRequest.SerializeToString,
60
+ response_deserializer=mempool_dot_service__pb2.PostResponse.FromString,
61
+ _registered_method=True)
62
+ self.get = channel.unary_unary(
63
+ '/wool._protobuf.mempool.MemoryPool/get',
64
+ request_serializer=mempool_dot_service__pb2.GetRequest.SerializeToString,
65
+ response_deserializer=mempool_dot_service__pb2.GetResponse.FromString,
66
+ _registered_method=True)
67
+ self.release = channel.unary_unary(
68
+ '/wool._protobuf.mempool.MemoryPool/release',
69
+ request_serializer=mempool_dot_service__pb2.ReleaseRequest.SerializeToString,
70
+ response_deserializer=mempool_dot_service__pb2.ReleaseResponse.FromString,
71
+ _registered_method=True)
72
+
73
+
74
+ class MemoryPoolServicer(object):
75
+ """Missing associated documentation comment in .proto file."""
76
+
77
+ def session(self, request, context):
78
+ """Missing associated documentation comment in .proto file."""
79
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
80
+ context.set_details('Method not implemented!')
81
+ raise NotImplementedError('Method not implemented!')
82
+
83
+ def acquire(self, request, context):
84
+ """Missing associated documentation comment in .proto file."""
85
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
86
+ context.set_details('Method not implemented!')
87
+ raise NotImplementedError('Method not implemented!')
88
+
89
+ def map(self, request, context):
90
+ """Missing associated documentation comment in .proto file."""
91
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
92
+ context.set_details('Method not implemented!')
93
+ raise NotImplementedError('Method not implemented!')
94
+
95
+ def put(self, request, context):
96
+ """Missing associated documentation comment in .proto file."""
97
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
98
+ context.set_details('Method not implemented!')
99
+ raise NotImplementedError('Method not implemented!')
100
+
101
+ def post(self, request, context):
102
+ """Missing associated documentation comment in .proto file."""
103
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
104
+ context.set_details('Method not implemented!')
105
+ raise NotImplementedError('Method not implemented!')
106
+
107
+ def get(self, request, context):
108
+ """Missing associated documentation comment in .proto file."""
109
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
110
+ context.set_details('Method not implemented!')
111
+ raise NotImplementedError('Method not implemented!')
112
+
113
+ def release(self, request, context):
114
+ """Missing associated documentation comment in .proto file."""
115
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
116
+ context.set_details('Method not implemented!')
117
+ raise NotImplementedError('Method not implemented!')
118
+
119
+
120
+ def add_MemoryPoolServicer_to_server(servicer, server):
121
+ rpc_method_handlers = {
122
+ 'session': grpc.unary_stream_rpc_method_handler(
123
+ servicer.session,
124
+ request_deserializer=mempool_dot_service__pb2.SessionRequest.FromString,
125
+ response_serializer=mempool_dot_service__pb2.SessionResponse.SerializeToString,
126
+ ),
127
+ 'acquire': grpc.unary_unary_rpc_method_handler(
128
+ servicer.acquire,
129
+ request_deserializer=mempool_dot_service__pb2.AcquireRequest.FromString,
130
+ response_serializer=mempool_dot_service__pb2.AcquireResponse.SerializeToString,
131
+ ),
132
+ 'map': grpc.unary_unary_rpc_method_handler(
133
+ servicer.map,
134
+ request_deserializer=mempool_dot_service__pb2.AcquireRequest.FromString,
135
+ response_serializer=mempool_dot_service__pb2.AcquireResponse.SerializeToString,
136
+ ),
137
+ 'put': grpc.unary_unary_rpc_method_handler(
138
+ servicer.put,
139
+ request_deserializer=mempool_dot_service__pb2.PutRequest.FromString,
140
+ response_serializer=mempool_dot_service__pb2.PutResponse.SerializeToString,
141
+ ),
142
+ 'post': grpc.unary_unary_rpc_method_handler(
143
+ servicer.post,
144
+ request_deserializer=mempool_dot_service__pb2.PostRequest.FromString,
145
+ response_serializer=mempool_dot_service__pb2.PostResponse.SerializeToString,
146
+ ),
147
+ 'get': grpc.unary_unary_rpc_method_handler(
148
+ servicer.get,
149
+ request_deserializer=mempool_dot_service__pb2.GetRequest.FromString,
150
+ response_serializer=mempool_dot_service__pb2.GetResponse.SerializeToString,
151
+ ),
152
+ 'release': grpc.unary_unary_rpc_method_handler(
153
+ servicer.release,
154
+ request_deserializer=mempool_dot_service__pb2.ReleaseRequest.FromString,
155
+ response_serializer=mempool_dot_service__pb2.ReleaseResponse.SerializeToString,
156
+ ),
157
+ }
158
+ generic_handler = grpc.method_handlers_generic_handler(
159
+ 'wool._protobuf.mempool.MemoryPool', rpc_method_handlers)
160
+ server.add_generic_rpc_handlers((generic_handler,))
161
+ server.add_registered_method_handlers('wool._protobuf.mempool.MemoryPool', rpc_method_handlers)
162
+
163
+
164
+ # This class is part of an EXPERIMENTAL API.
165
+ class MemoryPool(object):
166
+ """Missing associated documentation comment in .proto file."""
167
+
168
+ @staticmethod
169
+ def session(request,
170
+ target,
171
+ options=(),
172
+ channel_credentials=None,
173
+ call_credentials=None,
174
+ insecure=False,
175
+ compression=None,
176
+ wait_for_ready=None,
177
+ timeout=None,
178
+ metadata=None):
179
+ return grpc.experimental.unary_stream(
180
+ request,
181
+ target,
182
+ '/wool._protobuf.mempool.MemoryPool/session',
183
+ mempool_dot_service__pb2.SessionRequest.SerializeToString,
184
+ mempool_dot_service__pb2.SessionResponse.FromString,
185
+ options,
186
+ channel_credentials,
187
+ insecure,
188
+ call_credentials,
189
+ compression,
190
+ wait_for_ready,
191
+ timeout,
192
+ metadata,
193
+ _registered_method=True)
194
+
195
+ @staticmethod
196
+ def acquire(request,
197
+ target,
198
+ options=(),
199
+ channel_credentials=None,
200
+ call_credentials=None,
201
+ insecure=False,
202
+ compression=None,
203
+ wait_for_ready=None,
204
+ timeout=None,
205
+ metadata=None):
206
+ return grpc.experimental.unary_unary(
207
+ request,
208
+ target,
209
+ '/wool._protobuf.mempool.MemoryPool/acquire',
210
+ mempool_dot_service__pb2.AcquireRequest.SerializeToString,
211
+ mempool_dot_service__pb2.AcquireResponse.FromString,
212
+ options,
213
+ channel_credentials,
214
+ insecure,
215
+ call_credentials,
216
+ compression,
217
+ wait_for_ready,
218
+ timeout,
219
+ metadata,
220
+ _registered_method=True)
221
+
222
+ @staticmethod
223
+ def map(request,
224
+ target,
225
+ options=(),
226
+ channel_credentials=None,
227
+ call_credentials=None,
228
+ insecure=False,
229
+ compression=None,
230
+ wait_for_ready=None,
231
+ timeout=None,
232
+ metadata=None):
233
+ return grpc.experimental.unary_unary(
234
+ request,
235
+ target,
236
+ '/wool._protobuf.mempool.MemoryPool/map',
237
+ mempool_dot_service__pb2.AcquireRequest.SerializeToString,
238
+ mempool_dot_service__pb2.AcquireResponse.FromString,
239
+ options,
240
+ channel_credentials,
241
+ insecure,
242
+ call_credentials,
243
+ compression,
244
+ wait_for_ready,
245
+ timeout,
246
+ metadata,
247
+ _registered_method=True)
248
+
249
+ @staticmethod
250
+ def put(request,
251
+ target,
252
+ options=(),
253
+ channel_credentials=None,
254
+ call_credentials=None,
255
+ insecure=False,
256
+ compression=None,
257
+ wait_for_ready=None,
258
+ timeout=None,
259
+ metadata=None):
260
+ return grpc.experimental.unary_unary(
261
+ request,
262
+ target,
263
+ '/wool._protobuf.mempool.MemoryPool/put',
264
+ mempool_dot_service__pb2.PutRequest.SerializeToString,
265
+ mempool_dot_service__pb2.PutResponse.FromString,
266
+ options,
267
+ channel_credentials,
268
+ insecure,
269
+ call_credentials,
270
+ compression,
271
+ wait_for_ready,
272
+ timeout,
273
+ metadata,
274
+ _registered_method=True)
275
+
276
+ @staticmethod
277
+ def post(request,
278
+ target,
279
+ options=(),
280
+ channel_credentials=None,
281
+ call_credentials=None,
282
+ insecure=False,
283
+ compression=None,
284
+ wait_for_ready=None,
285
+ timeout=None,
286
+ metadata=None):
287
+ return grpc.experimental.unary_unary(
288
+ request,
289
+ target,
290
+ '/wool._protobuf.mempool.MemoryPool/post',
291
+ mempool_dot_service__pb2.PostRequest.SerializeToString,
292
+ mempool_dot_service__pb2.PostResponse.FromString,
293
+ options,
294
+ channel_credentials,
295
+ insecure,
296
+ call_credentials,
297
+ compression,
298
+ wait_for_ready,
299
+ timeout,
300
+ metadata,
301
+ _registered_method=True)
302
+
303
+ @staticmethod
304
+ def get(request,
305
+ target,
306
+ options=(),
307
+ channel_credentials=None,
308
+ call_credentials=None,
309
+ insecure=False,
310
+ compression=None,
311
+ wait_for_ready=None,
312
+ timeout=None,
313
+ metadata=None):
314
+ return grpc.experimental.unary_unary(
315
+ request,
316
+ target,
317
+ '/wool._protobuf.mempool.MemoryPool/get',
318
+ mempool_dot_service__pb2.GetRequest.SerializeToString,
319
+ mempool_dot_service__pb2.GetResponse.FromString,
320
+ options,
321
+ channel_credentials,
322
+ insecure,
323
+ call_credentials,
324
+ compression,
325
+ wait_for_ready,
326
+ timeout,
327
+ metadata,
328
+ _registered_method=True)
329
+
330
+ @staticmethod
331
+ def release(request,
332
+ target,
333
+ options=(),
334
+ channel_credentials=None,
335
+ call_credentials=None,
336
+ insecure=False,
337
+ compression=None,
338
+ wait_for_ready=None,
339
+ timeout=None,
340
+ metadata=None):
341
+ return grpc.experimental.unary_unary(
342
+ request,
343
+ target,
344
+ '/wool._protobuf.mempool.MemoryPool/release',
345
+ mempool_dot_service__pb2.ReleaseRequest.SerializeToString,
346
+ mempool_dot_service__pb2.ReleaseResponse.FromString,
347
+ options,
348
+ channel_credentials,
349
+ insecure,
350
+ call_credentials,
351
+ compression,
352
+ wait_for_ready,
353
+ timeout,
354
+ metadata,
355
+ _registered_method=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wool
3
- Version: 0.1rc7
3
+ Version: 0.1rc9
4
4
  Summary: A Python framework for distributed multiprocessing.
5
5
  Author-email: Conrad Bzura <conrad@wool.io>
6
6
  Maintainer-email: maintainers@wool.io
@@ -206,19 +206,25 @@ License: Apache License
206
206
  See the License for the specific language governing permissions and
207
207
  limitations under the License.
208
208
  Classifier: Intended Audience :: Developers
209
+ Classifier: Operating System :: MacOS :: MacOS X
210
+ Classifier: Operating System :: POSIX :: Linux
209
211
  Requires-Python: >=3.10
210
212
  Requires-Dist: annotated-types
211
213
  Requires-Dist: click
212
214
  Requires-Dist: debugpy
215
+ Requires-Dist: grpcio
213
216
  Requires-Dist: protobuf
214
217
  Requires-Dist: shortuuid
215
218
  Requires-Dist: tblib
219
+ Requires-Dist: typing-extensions
216
220
  Provides-Extra: dev
217
221
  Requires-Dist: pytest; extra == 'dev'
218
222
  Requires-Dist: pytest-asyncio; extra == 'dev'
223
+ Requires-Dist: pytest-grpc-aio~=0.2.0; extra == 'dev'
224
+ Requires-Dist: pytest-mock; extra == 'dev'
219
225
  Requires-Dist: ruff; extra == 'dev'
220
226
  Provides-Extra: locking
221
- Requires-Dist: wool-locking==0.1rc7; extra == 'locking'
227
+ Requires-Dist: wool-locking==0.1rc9; extra == 'locking'
222
228
  Description-Content-Type: text/markdown
223
229
 
224
230
  # Wool
@@ -0,0 +1,29 @@
1
+ wool/__init__.py,sha256=I5_ROaxPM764bhVbirFqLN62TyFrwS8Z47IR7wN4e1k,1900
2
+ wool/_cli.py,sha256=zLJqrT6nyLWNR83z40WsF279zJlE13UdDAhLuwoo50s,6565
3
+ wool/_event.py,sha256=3fixaB2FN9Uetgkpwnw9MikohaRq2NwdnWEMFwPz3A4,2965
4
+ wool/_future.py,sha256=Wn-wOuxfN9_R1-7wTzZGPUSl-IRYy5OM8ml68Ah6VuQ,4792
5
+ wool/_logging.py,sha256=r4iLicEjuYo1P7GMs1OB0GkHo9NKAFocvoR3RAnvrRA,1262
6
+ wool/_manager.py,sha256=QjYH73OPyTBeiOhJhbKJS9cPhuAIN2EOb14bUxZWI4o,4222
7
+ wool/_pool.py,sha256=vdQAjA0J7X5aa5VldjqgMxTMqp2t_K9268obZDKeT3M,15598
8
+ wool/_queue.py,sha256=qiTIezBe7sYvNszSRGDilumE49wlO3VWyMA74PgofeU,978
9
+ wool/_session.py,sha256=Dv2hYLvfv_zCoiptt27o6GqZkgHZoNvak6pAIz7znaA,11842
10
+ wool/_task.py,sha256=FRWyLb2geFGJmUtdn7RO_xjJSrUU_1TMDA9Mc9tBB8Y,10954
11
+ wool/_typing.py,sha256=FmTNTqJtist1rlaVAVSyg12AW9RwqcbvqC4M1u88iSU,397
12
+ wool/_utils.py,sha256=dHhgCp51oGjvKYCOYBjgWj6C03k2ZvclalrCZ4hH3sU,1527
13
+ wool/_worker.py,sha256=bEjPOHciLjLc-R456sX6EoImq9CTEGaLiZOOZP1BJYI,6434
14
+ wool/_mempool/__init__.py,sha256=GxNfNqxs51zLqzN9KN_--srguiZUFgJlGartzrpWbxA,146
15
+ wool/_mempool/_client.py,sha256=y6on6QHgYcvOhG16iqFancNCGkUBR9YyG0TZfGlaMM4,5337
16
+ wool/_mempool/_mempool.py,sha256=azbnsTrzjClfTcdPcileV8XlanA5jzESbY9UwM7lJ3Q,8937
17
+ wool/_mempool/_metadata.py,sha256=pM8X43dMUS3VHwsxfi5LNFcAjy4PgAUzKew_2jRaTuw,806
18
+ wool/_mempool/_service.py,sha256=piH1b7cmyV2eiioZZHsHJt1mb7ebuC2OJTYZrueLeAQ,7902
19
+ wool/_protobuf/__init__.py,sha256=33GZvRmuc0oIWOGz3dYVvPTpG1zXQmB8uy9XWLPvQHE,283
20
+ wool/_protobuf/mempool/metadata_pb2.py,sha256=oOOhhFpekPUTPCq72x4c7FAQ2ZdaI5hs4uNUhAjLyWg,1439
21
+ wool/_protobuf/mempool/metadata_pb2.pyi,sha256=1ma_MYJSAH2Ub8VJxoy4A04Vz4FbVUCOBM5olRME2HA,652
22
+ wool/_protobuf/mempool/metadata_pb2_grpc.py,sha256=f82ZpRntCeag72dCPnxs4VH81PR5uVLyexu5-noMkcM,897
23
+ wool/_protobuf/mempool/service_pb2.py,sha256=o6tCJeRrotA6pbMgDCGOOAtPj6UowIijAl_Q38m1c8E,5132
24
+ wool/_protobuf/mempool/service_pb2.pyi,sha256=p06Jy4fLv91PHZln9rBnlaTvN7DRf3siZpTLDO6diEU,4083
25
+ wool/_protobuf/mempool/service_pb2_grpc.py,sha256=DvjTEJevuXXCmHrzgZqKgLAJzhElnDYXVyOfQPSV_Jo,13874
26
+ wool-0.1rc9.dist-info/METADATA,sha256=ysYMOctKoAMn8ev7WtY6FSM7HOtYg90zz-he4CgJhwg,17073
27
+ wool-0.1rc9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
+ wool-0.1rc9.dist-info/entry_points.txt,sha256=ybzb5TYXou-2cKC8HP5p0X8bw6Iyv7UMasqml6zlO1k,39
29
+ wool-0.1rc9.dist-info/RECORD,,
wool/_protobuf/.gitkeep DELETED
File without changes
@@ -1,23 +0,0 @@
1
- wool/__init__.py,sha256=I5_ROaxPM764bhVbirFqLN62TyFrwS8Z47IR7wN4e1k,1900
2
- wool/_cli.py,sha256=zLJqrT6nyLWNR83z40WsF279zJlE13UdDAhLuwoo50s,6565
3
- wool/_event.py,sha256=3fixaB2FN9Uetgkpwnw9MikohaRq2NwdnWEMFwPz3A4,2965
4
- wool/_future.py,sha256=Wn-wOuxfN9_R1-7wTzZGPUSl-IRYy5OM8ml68Ah6VuQ,4792
5
- wool/_logging.py,sha256=r4iLicEjuYo1P7GMs1OB0GkHo9NKAFocvoR3RAnvrRA,1262
6
- wool/_manager.py,sha256=QjYH73OPyTBeiOhJhbKJS9cPhuAIN2EOb14bUxZWI4o,4222
7
- wool/_pool.py,sha256=vdQAjA0J7X5aa5VldjqgMxTMqp2t_K9268obZDKeT3M,15598
8
- wool/_queue.py,sha256=qiTIezBe7sYvNszSRGDilumE49wlO3VWyMA74PgofeU,978
9
- wool/_session.py,sha256=Dv2hYLvfv_zCoiptt27o6GqZkgHZoNvak6pAIz7znaA,11842
10
- wool/_task.py,sha256=FRWyLb2geFGJmUtdn7RO_xjJSrUU_1TMDA9Mc9tBB8Y,10954
11
- wool/_typing.py,sha256=FmTNTqJtist1rlaVAVSyg12AW9RwqcbvqC4M1u88iSU,397
12
- wool/_utils.py,sha256=dHhgCp51oGjvKYCOYBjgWj6C03k2ZvclalrCZ4hH3sU,1527
13
- wool/_worker.py,sha256=bEjPOHciLjLc-R456sX6EoImq9CTEGaLiZOOZP1BJYI,6434
14
- wool/_mempool/__init__.py,sha256=gciN0LCV0G4cbJrL2rxmtu7e8lFJk8wCWqQQWpw5mOs,72
15
- wool/_mempool/_mempool.py,sha256=vG_mhrM2RtDHHfULDyK7Qti_qjbWuW-IjjbtFflkmXs,6618
16
- wool/_mempool/_metadata/__init__.py,sha256=5tojyNteoJto5tMhxpPj74Iiufa9I74Mbylcge5lTGQ,930
17
- wool/_protobuf/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
- wool/_protobuf/_mempool/_metadata/_metadata_pb2.py,sha256=PDMp6NwAod_r0vp0guO5aDrb8P_8ClT1KiNudqLb-rQ,1489
19
- wool/_protobuf/_mempool/_metadata/_metadata_pb2.pyi,sha256=Tp6EcQF0ScsT-lNG9844yfwTkDkQwtLkDn6u2gMbjfE,653
20
- wool-0.1rc7.dist-info/METADATA,sha256=3_7sv9XzIwJ9UQSJ8CqeZdVOnTANvTWw99xpO1JDHwc,16825
21
- wool-0.1rc7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
22
- wool-0.1rc7.dist-info/entry_points.txt,sha256=ybzb5TYXou-2cKC8HP5p0X8bw6Iyv7UMasqml6zlO1k,39
23
- wool-0.1rc7.dist-info/RECORD,,
File without changes