Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

python-asynctools

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-asynctools - pypi Package Compare versions

Comparing version
0.0.2.1
to
0.0.3
+17
-2
asynctools/__init__.py

@@ -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

[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>"]