zeroc-ice 3.8.0__cp313-cp313-macosx_10_13_universal2.whl → 3.8.0.post1__cp313-cp313-macosx_10_13_universal2.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.
Files changed (53) hide show
  1. Ice/BTEndpointType.py +7 -0
  2. Ice/BTSEndpointType.py +7 -0
  3. Ice/Blobject.py +1 -1
  4. Ice/Communicator.py +130 -118
  5. Ice/CompressBatch.py +12 -12
  6. Ice/Current.py +5 -6
  7. Ice/EndpointSelectionType.py +8 -8
  8. Ice/EventLoopAdapter.py +4 -4
  9. Ice/Exception.py +6 -8
  10. Ice/FormatType.py +8 -1
  11. Ice/Future.py +78 -78
  12. Ice/IcePyTypes.py +2 -0
  13. Ice/ImplicitContext.py +28 -35
  14. Ice/InitializationData.py +23 -22
  15. Ice/InvocationFuture.py +31 -34
  16. Ice/LocalException.py +1 -1
  17. Ice/LocalExceptions.py +82 -94
  18. Ice/LogMessageType.py +16 -15
  19. Ice/Logger.py +10 -10
  20. Ice/Object.py +22 -17
  21. Ice/ObjectAdapter.py +200 -167
  22. Ice/ObjectPrx.py +196 -202
  23. Ice/OperationMode.py +19 -14
  24. Ice/ProcessLogger.py +18 -2
  25. Ice/Properties.py +63 -79
  26. Ice/Proxy.py +73 -10
  27. Ice/ReplyStatus.py +42 -35
  28. Ice/SSLEndpointType.py +7 -0
  29. Ice/ServantLocator.py +30 -35
  30. Ice/SliceInfo.py +3 -3
  31. Ice/SlicedData.py +1 -1
  32. Ice/TCPEndpointType.py +7 -0
  33. Ice/ToStringMode.py +19 -19
  34. Ice/UDPEndpointType.py +7 -0
  35. Ice/URIEndpointType.py +7 -0
  36. Ice/UnknownSlicedValue.py +11 -3
  37. Ice/UserException.py +1 -1
  38. Ice/Util.py +27 -26
  39. Ice/Value.py +7 -7
  40. Ice/WSEndpointType.py +7 -0
  41. Ice/WSSEndpointType.py +7 -0
  42. Ice/__init__.py +2 -0
  43. Ice/iAPEndpointType.py +7 -0
  44. Ice/iAPSEndpointType.py +7 -0
  45. IceGrid/LoadSample.py +12 -12
  46. IceGrid/ServerState.py +29 -25
  47. IcePy-stubs/__init__.pyi +151 -152
  48. IcePy.cpython-313-darwin.so +0 -0
  49. {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/METADATA +1 -1
  50. {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/RECORD +53 -53
  51. {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/WHEEL +0 -0
  52. {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/entry_points.txt +0 -0
  53. {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/top_level.txt +0 -0
IcePy-stubs/__init__.pyi CHANGED
@@ -22,8 +22,8 @@ class AsyncInvocationContext:
22
22
 
23
23
  class BatchRequest:
24
24
  """
25
- Represents a batch request. A batch request is created by invoking an operation on a batch-oneway or
26
- batch-datagram proxy.
25
+ Represents a batch request.
26
+ A batch request is created by invoking an operation on a batch-oneway or batch-datagram proxy.
27
27
  """
28
28
 
29
29
  def enqueue(self) -> None:
@@ -140,8 +140,37 @@ class Connection:
140
140
  """
141
141
  Disables the inactivity check on this connection.
142
142
 
143
- By default, Ice will close connections that remain idle for a
144
- certain period. This method disables that behavior for this connection.
143
+ By default, Ice will close connections that remain inactive for a certain period.
144
+ This function disables that behavior for this connection.
145
+ """
146
+ ...
147
+
148
+ def setAdapter(self, adapter: Ice.ObjectAdapter | None) -> None:
149
+ """
150
+ Associates an object adapter with this connection.
151
+
152
+ When a connection receives a request, it dispatches this request using its associated object adapter.
153
+ If the associated object adapter is ``None``, the connection rejects any incoming request with an
154
+ :class:`ObjectNotExistException`.
155
+
156
+ The default object adapter of an incoming connection is the object adapter that created this connection;
157
+ the default object adapter of an outgoing connection is the communicator's default object adapter.
158
+
159
+ Parameters
160
+ ----------
161
+ adapter : Ice.ObjectAdapter | None
162
+ The object adapter to associate with this connection.
163
+ """
164
+ ...
165
+
166
+ def getAdapter(self) -> Ice.ObjectAdapter | None:
167
+ """
168
+ Gets the object adapter associated with this connection.
169
+
170
+ Returns
171
+ -------
172
+ Ice.ObjectAdapter | None
173
+ The object adapter associated with this connection.
145
174
  """
146
175
  ...
147
176
 
@@ -149,14 +178,12 @@ class Connection:
149
178
  """
150
179
  Flushes any pending batch requests for this connection.
151
180
 
152
- This corresponds to all batch requests invoked on fixed proxies
153
- associated with the connection.
181
+ This corresponds to all batch requests invoked on fixed proxies associated with the connection.
154
182
 
155
183
  Parameters
156
184
  ----------
157
185
  compress : Ice.CompressBatch
158
- Specifies whether or not the queued batch requests should be
159
- compressed before being sent over the wire.
186
+ Specifies whether or not the queued batch requests should be compressed before being sent over the wire.
160
187
  """
161
188
  ...
162
189
 
@@ -167,14 +194,12 @@ class Connection:
167
194
  """
168
195
  Flushes any pending batch requests for this connection asynchronously.
169
196
 
170
- This corresponds to all batch requests invoked on fixed proxies
171
- associated with the connection.
197
+ This corresponds to all batch requests invoked on fixed proxies associated with the connection.
172
198
 
173
199
  Parameters
174
200
  ----------
175
201
  compress : Ice.CompressBatch
176
- Specifies whether or not the queued batch requests should be
177
- compressed before being sent over the wire.
202
+ Specifies whether or not the queued batch requests should be compressed before being sent over the wire.
178
203
 
179
204
  Returns
180
205
  -------
@@ -183,25 +208,41 @@ class Connection:
183
208
  """
184
209
  ...
185
210
 
186
- def getAdapter(self) -> Ice.ObjectAdapter | None:
211
+ def setCloseCallback(self, callback: Callable[[Connection], None]) -> None:
187
212
  """
188
- Gets the object adapter associated with this connection.
213
+ Sets a close callback on the connection. The callback is called by the connection when it's closed.
214
+ The callback is called from the Ice thread pool associated with the connection.
215
+
216
+ Parameters
217
+ ----------
218
+ callback : Callable[[Connection], None]
219
+ The close callback callable.
220
+ """
221
+ ...
222
+
223
+ def type(self) -> str:
224
+ """
225
+ Returns the connection type. This corresponds to the endpoint type, such as 'tcp', 'udp', etc.
189
226
 
190
227
  Returns
191
228
  -------
192
- Ice.ObjectAdapter or None
193
- The object adapter associated with this connection.
229
+ str
230
+ The type of the connection.
194
231
  """
195
232
  ...
196
233
 
197
- def getEndpoint(self) -> Endpoint:
234
+ def toString(self) -> str:
198
235
  """
199
- Gets the endpoint from which the connection was created.
236
+ Returns a description of the connection as human readable text, suitable for logging or error messages.
237
+
238
+ Notes
239
+ -----
240
+ This function remains usable after the connection is closed or aborted.
200
241
 
201
242
  Returns
202
243
  -------
203
- Ice.Endpoint
204
- The endpoint from which the connection was created.
244
+ str
245
+ The description of the connection as human readable text.
205
246
  """
206
247
  ...
207
248
 
@@ -216,18 +257,14 @@ class Connection:
216
257
  """
217
258
  ...
218
259
 
219
- def setAdapter(self, adapter: Ice.ObjectAdapter | None) -> None:
260
+ def getEndpoint(self) -> Endpoint:
220
261
  """
221
- Associates an object adapter with this connection.
222
-
223
- When a connection receives a request, it dispatches this request using
224
- its associated object adapter. If the associated object adapter is None,
225
- the connection rejects any incoming request with an ObjectNotExistException.
262
+ Gets the endpoint from which the connection was created.
226
263
 
227
- Parameters
228
- ----------
229
- adapter : Ice.ObjectAdapter or None
230
- The object adapter to associate with this connection.
264
+ Returns
265
+ -------
266
+ Ice.Endpoint
267
+ The endpoint from which the connection was created.
231
268
  """
232
269
  ...
233
270
 
@@ -244,55 +281,12 @@ class Connection:
244
281
  """
245
282
  ...
246
283
 
247
- def setCloseCallback(self, callback: Callable[[Connection], None]) -> None:
248
- """
249
- Sets a close callback on the connection.
250
-
251
- The callback is called by the connection when it's closed. The callback
252
- is called from the Ice thread pool associated with the connection.
253
-
254
- Parameters
255
- ----------
256
- callback : Callable
257
- The close callback function.
258
- """
259
- ...
260
-
261
284
  def throwException(self) -> None:
262
285
  """
263
- Throws an exception that provides the reason for the closure of this connection.
264
-
265
- For example, this function throws CloseConnectionException when the connection
266
- was closed gracefully by the peer; it throws ConnectionAbortedException when
267
- the connection is aborted. This function does nothing if the connection is
268
- not yet closed.
269
- """
270
- ...
271
-
272
- def toString(self) -> str:
273
- """
274
- Returns a description of the connection as human readable text.
275
-
276
- This function is suitable for logging or error messages and remains
277
- usable after the connection is closed or aborted.
278
-
279
- Returns
280
- -------
281
- str
282
- The description of the connection as human readable text.
283
- """
284
- ...
285
-
286
- def type(self) -> str:
287
- """
288
- Returns the connection type.
289
-
290
- This corresponds to the endpoint type, such as 'tcp', 'udp', etc.
291
-
292
- Returns
293
- -------
294
- str
295
- The type of the connection.
286
+ Raises an exception that provides the reason for the closure of this connection. For example,
287
+ this function raises :class:`CloseConnectionException` when the connection was closed gracefully by the peer;
288
+ it raises :class:`ConnectionAbortedException` when the connection is aborted with :func:`abort`.
289
+ This function does nothing if the connection is not yet closed.
296
290
  """
297
291
  ...
298
292
 
@@ -307,49 +301,51 @@ class Connection:
307
301
  class ConnectionInfo:
308
302
  """
309
303
  Base class for all connection info classes.
310
-
311
- Connection info classes provide access to the connection details.
312
- They are used to get information about the connection, such as
313
- whether it's incoming or outgoing, the adapter name, and connection ID.
314
304
  """
315
305
 
316
306
  underlying: ConnectionInfo | None
317
- """Ice.ConnectionInfo | None: underlying connection information"""
318
-
319
- adapterName: str
320
- """str: adapter associated with the connection"""
307
+ """
308
+ ConnectionInfo | None: The information of the underlying transport or ``None`` if there's no underlying transport.
309
+ """
321
310
 
322
311
  incoming: bool
323
- """bool: whether connection is incoming"""
312
+ """bool: ``True`` if this is an incoming connection, ``False`` otherwise."""
313
+
314
+ adapterName: str
315
+ """str: The name of the adapter associated with the connection."""
324
316
 
325
317
  class DispatchCallback:
326
318
  def response(self, *args: tuple) -> None: ...
327
319
  def exception(self, exception: BaseException) -> None: ...
328
320
 
329
321
  class Endpoint:
330
- """IcePy.Endpoint"""
322
+ """
323
+ An endpoint specifies the address of the server-end of an Ice connection.
324
+ An object adapter listens on one or more endpoints and a client establishes a connection to an endpoint.
325
+ """
331
326
 
332
- def getInfo(self) -> EndpointInfo:
327
+ def toString(self) -> str:
333
328
  """
334
- Returns the endpoint information.
329
+ Returns a string representation of this endpoint.
335
330
 
336
331
  Returns
337
332
  -------
338
- Ice.EndpointInfo
339
- The endpoint information class.
333
+ str
334
+ The string representation of this endpoint.
340
335
  """
341
336
  ...
342
337
 
343
- def toString(self) -> str:
338
+ def getInfo(self) -> EndpointInfo:
344
339
  """
345
- Returns a string representation of this endpoint.
340
+ Returns this endpoint's information.
346
341
 
347
342
  Returns
348
343
  -------
349
- str
350
- The string representation of this endpoint.
344
+ Ice.EndpointInfo
345
+ This endpoint's information class.
351
346
  """
352
347
  ...
348
+
353
349
  def __eq__(self, other: object) -> bool: ...
354
350
  def __ge__(self, other: object) -> bool: ...
355
351
  def __gt__(self, other: object) -> bool: ...
@@ -359,48 +355,45 @@ class Endpoint:
359
355
 
360
356
  class EndpointInfo:
361
357
  """
362
- Base class for all endpoint info classes.
363
-
364
- Provides access to the endpoint details. Endpoint info classes are used to get information about the endpoints
365
- that a connection or proxy uses.
358
+ Base class for the endpoint info classes.
366
359
  """
367
360
 
368
361
  underlying: EndpointInfo | None
369
- """Ice.EndpointInfo | None: underlying endpoint information"""
362
+ """The information of the underlying endpoint or ``None`` if there's no underlying endpoint."""
370
363
 
371
364
  compress: bool
372
- """bool: compression status"""
365
+ """Specifies whether or not compression should be used if available when using this endpoint."""
373
366
 
374
- def datagram(self) -> bool:
367
+ def type(self) -> int:
375
368
  """
376
- Returns True if this endpoint's transport is a datagram transport (namely, UDP), False otherwise.
369
+ Returns the type of the endpoint.
377
370
 
378
371
  Returns
379
372
  -------
380
- bool
381
- True for a UDP endpoint, False otherwise.
373
+ int
374
+ The endpoint type.
382
375
  """
383
376
  ...
384
377
 
385
- def secure(self) -> bool:
378
+ def datagram(self) -> bool:
386
379
  """
387
- Returns True if this endpoint's transport uses SSL, False otherwise.
380
+ Returns whether this endpoint is a datagram endpoint (namely, UDP).
388
381
 
389
382
  Returns
390
383
  -------
391
384
  bool
392
- True for SSL and SSL-based transports, False otherwise.
385
+ ``True`` for a UDP endpoint, ``False`` otherwise.
393
386
  """
394
387
  ...
395
388
 
396
- def type(self) -> int:
389
+ def secure(self) -> bool:
397
390
  """
398
- Returns the type of the endpoint.
391
+ Returns whether this endpoint uses SSL.
399
392
 
400
393
  Returns
401
394
  -------
402
- int
403
- The endpoint type.
395
+ bool
396
+ ``True`` for SSL and SSL-based transports, ``False`` otherwise.
404
397
  """
405
398
  ...
406
399
 
@@ -411,28 +404,28 @@ class IPConnectionInfo(ConnectionInfo):
411
404
  """Provides access to the connection details of an IP connection."""
412
405
 
413
406
  localAddress: str
414
- """str: local address"""
407
+ """str: The local address."""
415
408
 
416
409
  localPort: int
417
- """int: local port"""
410
+ """int: The local port."""
418
411
 
419
412
  remoteAddress: str
420
- """str: remote address"""
413
+ """str: The remote address."""
421
414
 
422
415
  remotePort: int
423
- """int: remote port"""
416
+ """int: The remote port."""
424
417
 
425
418
  class IPEndpointInfo(EndpointInfo):
426
419
  """Provides access to the address details of an IP endpoint."""
427
420
 
428
421
  host: str
429
- """str: host name or IP address"""
422
+ """str: The host or address configured with the endpoint."""
430
423
 
431
424
  port: int
432
- """int: TCP port number"""
425
+ """int: The port number."""
433
426
 
434
427
  sourceAddress: str
435
- """str: source IP address"""
428
+ """str: The source IP address."""
436
429
 
437
430
  class ImplicitContext:
438
431
  def containsKey(self, key: str) -> bool: ...
@@ -457,7 +450,9 @@ class Logger:
457
450
  def warning(self, message: str) -> None: ...
458
451
 
459
452
  class NativePropertiesAdmin:
460
- """The default implementation for the 'Properties' admin facet."""
453
+ """
454
+ The default implementation of the 'Properties' admin facet.
455
+ """
461
456
 
462
457
  def addUpdateCallback(self, callback: Callable[[dict[str, str]], None]) -> None:
463
458
  """
@@ -465,8 +460,8 @@ class NativePropertiesAdmin:
465
460
 
466
461
  Parameters
467
462
  ----------
468
- callback : Callable
469
- The callback function.
463
+ callback : Callable[[dict[str, str]], None]
464
+ The callback.
470
465
  """
471
466
  ...
472
467
 
@@ -476,8 +471,8 @@ class NativePropertiesAdmin:
476
471
 
477
472
  Parameters
478
473
  ----------
479
- callback : Callable
480
- The callback function to remove.
474
+ callback : Callable[[dict[str, str]], None]
475
+ The callback to remove.
481
476
  """
482
477
  ...
483
478
 
@@ -588,10 +583,10 @@ class OpaqueEndpointInfo(EndpointInfo):
588
583
  """Provides access to the details of an opaque endpoint."""
589
584
 
590
585
  rawBytes: bytes
591
- """bytes: raw encoding"""
586
+ """bytes: The raw encoding of the opaque endpoint."""
592
587
 
593
588
  rawEncoding: Ice.EncodingVersion
594
- """Ice.EncodingVersion: raw encoding version"""
589
+ """Ice.EncodingVersion: The encoding version of the opaque endpoint (to decode or encode the ``rawBytes``)."""
595
590
 
596
591
  class Operation:
597
592
  def __init__(
@@ -606,33 +601,33 @@ class Operation:
606
601
  return_type: Any,
607
602
  exceptions: tuple,
608
603
  ) -> None: ...
609
- def deprecate(self, reason: str): ...
610
604
  def invoke(self, proxy: ObjectPrx, args: tuple) -> Any: ...
611
605
  def invokeAsync(self, proxy: ObjectPrx, args: tuple) -> Awaitable[Any]: ...
606
+ def deprecate(self, reason: str): ...
612
607
 
613
608
  class Properties:
614
- def clone(self) -> Properties: ...
615
- def getCommandLineOptions(self) -> list[str]: ...
609
+ def getProperty(self, key: str) -> str: ...
616
610
  def getIceProperty(self, key: str) -> str: ...
611
+ def getPropertyWithDefault(self, key: str, value: str) -> str: ...
612
+ def getPropertyAsInt(self, key: str) -> int: ...
617
613
  def getIcePropertyAsInt(self, key: str) -> int: ...
614
+ def getPropertyAsIntWithDefault(self, key: str, value: int) -> int: ...
615
+ def getPropertyAsList(self, key: str) -> list[str]: ...
618
616
  def getIcePropertyAsList(self, key: str) -> list[str]: ...
617
+ def getPropertyAsListWithDefault(self, key: str, value: list[str]) -> list[str]: ...
619
618
  def getPropertiesForPrefix(self, prefix: str) -> dict[str, str]: ...
620
- def getProperty(self, key: str) -> str: ...
621
- def getPropertyAsInt(self, key: str) -> int: ...
622
- def getPropertyAsIntWithDefault(self, key: str, default: int) -> int: ...
623
- def getPropertyAsList(self, key: str) -> list[str]: ...
624
- def getPropertyAsListWithDefault(self, key: str, default: list[str]) -> list[str]: ...
625
- def getPropertyWithDefault(self, key: str, default: str) -> str: ...
626
- def load(self, file: str) -> None: ...
619
+ def setProperty(self, key: str, value: str) -> None: ...
620
+ def getCommandLineOptions(self) -> list[str]: ...
627
621
  def parseCommandLineOptions(self, prefix: str, options: list[str]) -> list[str]: ...
628
622
  def parseIceCommandLineOptions(self, options: list[str]) -> list[str]: ...
629
- def setProperty(self, key: str, value: str) -> None: ...
623
+ def load(self, file: str) -> None: ...
624
+ def clone(self) -> Properties: ...
630
625
 
631
626
  class SSLConnectionInfo(ConnectionInfo):
632
627
  """Provides access to the connection details of an SSL connection."""
633
628
 
634
629
  peerCertificate: str
635
- """str: peer certificate"""
630
+ """str: The certificate chain."""
636
631
 
637
632
  class SSLEndpointInfo(EndpointInfo):
638
633
  """Provides access to an SSL endpoint information."""
@@ -643,10 +638,10 @@ class TCPConnectionInfo(IPConnectionInfo):
643
638
  """Provides access to the connection details of a TCP connection."""
644
639
 
645
640
  rcvSize: int
646
- """int: receive buffer size"""
641
+ """int: The size of the receive buffer."""
647
642
 
648
643
  sndSize: int
649
- """int: send buffer size"""
644
+ """int: The size of the send buffer."""
650
645
 
651
646
  class TCPEndpointInfo(IPEndpointInfo):
652
647
  """Provides access to a TCP endpoint information."""
@@ -657,47 +652,51 @@ class UDPConnectionInfo(IPConnectionInfo):
657
652
  """Provides access to the connection details of a UDP connection."""
658
653
 
659
654
  mcastAddress: str
660
- """str: multicast address"""
655
+ """str: The multicast address."""
661
656
 
662
657
  mcastPort: int
663
- """int: multicast port"""
658
+ """int: The multicast port."""
664
659
 
665
660
  rcvSize: int
666
- """int: receive buffer size"""
661
+ """int: The size of the receive buffer."""
667
662
 
668
663
  sndSize: int
669
- """int: send buffer size"""
664
+ """int: The size of the send buffer."""
670
665
 
671
666
  class UDPEndpointInfo(IPEndpointInfo):
672
- """Provides access to an UDP endpoint information."""
667
+ """Provides access to a UDP endpoint information."""
673
668
 
674
669
  mcastInterface: str
675
- """str: multicast interface"""
670
+ """str: The multicast interface."""
676
671
 
677
672
  mcastTtl: int
678
- """int: multicast time-to-live"""
673
+ """int: The multicast time-to-live (or hops)."""
679
674
 
680
675
  class WSConnectionInfo(ConnectionInfo):
681
676
  """Provides access to the connection details of a WebSocket connection."""
682
677
 
683
678
  headers: dict[str, str]
684
- """dict[str, str]: request headers"""
679
+ """dict[str, str]: The headers from the HTTP upgrade request."""
685
680
 
686
681
  class WSEndpointInfo(EndpointInfo):
687
682
  """Provides access to a WebSocket endpoint information."""
688
683
 
689
684
  resource: str
690
- """str: resource"""
685
+ """str: The URI configured with the endpoint."""
691
686
 
692
- def compileSlice(args: list[str]) -> int: ...
693
- def createProperties(args: list[str] | None, defaults: Ice.Properties | None): ...
694
687
  def stringVersion() -> str: ...
695
688
  def intVersion() -> int: ...
689
+ def createProperties(args: list[str] | None = None, defaults: Ice.Properties | None = None) -> Properties: ...
690
+ def stringToIdentity(str: str) -> Ice.Identity: ...
696
691
  def identityToString(identity: Ice.Identity, toStringMode: Ice.ToStringMode | None = None) -> str: ...
697
692
  def getProcessLogger() -> Ice.Logger: ...
698
693
  def setProcessLogger(logger: Ice.Logger) -> None: ...
694
+
695
+ #
696
+ # Functions to load/compile Slice definitions with 'slice2py'.
697
+ #
699
698
  def loadSlice(args: list[str]) -> None: ...
700
- def stringToIdentity(str: str) -> Ice.Identity: ...
699
+ def compileSlice(args: list[str]) -> int: ...
701
700
 
702
701
  #
703
702
  # Internal API for IcePy
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zeroc-ice
3
- Version: 3.8.0
3
+ Version: 3.8.0.post1
4
4
  Summary: Ice is a comprehensive RPC framework with support for Python, C++, .NET, Java, JavaScript and more.
5
5
  Author-email: "ZeroC, Inc." <info@zeroc.com>
6
6
  License-Expression: GPL-2.0-only