Channel Logo
conda-forge
public
A community led collection of recipes, build infrastructure and distributions for the conda package manager.
greenlet
v3.2.3
Lightweight in-process concurrent programming

The 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 tests/test_generator.py.

Greenlets are provided as a C extension module for the regular unmodified interpreter.

Greenlets are lightweight coroutines for in-process concurrent programming.

Install

pixiaddgreenlet

Version

3.2.3

Platforms

linux-64
linux-aarch64
linux-ppc64le
osx-64
osx-arm64
win-64

Last published

21 days ago
Retrieving Pull Requests...
Package Variants
filenameversionbuild
CreatedsizeArchitectureDownloads
greenlet-3.2.3-py312h6f74592_0.conda
3.2.3
py312h6f74592_0 (0)
21 days ago
232.67 KB
linux-aarch64
N/A
greenlet-3.2.3-py39hf88036b_0.conda
3.2.3
py39hf88036b_0 (0)
21 days ago
207.03 KB
linux-64
N/A
greenlet-3.2.3-py313h5813708_0.conda
3.2.3
py313h5813708_0 (0)
21 days ago
216.33 KB
win-64
N/A
greenlet-3.2.3-py312haafddd8_0.conda
3.2.3
py312haafddd8_0 (0)
21 days ago
225.62 KB
osx-64
N/A
greenlet-3.2.3-py311hfdbb021_0.conda
3.2.3
py311hfdbb021_0 (0)
21 days ago
233.9 KB
linux-64
N/A
greenlet-3.2.3-py39hdf37715_0.conda
3.2.3
py39hdf37715_0 (0)
21 days ago
201.78 KB
osx-64
N/A
greenlet-3.2.3-py313h46c70d0_0.conda
3.2.3
py313h46c70d0_0 (0)
21 days ago
231.39 KB
linux-64
N/A
greenlet-3.2.3-py39ha51f57c_0.conda
3.2.3
py39ha51f57c_0 (0)
21 days ago
193.34 KB
win-64
N/A
greenlet-3.2.3-py39h7dbf29c_0.conda
3.2.3
py39h7dbf29c_0 (0)
21 days ago
209.57 KB
linux-aarch64
N/A
greenlet-3.2.3-py310hf71b8c6_0.conda
3.2.3
py310hf71b8c6_0 (0)
21 days ago
209.84 KB
linux-64
N/A
greenlet-3.2.3-py311hda3d55a_0.conda
3.2.3
py311hda3d55a_0 (0)
21 days ago
219.2 KB
win-64
N/A
greenlet-3.2.3-py313h14b76d3_0.conda
3.2.3
py313h14b76d3_0 (0)
21 days ago
226.03 KB
osx-64
N/A
greenlet-3.2.3-py312h2ec8cdc_0.conda
3.2.3
py312h2ec8cdc_0 (0)
21 days ago
231.22 KB
linux-64
N/A
greenlet-3.2.3-py311hc356e98_0.conda
3.2.3
py311hc356e98_0 (0)
21 days ago
228.71 KB
osx-64
N/A
greenlet-3.2.3-py310h6954a95_0.conda
3.2.3
py310h6954a95_0 (0)
21 days ago
201.76 KB
osx-64
N/A
greenlet-3.2.3-py39h941272d_0.conda
3.2.3
py39h941272d_0 (0)
21 days ago
203.2 KB
osx-arm64
N/A
greenlet-3.2.3-py310h7563d61_0.conda
3.2.3
py310h7563d61_0 (0)
21 days ago
211.86 KB
linux-ppc64le
N/A
greenlet-3.2.3-py310h9e98ed7_0.conda
3.2.3
py310h9e98ed7_0 (0)
21 days ago
193.33 KB
win-64
N/A
greenlet-3.2.3-py310h853098b_0.conda
3.2.3
py310h853098b_0 (0)
21 days ago
203.54 KB
osx-arm64
N/A
greenlet-3.2.3-py311h89d996e_0.conda
3.2.3
py311h89d996e_0 (0)
21 days ago
236.72 KB
linux-aarch64
N/A