greenlet 0.4.7

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.7

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.7.zip Source May 16, 2015 302,933
greenlet-0.4.7-py3.4-win32.egg Egg 3.4 May 16, 2015 599
greenlet-0.4.7-py3.4-win-amd64.egg Egg 3.4 May 16, 2015 582
greenlet-0.4.7-py3.3-win32.egg Egg 3.3 May 16, 2015 568
greenlet-0.4.7-py3.3-win-amd64.egg Egg 3.3 May 16, 2015 565
greenlet-0.4.7-py2.7-win32.egg Egg 2.7 May 16, 2015 857
greenlet-0.4.7-py2.7-win-amd64.egg Egg 2.7 May 16, 2015 737
greenlet-0.4.7-py2.6-win32.egg Egg 2.6 May 16, 2015 574
greenlet-0.4.7-py2.6-win-amd64.egg Egg 2.6 May 16, 2015 571
greenlet-0.4.7-cp34-none-win_amd64.whl Wheel cp34 May 16, 2015 568
greenlet-0.4.7-cp34-none-win32.whl Wheel cp34 May 16, 2015 599
greenlet-0.4.7-cp33-none-win_amd64.whl Wheel cp33 May 16, 2015 200
greenlet-0.4.7-cp33-none-win32.whl Wheel cp33 May 16, 2015 199
greenlet-0.4.7-cp27-none-win_amd64.whl Wheel cp27 May 16, 2015 1,593
greenlet-0.4.7-cp27-none-win32.whl Wheel cp27 May 16, 2015 4,302
greenlet-0.4.7-cp26-none-win_amd64.whl Wheel cp26 May 16, 2015 209
greenlet-0.4.7-cp26-none-win32.whl Wheel cp26 May 16, 2015 10,224
Version Release Date
0.4.7 May 16, 2015
0.4.6 May 3, 2015
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
June 17, 2015, 12:59 p.m. greenlet 0.4.6 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.4.7 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.4.4 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.4.5 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.4.2 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.4.3 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.4.0 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.4.1 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.1 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.3.4 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.3.1 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.3 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.3.3 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.3.2 Release Created
June 17, 2015, 12:59 p.m. greenlet 0.2 Release Created
June 17, 2015, 12:59 p.m. greenlet Package Created