PKG-INFO 3.6 KB

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