py314-greenlet (python/py-greenlet) Updated: 3 days, 3 hours ago Add to my watchlist
Lightweight in-process concurrent programmingThe "greenlet" package is a spin-off of Stackless, a version of CPython that supports micro-threads called "tasklets". Tasklets run pseudo-concurrently (typically in a single or a few OS-level threads) and are synchronized with data exchanges on "channels". A "greenlet", on the other hand, is a still more primitive notion of micro-thread with no implicit scheduling; coroutines, in other words. This is useful when you want to control exactly when your code runs. You can build custom scheduled micro-threads on top of greenlet; however, it seems that greenlets are useful on their own as a way to make advanced control flow structures. For example, we can recreate generators; the difference with Python's own generators is that our generators can call nested functions and the nested functions can yield values too. Additionally, you don't need a "yield" keyword. See the example in test_generator.py. Greenlets are provided as a C extension module for the regular unmodified interpreter.
Version: 3.2.4 License: MIT and PSF
GitHub
20 build(s) found
| Builder | Build Number | Start Time | Elapsed Time | Watcher | Build Status |
|---|---|---|---|---|---|
| 15.arm64 | 31810 | 2025-11-27 10:11:04 | 0:00:15 | 12674 | build successful |
| 14.arm64 | 66503 | 2025-11-27 9:34:13 | 0:00:18 | 25641 | build successful |
| 15 | 43656 | 2025-11-27 9:32:59 | 0:00:30 | 13482 | build successful |
| 13 | 99212 | 2025-11-27 6:37:05 | 0:00:34 | 37765 | build successful |
| 12 | 144716 | 2025-11-26 16:40:11 | 0:01:10 | 52036 | build successful |
| 10.14 | 245898 | 2025-11-26 16:21:14 | 0:01:07 | 84078 | build successful |
| 10.13 | 272207 | 2025-11-26 16:05:30 | 0:00:43 | 93447 | build successful |
| 12.arm64 | 155837 | 2025-11-26 15:50:01 | 0:00:19 | 51769 | build successful |
| 10.15 | 222631 | 2025-11-26 15:46:33 | 0:01:11 | 73191 | build successful |
| 13.arm64 | 93027 | 2025-11-26 15:40:27 | 0:00:17 | 37551 | build successful |
| 11 | 194964 | 2025-11-26 14:55:17 | 0:01:36 | 63161 | build successful |
| 14 | 71188 | 2025-11-26 14:53:51 | 0:00:29 | 26007 | build successful |
| 10.6 | 215695 | 2025-11-26 14:20:08 | 0:02:49 | 75358 | build successful |
| 10.11 | 305001 | 2025-11-26 14:20:03 | 0:03:16 | 102730 | build successful |
| 10.7 | 236050 | 2025-11-26 14:19:04 | 0:03:48 | 75023 | build successful |
| 10.8 | 220808 | 2025-11-26 14:18:29 | 0:02:58 | 73053 | build successful |
| 10.12 | 315352 | 2025-11-26 14:18:21 | 0:00:46 | 101467 | build successful |
| 10.10 | 313244 | 2025-11-26 14:18:19 | 0:04:39 | 102582 | build successful |
| 10.6.x86_64 | 252789 | 2025-11-26 14:18:09 | 0:01:48 | 75424 | build successful |
| 10.9 | 321317 | 2025-11-26 14:18:06 | 0:02:35 | 102257 | build successful |