greenlet 0.4.5

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.

Who is using Greenlet?

There are several libraries that use Greenlet as a more flexible alternative to Python's built in coroutine support:

Getting Greenlet

The easiest way to get Greenlet is to install it with pip or easy_install:

pip install greenlet
easy_install greenlet

Source code archives and windows installers are available on the python package index at https://pypi.python.org/pypi/greenlet

The source code repository is hosted on github: https://github.com/python-greenlet/greenlet

Documentation is available on readthedocs.org: https://greenlet.readthedocs.org

MIT License

Author

Alexey Borzenkov

Pip

greenlet==0.4.5

Classifiers

  • Topic :: Software Development :: Libraries :: Python Modules
  • Programming Language :: Python :: 3.4
  • Programming Language :: Python :: 3.3
  • Programming Language :: Python :: 3.2
  • Programming Language :: Python :: 3.1
  • Programming Language :: Python :: 3.0
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 2.6
  • Programming Language :: Python :: 2.5
  • Programming Language :: Python :: 2.4
  • Programming Language :: Python :: 2
  • Programming Language :: Python
  • Programming Language :: C
  • Operating System :: OS Independent
  • Natural Language :: English
  • License :: OSI Approved :: MIT License
  • Intended Audience :: Developers
File Type Python Version Uploaded On Downloads
greenlet-0.4.5.zip Source Oct. 18, 2014 1,360,803
greenlet-0.4.5-py3.4-win32.egg Egg 3.4 Oct. 18, 2014 737
greenlet-0.4.5-py3.4-win-amd64.egg Egg 3.4 Oct. 18, 2014 686
greenlet-0.4.5-py3.3-win32.egg Egg 3.3 Oct. 18, 2014 619
greenlet-0.4.5-py3.3-win-amd64.egg Egg 3.3 Oct. 18, 2014 616
greenlet-0.4.5-py2.7-win32.egg Egg 2.7 Oct. 18, 2014 2,030
greenlet-0.4.5-py2.7-win-amd64.egg Egg 2.7 Oct. 18, 2014 1,275
greenlet-0.4.5-py2.6-win32.egg Egg 2.6 Oct. 18, 2014 665
greenlet-0.4.5-py2.6-win-amd64.egg Egg 2.6 Oct. 18, 2014 647
greenlet-0.4.5-cp34-none-win_amd64.whl Wheel cp34 Oct. 18, 2014 1,727
greenlet-0.4.5-cp34-none-win32.whl Wheel cp34 Oct. 18, 2014 2,172
greenlet-0.4.5-cp33-none-win_amd64.whl Wheel cp33 Oct. 18, 2014 685
greenlet-0.4.5-cp33-none-win32.whl Wheel cp33 Oct. 18, 2014 625
greenlet-0.4.5-cp27-none-win_amd64.whl Wheel cp27 Oct. 18, 2014 4,734
greenlet-0.4.5-cp27-none-win32.whl Wheel cp27 Oct. 18, 2014 25,819
greenlet-0.4.5-cp26-none-win_amd64.whl Wheel cp26 Oct. 18, 2014 663
greenlet-0.4.5-cp26-none-win32.whl Wheel cp26 Oct. 18, 2014 742
Version Release Date
0.4.5 Oct. 18, 2014
0.4.4 Sept. 7, 2014
0.4.3 Aug. 7, 2014
0.4.2 Jan. 7, 2014
0.4.1 June 7, 2013
0.4.0 June 21, 2012
0.3.4 Feb. 11, 2012
0.3.3 Jan. 6, 2012
0.3.2 Dec. 15, 2011
0.3.1 April 6, 2010
0.3 March 24, 2010
0.2 Dec. 30, 2008
0.1 Jan. 10, 2006
Date Package Version Action
April 18, 2015, 5:12 p.m. greenlet 0.4.4 Release Created
April 18, 2015, 5:12 p.m. greenlet 0.4.5 Release Created
April 18, 2015, 5:12 p.m. greenlet 0.4.2 Release Created
April 18, 2015, 5:12 p.m. greenlet 0.4.3 Release Created
April 18, 2015, 5:12 p.m. greenlet 0.4.0 Release Created
April 18, 2015, 5:12 p.m. greenlet 0.4.1 Release Created
April 18, 2015, 5:12 p.m. greenlet 0.1 Release Created
April 18, 2015, 5:12 p.m. greenlet 0.3.4 Release Created
April 18, 2015, 5:12 p.m. greenlet 0.3.1 Release Created
April 18, 2015, 5:12 p.m. greenlet 0.3 Release Created
April 18, 2015, 5:12 p.m. greenlet 0.3.3 Release Created
April 18, 2015, 5:12 p.m. greenlet 0.3.2 Release Created
April 18, 2015, 5:12 p.m. greenlet 0.2 Release Created
April 18, 2015, 5:12 p.m. greenlet Package Created