moat-lib-stream 0.3.0__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.
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/PKG-INFO +1 -1
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/debian/changelog +18 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/pyproject.toml +1 -1
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/anyio.py +3 -2
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/reliable.py +6 -3
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/serial.py +2 -2
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat_lib_stream.egg-info/PKG-INFO +1 -1
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/LICENSE.txt +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/README.md +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/debian/.gitignore +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/debian/control +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/debian/rules +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/setup.cfg +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/__init__.py +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/_cbor.py +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/_console.py +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/base.py +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/cbor.py +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/log.py +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/tcp.py +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/terminal.py +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/unix.py +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat/lib/stream/ws.py +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat_lib_stream.egg-info/SOURCES.txt +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat_lib_stream.egg-info/dependency_links.txt +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat_lib_stream.egg-info/requires.txt +0 -0
- {moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat_lib_stream.egg-info/top_level.txt +0 -0
|
@@ -1,3 +1,21 @@
|
|
|
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
|
+
|
|
7
|
+
moat-lib-stream (0.3.1-1) unstable; urgency=medium
|
|
8
|
+
|
|
9
|
+
* New release for 26.1.7
|
|
10
|
+
|
|
11
|
+
-- Matthias Urlichs <matthias@urlichs.de> Wed, 15 Apr 2026 16:36:10 +0200
|
|
12
|
+
|
|
13
|
+
moat-lib-stream (0.3.0-2) unstable; urgency=medium
|
|
14
|
+
|
|
15
|
+
* New release for 26.0.12
|
|
16
|
+
|
|
17
|
+
-- Matthias Urlichs <matthias@urlichs.de> Wed, 04 Mar 2026 11:02:05 +0100
|
|
18
|
+
|
|
1
19
|
moat-lib-stream (0.3.0-1) unstable; urgency=medium
|
|
2
20
|
|
|
3
21
|
* New release for 26.0.11
|
|
@@ -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.
|
|
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,
|
|
178
|
-
|
|
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,
|
|
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,
|
|
304
|
+
return await AC_exit(self, exc_type,exc,tb)
|
|
302
305
|
|
|
303
306
|
async def _mon(self):
|
|
304
307
|
while True:
|
|
@@ -369,7 +372,7 @@ class ReliableMsg(StackedMsg):
|
|
|
369
372
|
try:
|
|
370
373
|
await self.s.send(msg)
|
|
371
374
|
except AttributeError:
|
|
372
|
-
|
|
375
|
+
pass # closing. XXX should not happen
|
|
373
376
|
except TypeError:
|
|
374
377
|
if len(msg) > 1:
|
|
375
378
|
msg = [msg[0], repr(err)]
|
|
@@ -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:
|
|
42
|
+
async def crd(self, buf: MutBuffer) -> int:
|
|
43
43
|
"console read"
|
|
44
44
|
if not self.cons:
|
|
45
45
|
raise EOFError
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moat_lib_stream-0.3.0 → moat_lib_stream-0.3.2}/src/moat_lib_stream.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|