aiomisc 17.7.3__tar.gz → 17.7.5__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.
- {aiomisc-17.7.3 → aiomisc-17.7.5}/PKG-INFO +1 -1
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/recurring.py +2 -2
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/periodic.py +2 -2
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/version.py +2 -2
- {aiomisc-17.7.3 → aiomisc-17.7.5}/pyproject.toml +1 -1
- {aiomisc-17.7.3 → aiomisc-17.7.5}/COPYING +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/README.rst +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/__init__.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/_context_vars.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/aggregate.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/backoff.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/circuit_breaker.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/compat.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/context.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/counters.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/cron.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/entrypoint.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/io.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/iterator_wrapper.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/log.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/periodic.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/plugins/__init__.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/plugins/__main__.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/pool.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/process_pool.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/py.typed +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/__init__.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/aiohttp.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/asgi.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/base.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/carbon.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/cron.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/dns/__init__.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/dns/records.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/dns/service.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/dns/store.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/dns/tree.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/dns/zone.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/grpc_server.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/process.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/profiler.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/raven.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/sdwatchdog.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/tcp.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/tls.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/tracer.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/udp.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/service/uvicorn.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/signal.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/thread_pool.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/timeout.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/utils.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc/worker_pool.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_log/__init__.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_log/enum.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_log/formatter/__init__.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_log/formatter/color.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_log/formatter/journald.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_log/formatter/json.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_log/formatter/rich.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_log/py.typed +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_worker/__init__.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_worker/__main__.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_worker/forking.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_worker/process.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_worker/process_inner.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_worker/protocol.py +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_worker/py.typed +0 -0
- {aiomisc-17.7.3 → aiomisc-17.7.5}/aiomisc_worker/worker.py +0 -0
@@ -48,14 +48,14 @@ class RecurringCallback:
|
|
48
48
|
|
49
49
|
def __init__(
|
50
50
|
self, coroutine_func: CallbackType,
|
51
|
-
*args: Any, **kwargs: Any,
|
51
|
+
*args: Any, name: Optional[str] = None, **kwargs: Any,
|
52
52
|
):
|
53
53
|
self.func: Callable[..., Awaitable[Any]]
|
54
54
|
self.args: Tuple[Any, ...]
|
55
55
|
self.kwargs: Mapping[str, Any]
|
56
56
|
self._statistic: RecurringCallbackStatistic
|
57
57
|
|
58
|
-
self.name: str = repr(coroutine_func)
|
58
|
+
self.name: str = name or repr(coroutine_func)
|
59
59
|
self._statistic = RecurringCallbackStatistic(name=self.name)
|
60
60
|
self.func = utils.awaitable(coroutine_func)
|
61
61
|
self.args = args
|
@@ -15,9 +15,9 @@ class PeriodicService(Service):
|
|
15
15
|
interval: Union[int, float]
|
16
16
|
delay: Union[int, float] = 0
|
17
17
|
|
18
|
-
def __init__(self, **kwargs: Any):
|
18
|
+
def __init__(self, *, name: Optional[str] = None, **kwargs: Any):
|
19
19
|
super().__init__(**kwargs)
|
20
|
-
self.periodic = PeriodicCallback(self.callback)
|
20
|
+
self.periodic = PeriodicCallback(self.callback, name=name)
|
21
21
|
|
22
22
|
async def start(self) -> None:
|
23
23
|
assert self.interval, f"Interval illegal interval {self.interval!r}"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "aiomisc"
|
3
3
|
# This is a dummy version which will be rewritten with poem-plugins
|
4
|
-
version = "17.7.
|
4
|
+
version = "17.7.5"
|
5
5
|
description = "aiomisc - miscellaneous utils for asyncio"
|
6
6
|
authors = ["Dmitry Orlov <me@mosquito.su>"]
|
7
7
|
readme = "README.rst"
|
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
|
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
|
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
|
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
|