ez-a-sync 0.22.11__tar.gz → 0.22.13__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.
Potentially problematic release.
This version of ez-a-sync might be problematic. Click here for more details.
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/PKG-INFO +1 -1
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/property.py +2 -6
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/executor.py +9 -3
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/ez_a_sync.egg-info/PKG-INFO +1 -1
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/.coverage +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/.github/workflows/codeql.yaml +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/.github/workflows/docs.yaml +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/.github/workflows/mypy.yaml +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/.github/workflows/pytest.yaml +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/.github/workflows/release.yaml +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/.gitignore +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/.sourcery.yaml +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/LICENSE.txt +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/Makefile +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/README.md +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/TODO +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/ENVIRONMENT_VARIABLES.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/__init__.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/_smart.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/_typing.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/__init__.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/_descriptor.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/_flags.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/_helpers.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/_kwargs.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/_meta.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/abstract.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/base.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/config.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/decorator.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/function.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/method.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/modifiers/__init__.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/modifiers/cache/__init__.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/modifiers/cache/memory.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/modifiers/limiter.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/modifiers/manager.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/modifiers/semaphores.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/a_sync/singleton.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/aliases.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/asyncio/__init__.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/asyncio/as_completed.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/asyncio/create_task.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/asyncio/gather.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/asyncio/utils.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/exceptions.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/future.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/iter.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/primitives/__init__.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/primitives/_debug.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/primitives/_loggable.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/primitives/locks/__init__.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/primitives/locks/counter.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/primitives/locks/event.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/primitives/locks/prio_semaphore.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/primitives/locks/semaphore.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/primitives/queue.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/py.typed +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/sphinx/__init__.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/sphinx/ext.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/task.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/utils/__init__.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/a_sync/utils/iterators.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/Makefile +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/_build/html/_static/alabaster.css +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/_build/html/_static/basic.css +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/_build/html/_static/custom.css +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/_build/html/_static/doctools.js +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/_build/html/_static/documentation_options.js +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/_build/html/_static/file.png +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/_build/html/_static/language_data.js +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/_build/html/_static/minus.png +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/_build/html/_static/plus.png +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/_build/html/_static/pygments.css +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/_build/html/_static/searchtools.js +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/_build/html/_static/sphinx_highlight.js +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/conf.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/index.rst +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/docs/make.bat +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/ez_a_sync.egg-info/SOURCES.txt +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/ez_a_sync.egg-info/dependency_links.txt +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/ez_a_sync.egg-info/requires.txt +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/ez_a_sync.egg-info/top_level.txt +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/requirements-dev.txt +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/requirements.txt +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/setup.cfg +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/setup.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/__init__.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/conftest.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/executor.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/fixtures.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_abstract.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_as_completed.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_base.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_cache.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_decorator.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_executor.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_future.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_gather.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_helpers.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_iter.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_limiter.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_meta.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_modified.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_semaphore.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_singleton.py +0 -0
- {ez_a_sync-0.22.11 → ez_a_sync-0.22.13}/tests/test_task.py +0 -0
|
@@ -256,12 +256,8 @@ class ASyncCachedPropertyDescriptor(_ASyncPropertyDescriptorBase[I, T], ap.cache
|
|
|
256
256
|
try:
|
|
257
257
|
value = await _smart.shield(inner_task)
|
|
258
258
|
except Exception as e:
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
context_added = type(e)(*e.args, context)
|
|
262
|
-
except TypeError:
|
|
263
|
-
raise e.with_traceback(e.__traceback__)
|
|
264
|
-
raise context_added.with_traceback(e.__traceback__)
|
|
259
|
+
e.args = *e.args, {"property": self, "instance": instance}
|
|
260
|
+
raise
|
|
265
261
|
self.__set__(instance, value)
|
|
266
262
|
self.pop_lock(instance)
|
|
267
263
|
return value
|
|
@@ -114,14 +114,20 @@ class _AsyncExecutorMixin(cf.Executor, _DebugDaemonMixin):
|
|
|
114
114
|
"""
|
|
115
115
|
# TODO: make prettier strings for other types
|
|
116
116
|
if type(fn).__name__ == "function":
|
|
117
|
-
|
|
117
|
+
fnid = getattr(fn, '__qualname__', fn.__name__)
|
|
118
|
+
if fn.__module__:
|
|
119
|
+
fnid = f"{fn.__module__}.{fnid}"
|
|
118
120
|
|
|
119
|
-
msg = f"%s processing %s{args}
|
|
121
|
+
msg = f"%s processing %s{args}"
|
|
122
|
+
if kwargs:
|
|
123
|
+
msg = f"{msg[:-1]} {', '.join(f'{k}={v}' for k, v in kwargs.items())})"
|
|
124
|
+
else:
|
|
125
|
+
msg = f"{msg[:-2]})"
|
|
120
126
|
|
|
121
127
|
while not fut.done():
|
|
122
128
|
await asyncio.sleep(15)
|
|
123
129
|
if not fut.done():
|
|
124
|
-
self.logger.debug(msg, self,
|
|
130
|
+
self.logger.debug(msg, self, fnid)
|
|
125
131
|
|
|
126
132
|
# Process
|
|
127
133
|
|
|
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
|
|
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
|