Skip to main content

Utility library for the Trio async/await framework

Project description

An assortment of utilities for the Trio async/await framework, including:

  • wait_any, wait_all, move_on_when - avoid nursery blocks for simple cases
  • AsyncBool, AsyncValue - value wrappers with the ability to wait for a specific value or transition
  • periodic - periodic loop which accounts for its own execution time
  • @trio_async_generator - decorator which adapts a generator containing Trio constructs for safe use
  • azip, azip_longest - async zip with parallel iteration
  • RepeatedEvent - if you really, really want to reuse an event
  • and more (... obscure stuff you probably don't need)!

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

trio_util-0.6.0.tar.gz (15.3 kB view hashes)

Uploaded source

Built Distribution

trio_util-0.6.0-py3-none-any.whl (17.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page