trio-util
trio-util
pypi i trio-util
trio-util

trio-util

Utility library for the Python Trio async/await framework

by groove-x

0.7.0 (see all)License:MIT
pypi i trio-util
Readme

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)!
VersionTagPublished
0.7.0
1yr ago
0.6.0
1yr ago
0.5.0
2yrs ago
0.4.1
2yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate