devel/py-greenlet - The NetBSD Packages Collection

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.

Build dependencies

devel/py-setuptools devel/py-build misc/py-installer pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

lang/python312 lang/python312

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64py310-greenlet-3.1.0.tgz
NetBSD 10.0aarch64py311-greenlet-3.1.0.tgz
NetBSD 10.0aarch64py312-greenlet-3.1.0.tgz
NetBSD 10.0aarch64py310-greenlet-3.0.3.tgz
NetBSD 10.0aarch64py311-greenlet-3.0.3.tgz
NetBSD 10.0aarch64py312-greenlet-3.0.3.tgz
NetBSD 10.0aarch64py38-greenlet-3.0.3.tgz
NetBSD 10.0aarch64py39-greenlet-3.0.3.tgz
NetBSD 10.0aarch64ebpy310-greenlet-3.0.3.tgz
NetBSD 10.0aarch64ebpy311-greenlet-3.0.3.tgz
NetBSD 10.0aarch64ebpy312-greenlet-3.0.3.tgz
NetBSD 10.0aarch64ebpy38-greenlet-3.0.3.tgz
NetBSD 10.0aarch64ebpy39-greenlet-3.0.3.tgz
NetBSD 10.0aarch64ebpy310-greenlet-3.1.0.tgz
NetBSD 10.0aarch64ebpy311-greenlet-3.1.0.tgz
NetBSD 10.0aarch64ebpy312-greenlet-3.1.0.tgz
NetBSD 10.0alphapy310-greenlet-3.0.3.tgz
NetBSD 10.0alphapy311-greenlet-3.0.3.tgz
NetBSD 10.0alphapy312-greenlet-3.0.3.tgz
NetBSD 10.0alphapy38-greenlet-3.0.3.tgz
NetBSD 10.0alphapy39-greenlet-3.0.3.tgz
NetBSD 10.0alphapy310-greenlet-3.1.0.tgz
NetBSD 10.0alphapy311-greenlet-3.1.0.tgz
NetBSD 10.0alphapy312-greenlet-3.1.0.tgz
NetBSD 10.0earmv4py310-greenlet-3.0.3.tgz
NetBSD 10.0earmv4py311-greenlet-3.0.3.tgz
NetBSD 10.0earmv4py312-greenlet-3.0.3.tgz
NetBSD 10.0earmv4py38-greenlet-3.0.3.tgz
NetBSD 10.0earmv4py39-greenlet-3.0.3.tgz
NetBSD 10.0earmv4py310-greenlet-3.1.0.tgz
NetBSD 10.0earmv4py311-greenlet-3.1.0.tgz
NetBSD 10.0earmv4py312-greenlet-3.1.0.tgz
NetBSD 10.0earmv6hfpy310-greenlet-3.1.0.tgz
NetBSD 10.0earmv6hfpy311-greenlet-3.1.0.tgz
NetBSD 10.0earmv6hfpy312-greenlet-3.1.0.tgz
NetBSD 10.0earmv6hfpy310-greenlet-3.0.3.tgz
NetBSD 10.0earmv6hfpy311-greenlet-3.0.3.tgz
NetBSD 10.0earmv6hfpy312-greenlet-3.0.3.tgz
NetBSD 10.0earmv6hfpy38-greenlet-3.0.3.tgz
NetBSD 10.0earmv6hfpy39-greenlet-3.0.3.tgz
NetBSD 10.0earmv6hfpy310-greenlet-3.0.3.tgz
NetBSD 10.0earmv6hfpy311-greenlet-3.0.3.tgz
NetBSD 10.0earmv6hfpy312-greenlet-3.0.3.tgz
NetBSD 10.0earmv6hfpy38-greenlet-3.0.3.tgz
NetBSD 10.0earmv6hfpy39-greenlet-3.0.3.tgz
NetBSD 10.0earmv7hfpy310-greenlet-3.1.0.tgz
NetBSD 10.0earmv7hfpy311-greenlet-3.1.0.tgz
NetBSD 10.0earmv7hfpy312-greenlet-3.1.0.tgz
NetBSD 10.0earmv7hfpy310-greenlet-3.0.3.tgz
NetBSD 10.0earmv7hfpy311-greenlet-3.0.3.tgz
NetBSD 10.0earmv7hfpy312-greenlet-3.0.3.tgz
NetBSD 10.0earmv7hfpy38-greenlet-3.0.3.tgz
NetBSD 10.0earmv7hfpy39-greenlet-3.0.3.tgz
NetBSD 10.0earmv7hfpy310-greenlet-3.0.3.tgz
NetBSD 10.0earmv7hfpy311-greenlet-3.0.3.tgz
NetBSD 10.0earmv7hfpy312-greenlet-3.0.3.tgz
NetBSD 10.0earmv7hfpy38-greenlet-3.0.3.tgz
NetBSD 10.0earmv7hfpy39-greenlet-3.0.3.tgz
NetBSD 10.0i386py310-greenlet-3.1.0.tgz
NetBSD 10.0i386py311-greenlet-3.1.0.tgz
NetBSD 10.0i386py312-greenlet-3.1.0.tgz
NetBSD 10.0i386py310-greenlet-3.0.3.tgz
NetBSD 10.0i386py311-greenlet-3.0.3.tgz
NetBSD 10.0i386py312-greenlet-3.0.3.tgz
NetBSD 10.0i386py38-greenlet-3.0.3.tgz
NetBSD 10.0i386py39-greenlet-3.0.3.tgz
NetBSD 10.0m68kpy310-greenlet-3.0.3.tgz
NetBSD 10.0m68kpy311-greenlet-3.0.3.tgz
NetBSD 10.0m68kpy312-greenlet-3.0.3.tgz
NetBSD 10.0m68kpy38-greenlet-3.0.3.tgz
NetBSD 10.0m68kpy39-greenlet-3.0.3.tgz
NetBSD 10.0m68kpy310-greenlet-3.1.0.tgz
NetBSD 10.0m68kpy311-greenlet-3.1.0.tgz
NetBSD 10.0m68kpy312-greenlet-3.1.0.tgz
NetBSD 10.0powerpcpy310-greenlet-2.0.2.tgz
NetBSD 10.0powerpcpy311-greenlet-2.0.2.tgz
NetBSD 10.0powerpcpy38-greenlet-2.0.2.tgz
NetBSD 10.0powerpcpy39-greenlet-2.0.2.tgz
NetBSD 10.0powerpcpy310-greenlet-3.0.3.tgz
NetBSD 10.0powerpcpy311-greenlet-3.0.3.tgz
NetBSD 10.0powerpcpy312-greenlet-3.0.3.tgz
NetBSD 10.0powerpcpy38-greenlet-3.0.3.tgz
NetBSD 10.0powerpcpy39-greenlet-3.0.3.tgz
NetBSD 10.0sparc64py310-greenlet-3.0.3.tgz
NetBSD 10.0sparc64py311-greenlet-3.0.3.tgz
NetBSD 10.0sparc64py312-greenlet-3.0.3.tgz
NetBSD 10.0sparc64py38-greenlet-3.0.3.tgz
NetBSD 10.0sparc64py39-greenlet-3.0.3.tgz
NetBSD 10.0sparcpy310-greenlet-3.0.3.tgz
NetBSD 10.0sparcpy311-greenlet-3.0.3.tgz
NetBSD 10.0sparcpy312-greenlet-3.0.3.tgz
NetBSD 10.0sparcpy38-greenlet-3.0.3.tgz
NetBSD 10.0sparcpy39-greenlet-3.0.3.tgz
NetBSD 10.0x86_64py310-greenlet-3.1.0.tgz
NetBSD 10.0x86_64py311-greenlet-3.1.0.tgz
NetBSD 10.0x86_64py312-greenlet-3.1.0.tgz
NetBSD 10.0x86_64py310-greenlet-3.0.3.tgz
NetBSD 10.0x86_64py311-greenlet-3.0.3.tgz
NetBSD 10.0x86_64py312-greenlet-3.0.3.tgz
NetBSD 10.0x86_64py38-greenlet-3.0.3.tgz
NetBSD 10.0x86_64py39-greenlet-3.0.3.tgz
NetBSD 9.0aarch64py310-greenlet-3.1.0.tgz
NetBSD 9.0aarch64py311-greenlet-3.1.0.tgz
NetBSD 9.0aarch64py312-greenlet-3.1.0.tgz
NetBSD 9.0aarch64py310-greenlet-3.0.3.tgz
NetBSD 9.0aarch64py311-greenlet-3.0.3.tgz
NetBSD 9.0aarch64py312-greenlet-3.0.3.tgz
NetBSD 9.0aarch64py38-greenlet-3.0.3.tgz
NetBSD 9.0aarch64py39-greenlet-3.0.3.tgz
NetBSD 9.0alphapy310-greenlet-3.0.3.tgz
NetBSD 9.0alphapy311-greenlet-3.0.3.tgz
NetBSD 9.0alphapy38-greenlet-3.0.3.tgz
NetBSD 9.0alphapy39-greenlet-3.0.3.tgz
NetBSD 9.0alphapy310-greenlet-3.1.0.tgz
NetBSD 9.0alphapy311-greenlet-3.1.0.tgz
NetBSD 9.0earmv4py310-greenlet-3.0.3.tgz
NetBSD 9.0earmv4py311-greenlet-3.0.3.tgz
NetBSD 9.0earmv4py312-greenlet-3.0.3.tgz
NetBSD 9.0earmv4py38-greenlet-3.0.3.tgz
NetBSD 9.0earmv4py39-greenlet-3.0.3.tgz
NetBSD 9.0earmv4py312-greenlet-3.1.0.tgz
NetBSD 9.0earmv6hfpy310-greenlet-3.1.0.tgz
NetBSD 9.0earmv6hfpy311-greenlet-3.1.0.tgz
NetBSD 9.0earmv6hfpy312-greenlet-3.1.0.tgz
NetBSD 9.0earmv6hfpy310-greenlet-3.0.3.tgz
NetBSD 9.0earmv6hfpy311-greenlet-3.0.3.tgz
NetBSD 9.0earmv6hfpy38-greenlet-3.0.3.tgz
NetBSD 9.0earmv6hfpy39-greenlet-3.0.3.tgz
NetBSD 9.0earmv6hfpy310-greenlet-3.0.3.tgz
NetBSD 9.0earmv6hfpy311-greenlet-3.0.3.tgz
NetBSD 9.0earmv6hfpy38-greenlet-3.0.3.tgz
NetBSD 9.0earmv6hfpy39-greenlet-3.0.3.tgz
NetBSD 9.0earmv7hfpy310-greenlet-3.1.0.tgz
NetBSD 9.0earmv7hfpy311-greenlet-3.1.0.tgz
NetBSD 9.0earmv7hfpy312-greenlet-3.1.0.tgz
NetBSD 9.0earmv7hfpy310-greenlet-3.0.3.tgz
NetBSD 9.0earmv7hfpy311-greenlet-3.0.3.tgz
NetBSD 9.0earmv7hfpy38-greenlet-3.0.3.tgz
NetBSD 9.0earmv7hfpy39-greenlet-3.0.3.tgz
NetBSD 9.0earmv7hfpy310-greenlet-3.0.3.tgz
NetBSD 9.0earmv7hfpy311-greenlet-3.0.3.tgz
NetBSD 9.0earmv7hfpy38-greenlet-3.0.3.tgz
NetBSD 9.0earmv7hfpy39-greenlet-3.0.3.tgz
NetBSD 9.0i386py310-greenlet-3.1.0.tgz
NetBSD 9.0i386py311-greenlet-3.1.0.tgz
NetBSD 9.0i386py312-greenlet-3.1.0.tgz
NetBSD 9.0i386py310-greenlet-3.0.3.tgz
NetBSD 9.0i386py311-greenlet-3.0.3.tgz
NetBSD 9.0i386py312-greenlet-3.0.3.tgz
NetBSD 9.0i386py38-greenlet-3.0.3.tgz
NetBSD 9.0i386py39-greenlet-3.0.3.tgz
NetBSD 9.0m68kpy310-greenlet-3.0.3.tgz
NetBSD 9.0m68kpy311-greenlet-3.0.3.tgz
NetBSD 9.0m68kpy38-greenlet-3.0.3.tgz
NetBSD 9.0m68kpy39-greenlet-3.0.3.tgz
NetBSD 9.0m68kpy310-greenlet-3.0.3.tgz
NetBSD 9.0m68kpy311-greenlet-3.0.3.tgz
NetBSD 9.0m68kpy38-greenlet-3.0.3.tgz
NetBSD 9.0m68kpy39-greenlet-3.0.3.tgz
NetBSD 9.0powerpcpy310-greenlet-2.0.2.tgz
NetBSD 9.0powerpcpy311-greenlet-2.0.2.tgz
NetBSD 9.0powerpcpy38-greenlet-2.0.2.tgz
NetBSD 9.0powerpcpy39-greenlet-2.0.2.tgz
NetBSD 9.0sparc64py310-greenlet-3.0.3.tgz
NetBSD 9.0sparc64py311-greenlet-3.0.3.tgz
NetBSD 9.0sparc64py312-greenlet-3.0.3.tgz
NetBSD 9.0sparc64py38-greenlet-3.0.3.tgz
NetBSD 9.0sparc64py39-greenlet-3.0.3.tgz
NetBSD 9.0x86_64py310-greenlet-3.1.0.tgz
NetBSD 9.0x86_64py311-greenlet-3.1.0.tgz
NetBSD 9.0x86_64py312-greenlet-3.1.0.tgz
NetBSD 9.0x86_64py310-greenlet-3.0.3.tgz
NetBSD 9.0x86_64py311-greenlet-3.0.3.tgz
NetBSD 9.0x86_64py312-greenlet-3.0.3.tgz
NetBSD 9.0x86_64py38-greenlet-3.0.3.tgz
NetBSD 9.0x86_64py39-greenlet-3.0.3.tgz
NetBSD 9.3x86_64py310-greenlet-3.1.0.tgz
NetBSD 9.3x86_64py311-greenlet-3.1.0.tgz
NetBSD 9.3x86_64py312-greenlet-3.1.0.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.