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

pkgtools/cwrappers

Runtime dependencies

devel/py-setuptools lang/python39 lang/python39

Binary packages

OSArchitectureVersion
NetBSD 8.0earmv7hfpy27-greenlet-1.1.1.tgz
NetBSD 8.0earmv7hfpy36-greenlet-1.1.1.tgz
NetBSD 8.0earmv7hfpy37-greenlet-1.1.1.tgz
NetBSD 8.0earmv7hfpy38-greenlet-1.1.1.tgz
NetBSD 8.0earmv7hfpy39-greenlet-1.1.1.tgz
NetBSD 8.0earmv7hfpy27-greenlet-1.0.0.tgz
NetBSD 8.0earmv7hfpy36-greenlet-1.0.0.tgz
NetBSD 8.0earmv7hfpy37-greenlet-1.0.0.tgz
NetBSD 8.0earmv7hfpy38-greenlet-1.0.0.tgz
NetBSD 8.0earmv7hfpy39-greenlet-1.0.0.tgz
NetBSD 8.0earmv7hfpy27-greenlet-1.0.0.tgz
NetBSD 8.0earmv7hfpy36-greenlet-1.0.0.tgz
NetBSD 8.0earmv7hfpy37-greenlet-1.0.0.tgz
NetBSD 8.0earmv7hfpy38-greenlet-1.0.0.tgz
NetBSD 8.0earmv7hfpy39-greenlet-1.0.0.tgz
NetBSD 8.0i386py27-greenlet-1.0.0.tgz
NetBSD 8.0i386py36-greenlet-1.0.0.tgz
NetBSD 8.0i386py37-greenlet-1.0.0.tgz
NetBSD 8.0i386py38-greenlet-1.0.0.tgz
NetBSD 8.0i386py39-greenlet-1.0.0.tgz
NetBSD 8.0i386py27-greenlet-1.0.0.tgz
NetBSD 8.0i386py36-greenlet-1.0.0.tgz
NetBSD 8.0i386py37-greenlet-1.0.0.tgz
NetBSD 8.0i386py38-greenlet-1.0.0.tgz
NetBSD 8.0i386py39-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy27-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy36-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy37-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy38-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy39-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy27-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy36-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy37-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy38-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy39-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy27-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy36-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy37-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy38-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy39-greenlet-1.0.0.tgz
NetBSD 8.0powerpcpy27-greenlet-1.1.1.tgz
NetBSD 8.0powerpcpy36-greenlet-1.1.1.tgz
NetBSD 8.0powerpcpy37-greenlet-1.1.1.tgz
NetBSD 8.0powerpcpy38-greenlet-1.1.1.tgz
NetBSD 8.0powerpcpy39-greenlet-1.1.1.tgz
NetBSD 8.0x86_64py27-greenlet-1.0.0.tgz
NetBSD 8.0x86_64py36-greenlet-1.0.0.tgz
NetBSD 8.0x86_64py37-greenlet-1.0.0.tgz
NetBSD 8.0x86_64py38-greenlet-1.0.0.tgz
NetBSD 8.0x86_64py39-greenlet-1.0.0.tgz
NetBSD 8.0x86_64py27-greenlet-1.0.0.tgz
NetBSD 8.0x86_64py36-greenlet-1.0.0.tgz
NetBSD 8.0x86_64py37-greenlet-1.0.0.tgz
NetBSD 8.0x86_64py38-greenlet-1.0.0.tgz
NetBSD 8.0x86_64py39-greenlet-1.0.0.tgz
NetBSD 9.0aarch64py27-greenlet-1.1.1.tgz
NetBSD 9.0aarch64py36-greenlet-1.1.1.tgz
NetBSD 9.0aarch64py37-greenlet-1.1.1.tgz
NetBSD 9.0aarch64py38-greenlet-1.1.1.tgz
NetBSD 9.0aarch64py39-greenlet-1.1.1.tgz
NetBSD 9.0aarch64py27-greenlet-1.0.0.tgz
NetBSD 9.0aarch64py36-greenlet-1.0.0.tgz
NetBSD 9.0aarch64py37-greenlet-1.0.0.tgz
NetBSD 9.0aarch64py38-greenlet-1.0.0.tgz
NetBSD 9.0aarch64py39-greenlet-1.0.0.tgz
NetBSD 9.0aarch64py27-greenlet-1.0.0.tgz
NetBSD 9.0aarch64py36-greenlet-1.0.0.tgz
NetBSD 9.0aarch64py37-greenlet-1.0.0.tgz
NetBSD 9.0aarch64py38-greenlet-1.0.0.tgz
NetBSD 9.0aarch64py39-greenlet-1.0.0.tgz
NetBSD 9.0alphapy27-greenlet-1.1.1.tgz
NetBSD 9.0alphapy36-greenlet-1.1.1.tgz
NetBSD 9.0alphapy37-greenlet-1.1.1.tgz
NetBSD 9.0alphapy38-greenlet-1.1.1.tgz
NetBSD 9.0alphapy39-greenlet-1.1.1.tgz
NetBSD 9.0alphapy27-greenlet-1.0.0.tgz
NetBSD 9.0alphapy36-greenlet-1.0.0.tgz
NetBSD 9.0alphapy37-greenlet-1.0.0.tgz
NetBSD 9.0alphapy38-greenlet-1.0.0.tgz
NetBSD 9.0alphapy39-greenlet-1.0.0.tgz
NetBSD 9.0alphapy27-greenlet-1.0.0.tgz
NetBSD 9.0alphapy36-greenlet-1.0.0.tgz
NetBSD 9.0alphapy37-greenlet-1.0.0.tgz
NetBSD 9.0alphapy38-greenlet-1.0.0.tgz
NetBSD 9.0alphapy39-greenlet-1.0.0.tgz
NetBSD 9.0earmpy27-greenlet-1.0.0.tgz
NetBSD 9.0earmpy36-greenlet-1.0.0.tgz
NetBSD 9.0earmpy37-greenlet-1.0.0.tgz
NetBSD 9.0earmpy38-greenlet-1.0.0.tgz
NetBSD 9.0earmpy39-greenlet-1.0.0.tgz
NetBSD 9.0earmpy27-greenlet-1.0.0.tgz
NetBSD 9.0earmpy36-greenlet-1.0.0.tgz
NetBSD 9.0earmpy37-greenlet-1.0.0.tgz
NetBSD 9.0earmpy38-greenlet-1.0.0.tgz
NetBSD 9.0earmpy39-greenlet-1.0.0.tgz
NetBSD 9.0earmpy36-greenlet-1.1.1.tgz
NetBSD 9.0earmpy37-greenlet-1.1.1.tgz
NetBSD 9.0earmpy38-greenlet-1.1.1.tgz
NetBSD 9.0earmpy39-greenlet-1.1.1.tgz
NetBSD 9.0earmv6hfpy27-greenlet-1.1.1.tgz
NetBSD 9.0earmv6hfpy36-greenlet-1.1.1.tgz
NetBSD 9.0earmv6hfpy37-greenlet-1.1.1.tgz
NetBSD 9.0earmv6hfpy38-greenlet-1.1.1.tgz
NetBSD 9.0earmv6hfpy39-greenlet-1.1.1.tgz
NetBSD 9.0earmv6hfpy27-greenlet-1.0.0.tgz
NetBSD 9.0earmv6hfpy36-greenlet-1.0.0.tgz
NetBSD 9.0earmv6hfpy37-greenlet-1.0.0.tgz
NetBSD 9.0earmv6hfpy38-greenlet-1.0.0.tgz
NetBSD 9.0earmv6hfpy39-greenlet-1.0.0.tgz
NetBSD 9.0earmv6hfpy27-greenlet-1.0.0.tgz
NetBSD 9.0earmv6hfpy36-greenlet-1.0.0.tgz
NetBSD 9.0earmv6hfpy37-greenlet-1.0.0.tgz
NetBSD 9.0earmv6hfpy38-greenlet-1.0.0.tgz
NetBSD 9.0earmv6hfpy39-greenlet-1.0.0.tgz
NetBSD 9.0earmv7hfpy27-greenlet-1.1.1.tgz
NetBSD 9.0earmv7hfpy36-greenlet-1.1.1.tgz
NetBSD 9.0earmv7hfpy37-greenlet-1.1.1.tgz
NetBSD 9.0earmv7hfpy38-greenlet-1.1.1.tgz
NetBSD 9.0earmv7hfpy39-greenlet-1.1.1.tgz
NetBSD 9.0earmv7hfpy27-greenlet-1.0.0.tgz
NetBSD 9.0earmv7hfpy36-greenlet-1.0.0.tgz
NetBSD 9.0earmv7hfpy37-greenlet-1.0.0.tgz
NetBSD 9.0earmv7hfpy38-greenlet-1.0.0.tgz
NetBSD 9.0earmv7hfpy39-greenlet-1.0.0.tgz
NetBSD 9.0earmv7hfpy27-greenlet-1.0.0.tgz
NetBSD 9.0earmv7hfpy36-greenlet-1.0.0.tgz
NetBSD 9.0earmv7hfpy37-greenlet-1.0.0.tgz
NetBSD 9.0earmv7hfpy38-greenlet-1.0.0.tgz
NetBSD 9.0earmv7hfpy39-greenlet-1.0.0.tgz
NetBSD 9.0earmv7hfpy27-greenlet-1.1.1.tgz
NetBSD 9.0earmv7hfpy36-greenlet-1.1.1.tgz
NetBSD 9.0earmv7hfpy37-greenlet-1.1.1.tgz
NetBSD 9.0earmv7hfpy38-greenlet-1.1.1.tgz
NetBSD 9.0earmv7hfpy39-greenlet-1.1.1.tgz
NetBSD 9.0i386py27-greenlet-1.0.0.tgz
NetBSD 9.0i386py36-greenlet-1.0.0.tgz
NetBSD 9.0i386py37-greenlet-1.0.0.tgz
NetBSD 9.0i386py38-greenlet-1.0.0.tgz
NetBSD 9.0i386py39-greenlet-1.0.0.tgz
NetBSD 9.0i386py27-greenlet-1.0.0.tgz
NetBSD 9.0i386py36-greenlet-1.0.0.tgz
NetBSD 9.0i386py37-greenlet-1.0.0.tgz
NetBSD 9.0i386py38-greenlet-1.0.0.tgz
NetBSD 9.0i386py39-greenlet-1.0.0.tgz
NetBSD 9.0m68kpy36-greenlet-1.0.0.tgz
NetBSD 9.0m68kpy37-greenlet-1.0.0.tgz
NetBSD 9.0m68kpy38-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy27-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy36-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy37-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy38-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy39-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy27-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy36-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy37-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy38-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy39-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy27-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy36-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy37-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy38-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy39-greenlet-1.0.0.tgz
NetBSD 9.0powerpcpy27-greenlet-1.1.1.tgz
NetBSD 9.0powerpcpy36-greenlet-1.1.1.tgz
NetBSD 9.0powerpcpy37-greenlet-1.1.1.tgz
NetBSD 9.0powerpcpy38-greenlet-1.1.1.tgz
NetBSD 9.0powerpcpy39-greenlet-1.1.1.tgz
NetBSD 9.0sparc64py27-greenlet-1.0.0.tgz
NetBSD 9.0sparc64py36-greenlet-1.0.0.tgz
NetBSD 9.0sparc64py37-greenlet-1.0.0.tgz
NetBSD 9.0sparc64py38-greenlet-1.0.0.tgz
NetBSD 9.0sparc64py39-greenlet-1.0.0.tgz
NetBSD 9.0sparc64py27-greenlet-1.0.0.tgz
NetBSD 9.0sparc64py36-greenlet-1.0.0.tgz
NetBSD 9.0sparc64py37-greenlet-1.0.0.tgz
NetBSD 9.0sparc64py38-greenlet-1.0.0.tgz
NetBSD 9.0sparc64py39-greenlet-1.0.0.tgz
NetBSD 9.0sparc64py27-greenlet-1.1.1.tgz
NetBSD 9.0sparc64py36-greenlet-1.1.1.tgz
NetBSD 9.0sparc64py37-greenlet-1.1.1.tgz
NetBSD 9.0sparc64py38-greenlet-1.1.1.tgz
NetBSD 9.0sparc64py39-greenlet-1.1.1.tgz
NetBSD 9.0sparcpy27-greenlet-1.0.0.tgz
NetBSD 9.0sparcpy36-greenlet-1.0.0.tgz
NetBSD 9.0sparcpy37-greenlet-1.0.0.tgz
NetBSD 9.0sparcpy38-greenlet-1.0.0.tgz
NetBSD 9.0sparcpy39-greenlet-1.0.0.tgz
NetBSD 9.0sparcpy27-greenlet-0.4.16.tgz
NetBSD 9.0sparcpy36-greenlet-0.4.16.tgz
NetBSD 9.0sparcpy37-greenlet-0.4.16.tgz
NetBSD 9.0sparcpy38-greenlet-0.4.16.tgz
NetBSD 9.0sparcpy27-greenlet-0.4.17.tgz
NetBSD 9.0sparcpy36-greenlet-0.4.17.tgz
NetBSD 9.0sparcpy37-greenlet-0.4.17.tgz
NetBSD 9.0sparcpy38-greenlet-0.4.17.tgz
NetBSD 9.0sparcpy39-greenlet-0.4.17.tgz
NetBSD 9.0sparcpy27-greenlet-1.0.0.tgz
NetBSD 9.0sparcpy36-greenlet-1.0.0.tgz
NetBSD 9.0sparcpy37-greenlet-1.0.0.tgz
NetBSD 9.0sparcpy38-greenlet-1.0.0.tgz
NetBSD 9.0sparcpy39-greenlet-1.0.0.tgz
NetBSD 9.0sparcpy36-greenlet-1.1.1.tgz
NetBSD 9.0sparcpy37-greenlet-1.1.1.tgz
NetBSD 9.0sparcpy38-greenlet-1.1.1.tgz
NetBSD 9.0sparcpy39-greenlet-1.1.1.tgz
NetBSD 9.0x86_64py27-greenlet-1.1.0.tgz
NetBSD 9.0x86_64py36-greenlet-1.1.0.tgz
NetBSD 9.0x86_64py37-greenlet-1.1.0.tgz
NetBSD 9.0x86_64py38-greenlet-1.1.0.tgz
NetBSD 9.0x86_64py39-greenlet-1.1.0.tgz
NetBSD 9.0x86_64py27-greenlet-1.1.1.tgz
NetBSD 9.0x86_64py36-greenlet-1.1.1.tgz
NetBSD 9.0x86_64py37-greenlet-1.1.1.tgz
NetBSD 9.0x86_64py38-greenlet-1.1.1.tgz
NetBSD 9.0x86_64py39-greenlet-1.1.1.tgz
NetBSD 9.0x86_64py27-greenlet-1.0.0.tgz
NetBSD 9.0x86_64py36-greenlet-1.0.0.tgz
NetBSD 9.0x86_64py37-greenlet-1.0.0.tgz
NetBSD 9.0x86_64py38-greenlet-1.0.0.tgz
NetBSD 9.0x86_64py39-greenlet-1.0.0.tgz
NetBSD 9.0x86_64py27-greenlet-1.0.0.tgz
NetBSD 9.0x86_64py36-greenlet-1.0.0.tgz
NetBSD 9.0x86_64py37-greenlet-1.0.0.tgz
NetBSD 9.0x86_64py38-greenlet-1.0.0.tgz
NetBSD 9.0x86_64py39-greenlet-1.0.0.tgz
NetBSD 9.0x86_64py27-greenlet-1.1.1.tgz
NetBSD 9.0x86_64py36-greenlet-1.1.1.tgz
NetBSD 9.0x86_64py37-greenlet-1.1.1.tgz
NetBSD 9.0x86_64py38-greenlet-1.1.1.tgz
NetBSD 9.0x86_64py39-greenlet-1.1.1.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.