python-asynctools
Advanced tools
@@ -5,6 +5,7 @@ #!/usr/bin/env python3 | ||
| __author__ = "ChenyangGao <https://chenyanggao.github.io>" | ||
| __version__ = (0, 0, 2) | ||
| __version__ = (0, 0, 3) | ||
| __all__ = [ | ||
| "as_thread", "ensure_async", "ensure_await", "ensure_coroutine", "ensure_aiter", | ||
| "async_map", "async_filter", "async_reduce", "async_zip", "call_as_aiter", "to_list", | ||
| "async_map", "async_filter", "async_reduce", "async_zip", "async_chain", | ||
| "call_as_aiter", "to_list", | ||
| ] | ||
@@ -168,2 +169,16 @@ | ||
| async def async_chain(*iterables, threaded: bool = True): | ||
| for it in iterables: | ||
| async for e in ensure_aiter(it, threaded=threaded): | ||
| yield e | ||
| async def async_chain_from_iterable(iterable, /, threaded: bool = True): | ||
| async for it in ensure_aiter(iterable, threaded=False): | ||
| async for e in ensure_aiter(it, threaded=threaded): | ||
| yield e | ||
| setattr(async_chain, "from_iterable", async_chain_from_iterable) | ||
| async def call_as_aiter( | ||
@@ -170,0 +185,0 @@ func: Callable[[], T] | Callable[[], Awaitable[T]], |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: python-asynctools | ||
| Version: 0.0.2.1 | ||
| Version: 0.0.3 | ||
| Summary: Python asynchronous tools. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-asynctools |
+1
-1
| [tool.poetry] | ||
| name = "python-asynctools" | ||
| version = "0.0.2.1" | ||
| version = "0.0.3" | ||
| description = "Python asynchronous tools." | ||
@@ -5,0 +5,0 @@ authors = ["ChenyangGao <wosiwujm@gmail.com>"] |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
10090
4.8%174
6.1%