Skip to main content

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)

Table of built distributions (wheels) for azip 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page