Skip to main content

Useful patterns building upon asynchronous iterators.

Project description

Build Status codecov.io Documentation Status

aiter -- Asynchronous Iterator Patterns

PEP 525 describes asynchronous iterators, a merging of iterators with async functionality. Python 3.6 makes legal constructs such as

async for event in peer.event_iterator:
    await process_event(event)

which is a huge improvement over using async.Queue objects which have no built-in way to determine "end-of-stream" conditions.

This module implements some patterns useful for python asynchronous iterators.

Documentation available on readthedocs.io.

A tutorial is available. github version

CAVEAT This project is still in its infancy, and I reserve the right to rename things and cause other breaking changes.

Project details


Download files

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

Source Distribution

aiter-0.13.20191203.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file aiter-0.13.20191203.tar.gz.

File metadata

  • Download URL: aiter-0.13.20191203.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5

File hashes

Hashes for aiter-0.13.20191203.tar.gz
Algorithm Hash digest
SHA256 b99a5dcdceccc8f2c2c10b1327d462353f7ab1aedc8ae17fcd3d2331db5ff429
MD5 833a00d7f4d02c91ba3a0bdd8f667d79
BLAKE2b-256 4cc5efb9abdb6b4e85bb0ff0b3c2e066e813de64db18a23789c22e638a019087

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