Skip to main content

zip operator for async iterables

Project description

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.


python -m pip install azip


from azip.azip import azip

async for s, a in azip(sync_iter, async_iter):
  print(s, a)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

azip-1.0.1-py3-none-any.whl (3.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page