Asynchronous ZIP Operator
The azip() function takes both synchronous and asynchronous iterables (can be zero or more), awaits their results one-by-one and aggregates them into a tuple.
It stops if one of the iterators is exhausted. It waits for the next value of all iterators before yielding the tuple.
Installation
python -m pip install azip
Usage
from azip.azip import azip
async for s, a in azip(sync_iter, async_iter):
print(s, a)
Metadata
Release files for azip 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| azip-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / azip-1.0.1-py3-none-any.whl
| Download URL | azip-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a26a488c273767d5c5bba8648994f70883d35178b68838ca9ae8342274f0efbb
|
|
BLAKE2b-256 checksum How to use checksums |
7a69a0a29d0ee42b9e004f318f6912d00107b030b241e59f96b47e1e928e7af3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|