moat-lib-stream 0.3.1__tar.gz → 0.3.2__tar.gz

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 (27) hide show
  1. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/PKG-INFO +1 -1
  2. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/debian/changelog +6 -0
  3. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/pyproject.toml +1 -1
  4. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/anyio.py +3 -2
  5. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/reliable.py +5 -2
  6. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/serial.py +2 -2
  7. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat_lib_stream.egg-info/PKG-INFO +1 -1
  8. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/LICENSE.txt +0 -0
  9. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/README.md +0 -0
  10. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/debian/.gitignore +0 -0
  11. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/debian/control +0 -0
  12. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/debian/rules +0 -0
  13. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/setup.cfg +0 -0
  14. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/__init__.py +0 -0
  15. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/_cbor.py +0 -0
  16. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/_console.py +0 -0
  17. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/base.py +0 -0
  18. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/cbor.py +0 -0
  19. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/log.py +0 -0
  20. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/tcp.py +0 -0
  21. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/terminal.py +0 -0
  22. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/unix.py +0 -0
  23. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat/lib/stream/ws.py +0 -0
  24. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat_lib_stream.egg-info/SOURCES.txt +0 -0
  25. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat_lib_stream.egg-info/dependency_links.txt +0 -0
  26. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat_lib_stream.egg-info/requires.txt +0 -0
  27. {moat_lib_stream-0.3.1 → moat_lib_stream-0.3.2}/src/moat_lib_stream.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moat-lib-stream
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Stream infrastructure for MoaT applications
5
5
  Maintainer-email: Matthias Urlichs <matthias@urlichs.de>
6
6
  Project-URL: homepage, https://m-o-a-t.org
@@ -1,3 +1,9 @@
1
+ moat-lib-stream (0.3.2-1) unstable; urgency=medium
2
+
3
+ * New release for 26.1.10
4
+
5
+ -- Matthias Urlichs <matthias@urlichs.de> Thu, 23 Apr 2026 21:17:15 +0200
6
+
1
7
  moat-lib-stream (0.3.1-1) unstable; urgency=medium
2
8
 
3
9
  * New release for 26.1.7
@@ -24,7 +24,7 @@ name = "moat-lib-stream"
24
24
  maintainers = [{email = "matthias@urlichs.de",name = "Matthias Urlichs"}]
25
25
  description='Stream infrastructure for MoaT applications'
26
26
  readme = "README.md"
27
- version = "0.3.1"
27
+ version = "0.3.2"
28
28
 
29
29
  [project.urls]
30
30
  homepage = "https://m-o-a-t.org"
@@ -22,6 +22,7 @@ from typing import TYPE_CHECKING, Any, cast # isort:skip
22
22
  if TYPE_CHECKING:
23
23
  from moat.lib.rpc import SubMsgSender
24
24
  from moat.lib.stream.base import Buffer, MutBuffer
25
+ from types import TracebackType
25
26
 
26
27
 
27
28
  class ProcessDeadError(RuntimeError):
@@ -174,8 +175,8 @@ class BufAnyio(ByteStream):
174
175
  async def __aenter__(self):
175
176
  self.s = await self.stream.__aenter__()
176
177
 
177
- async def __aexit__(self, *tb):
178
- return await self.stream.__aexit__(*tb)
178
+ async def __aexit__(self, exc_type: type[BaseException] | None,exc_val: BaseException | None,exc_tb: TracebackType | None) -> None:
179
+ await self.stream.__aexit__(exc_type,exc_val,exc_tb)
179
180
 
180
181
  async def receive(self, max_bytes=256):
181
182
  "forward to ``.rd``"
@@ -28,6 +28,7 @@ from typing import TYPE_CHECKING
28
28
 
29
29
  if TYPE_CHECKING:
30
30
  from typing import Any # isort:skip
31
+ from types import TracebackType
31
32
 
32
33
 
33
34
  class EphemeralMsg:
@@ -294,11 +295,13 @@ class ReliableMsg(StackedMsg):
294
295
  await AC_exit(self, type(exc), exc, None)
295
296
  raise
296
297
 
297
- async def __aexit__(self, *err):
298
+ async def __aexit__(self, exc_type: type[BaseException] | None,
299
+ exc: BaseException | None,
300
+ tb: TracebackType | None) -> bool|None:
298
301
  if self._tg is not None:
299
302
  self._tg.cancel()
300
303
  self._tg = None
301
- return await AC_exit(self, *err)
304
+ return await AC_exit(self, exc_type,exc,tb)
302
305
 
303
306
  async def _mon(self):
304
307
  while True:
@@ -13,7 +13,7 @@ from typing import TYPE_CHECKING, cast
13
13
 
14
14
  if TYPE_CHECKING:
15
15
  from moat.util import attrdict
16
- from moat.lib.stream.base import Buffer
16
+ from moat.lib.stream.base import Buffer, MutBuffer
17
17
 
18
18
 
19
19
  class SerialPackerBlkBuf(StackedBlk):
@@ -39,7 +39,7 @@ class SerialPackerBlkBuf(StackedBlk):
39
39
  if console:
40
40
  _CReader.__init__(cast(_CReader, self), console)
41
41
 
42
- async def crd(self, buf: bytearray) -> int:
42
+ async def crd(self, buf: MutBuffer) -> int:
43
43
  "console read"
44
44
  if not self.cons:
45
45
  raise EOFError
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moat-lib-stream
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Stream infrastructure for MoaT applications
5
5
  Maintainer-email: Matthias Urlichs <matthias@urlichs.de>
6
6
  Project-URL: homepage, https://m-o-a-t.org