METADATA 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Metadata-Version: 2.1
  2. Name: greenlet
  3. Version: 0.4.15
  4. Summary: Lightweight in-process concurrent programming
  5. Home-page: https://github.com/python-greenlet/greenlet
  6. Maintainer: Alexey Borzenkov
  7. Maintainer-email: snaury@gmail.com
  8. License: MIT License
  9. Platform: any
  10. Classifier: Intended Audience :: Developers
  11. Classifier: License :: OSI Approved :: MIT License
  12. Classifier: Natural Language :: English
  13. Classifier: Programming Language :: C
  14. Classifier: Programming Language :: Python
  15. Classifier: Programming Language :: Python :: 2
  16. Classifier: Programming Language :: Python :: 2.4
  17. Classifier: Programming Language :: Python :: 2.5
  18. Classifier: Programming Language :: Python :: 2.6
  19. Classifier: Programming Language :: Python :: 2.7
  20. Classifier: Programming Language :: Python :: 3
  21. Classifier: Programming Language :: Python :: 3.0
  22. Classifier: Programming Language :: Python :: 3.1
  23. Classifier: Programming Language :: Python :: 3.2
  24. Classifier: Programming Language :: Python :: 3.3
  25. Classifier: Programming Language :: Python :: 3.4
  26. Classifier: Programming Language :: Python :: 3.5
  27. Classifier: Programming Language :: Python :: 3.6
  28. Classifier: Programming Language :: Python :: 3.7
  29. Classifier: Operating System :: OS Independent
  30. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  31. .. image:: https://secure.travis-ci.org/python-greenlet/greenlet.png
  32. :target: http://travis-ci.org/python-greenlet/greenlet
  33. The greenlet package is a spin-off of Stackless, a version of CPython
  34. that supports micro-threads called "tasklets". Tasklets run
  35. pseudo-concurrently (typically in a single or a few OS-level threads)
  36. and are synchronized with data exchanges on "channels".
  37. A "greenlet", on the other hand, is a still more primitive notion of
  38. micro-thread with no implicit scheduling; coroutines, in other
  39. words. This is useful when you want to control exactly when your code
  40. runs. You can build custom scheduled micro-threads on top of greenlet;
  41. however, it seems that greenlets are useful on their own as a way to
  42. make advanced control flow structures. For example, we can recreate
  43. generators; the difference with Python's own generators is that our
  44. generators can call nested functions and the nested functions can
  45. yield values too. Additionally, you don't need a "yield" keyword. See
  46. the example in tests/test_generator.py.
  47. Greenlets are provided as a C extension module for the regular
  48. unmodified interpreter.
  49. Greenlets are lightweight coroutines for in-process concurrent
  50. programming.
  51. Who is using Greenlet?
  52. ======================
  53. There are several libraries that use Greenlet as a more flexible
  54. alternative to Python's built in coroutine support:
  55. - `Concurrence`_
  56. - `Eventlet`_
  57. - `Gevent`_
  58. .. _Concurrence: http://opensource.hyves.org/concurrence/
  59. .. _Eventlet: http://eventlet.net/
  60. .. _Gevent: http://www.gevent.org/
  61. Getting Greenlet
  62. ================
  63. The easiest way to get Greenlet is to install it with pip or
  64. easy_install::
  65. pip install greenlet
  66. easy_install greenlet
  67. Source code archives and windows installers are available on the
  68. python package index at https://pypi.python.org/pypi/greenlet
  69. The source code repository is hosted on github:
  70. https://github.com/python-greenlet/greenlet
  71. Documentation is available on readthedocs.org:
  72. https://greenlet.readthedocs.io