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.

Installation

python -m pip install azip

Usage

from 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.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file azip-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: azip-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for azip-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87918b2ccef7410ab44e10b7e7c72a96b62b269ec77536d9e9540205d3cd830f
MD5 38466ef301d929e72a31299539e8f987
BLAKE2b-256 acb613495df91134155d673351d5bc3202986901111a00848acfe322715f8930

See more details on using hashes here.

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