moat-lib-micro 0.3.2__tar.gz → 0.3.4__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_micro-0.3.2/src/moat_lib_micro.egg-info → moat_lib_micro-0.3.4}/PKG-INFO +1 -1
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/debian/changelog +6 -0
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/debian/control +1 -2
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/pyproject.toml +1 -1
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/src/moat/lib/micro/__init__.py +14 -12
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4/src/moat_lib_micro.egg-info}/PKG-INFO +1 -1
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/LICENSE.txt +0 -0
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/Makefile +0 -0
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/README.md +0 -0
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/debian/.gitignore +0 -0
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/debian/rules +0 -0
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/setup.cfg +0 -0
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/src/moat_lib_micro.egg-info/SOURCES.txt +0 -0
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/src/moat_lib_micro.egg-info/dependency_links.txt +0 -0
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/src/moat_lib_micro.egg-info/requires.txt +0 -0
- {moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/src/moat_lib_micro.egg-info/top_level.txt +0 -0
|
@@ -2,12 +2,11 @@ Source: moat-lib-micro
|
|
|
2
2
|
Maintainer: "Matthias Urlichs" <matthias@urlichs.de>
|
|
3
3
|
Section: python
|
|
4
4
|
Priority: optional
|
|
5
|
-
Build-Depends: dh-python, python3-all, debhelper (>= 13),
|
|
5
|
+
Build-Depends: dh-python, python3-all, debhelper (>= 13), debhelper-compat (= 13),
|
|
6
6
|
python3-setuptools,
|
|
7
7
|
python3-wheel,
|
|
8
8
|
Standards-Version: 3.9.6
|
|
9
9
|
Homepage: https://m-o-a-t.org
|
|
10
|
-
X-DH-Compat: 13
|
|
11
10
|
|
|
12
11
|
Package: python3-moat-lib-micro
|
|
13
12
|
Architecture: all
|
|
@@ -21,7 +21,7 @@ name = "moat-lib-micro"
|
|
|
21
21
|
maintainers = [{email = "matthias@urlichs.de",name = "Matthias Urlichs"}]
|
|
22
22
|
description='Compatibility layer for CPython/anyio and MicroPython/uasyncio'
|
|
23
23
|
readme = "README.md"
|
|
24
|
-
version = "0.3.
|
|
24
|
+
version = "0.3.4"
|
|
25
25
|
|
|
26
26
|
[project.urls]
|
|
27
27
|
homepage = "https://m-o-a-t.org"
|
|
@@ -26,6 +26,7 @@ from moat.util import Queue as _Queue
|
|
|
26
26
|
from moat.util import QueueEmpty, QueueFull, merge
|
|
27
27
|
|
|
28
28
|
from collections.abc import ( # noqa: TC002
|
|
29
|
+
AsyncGenerator,
|
|
29
30
|
AsyncIterator,
|
|
30
31
|
Iterable,
|
|
31
32
|
Mapping,
|
|
@@ -50,7 +51,7 @@ if TYPE_CHECKING:
|
|
|
50
51
|
@overload
|
|
51
52
|
def __call__(
|
|
52
53
|
self, t: float, p: None = None, /, *a: Any, **k: Any
|
|
53
|
-
) ->
|
|
54
|
+
) -> AsyncGenerator[None, None]: ...
|
|
54
55
|
|
|
55
56
|
@overload
|
|
56
57
|
def __call__(
|
|
@@ -60,7 +61,7 @@ if TYPE_CHECKING:
|
|
|
60
61
|
/,
|
|
61
62
|
*a: P.args,
|
|
62
63
|
**k: P.kwargs,
|
|
63
|
-
) ->
|
|
64
|
+
) -> AsyncGenerator[R | None, None]: ...
|
|
64
65
|
|
|
65
66
|
class _RunProto(Protocol):
|
|
66
67
|
def __call__(
|
|
@@ -92,18 +93,18 @@ if TYPE_CHECKING:
|
|
|
92
93
|
|
|
93
94
|
async def spawn(
|
|
94
95
|
self,
|
|
95
|
-
p: Callable[
|
|
96
|
-
*a:
|
|
97
|
-
_name: str | None = None,
|
|
98
|
-
**k:
|
|
96
|
+
p: Callable[..., Awaitable[Any]],
|
|
97
|
+
*a: Any,
|
|
98
|
+
_name: str | None = None,
|
|
99
|
+
**k: Any,
|
|
99
100
|
) -> _anyio.CancelScope: ...
|
|
100
101
|
|
|
101
102
|
def start_soon(
|
|
102
103
|
self,
|
|
103
|
-
p: Callable[
|
|
104
|
-
*a:
|
|
105
|
-
_name: str | None = None,
|
|
106
|
-
**k:
|
|
104
|
+
p: Callable[..., Awaitable[Any]],
|
|
105
|
+
*a: Any,
|
|
106
|
+
_name: str | None = None,
|
|
107
|
+
**k: Any,
|
|
107
108
|
) -> None: ...
|
|
108
109
|
|
|
109
110
|
def cancel(self) -> None: ...
|
|
@@ -321,7 +322,7 @@ async def wait_for_ms(timeout: float, p: Callable[..., Awaitable[R]], *a, **k) -
|
|
|
321
322
|
|
|
322
323
|
async def every_ms(
|
|
323
324
|
t: float, p: Callable[..., Awaitable[R]] | None = None, *a, **k
|
|
324
|
-
) ->
|
|
325
|
+
) -> AsyncGenerator[R | None, None]:
|
|
325
326
|
"every t milliseconds, call ``p(*a,**k)``"
|
|
326
327
|
tt = ticks_add(ticks_ms(), int(t))
|
|
327
328
|
while True:
|
|
@@ -339,7 +340,7 @@ async def every_ms(
|
|
|
339
340
|
tt = ticks_add(tn, int(t))
|
|
340
341
|
|
|
341
342
|
|
|
342
|
-
def every(t: float, *a, **k) ->
|
|
343
|
+
def every(t: float, *a, **k) -> AsyncGenerator[Any, None]:
|
|
343
344
|
"every t seconds, call ``p(*a,**k)``"
|
|
344
345
|
return every_ms(t * 1000, *a, **k)
|
|
345
346
|
|
|
@@ -422,6 +423,7 @@ def TaskGroup() -> _TaskGroupProto: # Returns augmented TaskGroup instance
|
|
|
422
423
|
self.cancel_scope.cancel()
|
|
423
424
|
|
|
424
425
|
_tg = TaskGroup_
|
|
426
|
+
assert _tg is not None
|
|
425
427
|
return _tg()
|
|
426
428
|
|
|
427
429
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moat_lib_micro-0.3.2 → moat_lib_micro-0.3.4}/src/moat_lib_micro.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|