METADATA 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Metadata-Version: 2.1
  2. Name: greenlet
  3. Version: 1.1.2
  4. Summary: Lightweight in-process concurrent programming
  5. Home-page: https://greenlet.readthedocs.io/
  6. Author: Alexey Borzenkov
  7. Author-email: snaury@gmail.com
  8. Maintainer: Jason Madden
  9. Maintainer-email: jason@nextthought.com
  10. License: MIT License
  11. Project-URL: Bug Tracker, https://github.com/python-greenlet/greenlet/issues
  12. Project-URL: Source Code, https://github.com/python-greenlet/greenlet/
  13. Project-URL: Documentation, https://greenlet.readthedocs.io/
  14. Keywords: greenlet coroutine concurrency threads cooperative
  15. Platform: any
  16. Classifier: Development Status :: 5 - Production/Stable
  17. Classifier: Intended Audience :: Developers
  18. Classifier: License :: OSI Approved :: MIT License
  19. Classifier: Natural Language :: English
  20. Classifier: Programming Language :: C
  21. Classifier: Programming Language :: Python
  22. Classifier: Programming Language :: Python :: 2
  23. Classifier: Programming Language :: Python :: 2.7
  24. Classifier: Programming Language :: Python :: 3
  25. Classifier: Programming Language :: Python :: 3.5
  26. Classifier: Programming Language :: Python :: 3.6
  27. Classifier: Programming Language :: Python :: 3.7
  28. Classifier: Programming Language :: Python :: 3.8
  29. Classifier: Programming Language :: Python :: 3.9
  30. Classifier: Programming Language :: Python :: 3.10
  31. Classifier: Operating System :: OS Independent
  32. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  33. Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
  34. Description-Content-Type: text/x-rst
  35. License-File: LICENSE
  36. License-File: LICENSE.PSF
  37. License-File: AUTHORS
  38. Provides-Extra: docs
  39. Requires-Dist: Sphinx ; extra == 'docs'
  40. Provides-Extra: test
  41. .. This file is included into docs/history.rst
  42. .. image:: https://github.com/python-greenlet/greenlet/workflows/tests/badge.svg
  43. :target: https://github.com/python-greenlet/greenlet/actions
  44. Greenlets are lightweight coroutines for in-process concurrent
  45. programming.
  46. The "greenlet" package is a spin-off of `Stackless`_, a version of
  47. CPython that supports micro-threads called "tasklets". Tasklets run
  48. pseudo-concurrently (typically in a single or a few OS-level threads)
  49. and are synchronized with data exchanges on "channels".
  50. A "greenlet", on the other hand, is a still more primitive notion of
  51. micro-thread with no implicit scheduling; coroutines, in other words.
  52. This is useful when you want to control exactly when your code runs.
  53. You can build custom scheduled micro-threads on top of greenlet;
  54. however, it seems that greenlets are useful on their own as a way to
  55. make advanced control flow structures. For example, we can recreate
  56. generators; the difference with Python's own generators is that our
  57. generators can call nested functions and the nested functions can
  58. yield values too. (Additionally, you don't need a "yield" keyword. See
  59. the example in `test_generator.py
  60. <https://github.com/python-greenlet/greenlet/blob/adca19bf1f287b3395896a8f41f3f4fd1797fdc7/src/greenlet/tests/test_generator.py#L1>`_).
  61. Greenlets are provided as a C extension module for the regular unmodified
  62. interpreter.
  63. .. _`Stackless`: http://www.stackless.com
  64. Who is using Greenlet?
  65. ======================
  66. There are several libraries that use Greenlet as a more flexible
  67. alternative to Python's built in coroutine support:
  68. - `Concurrence`_
  69. - `Eventlet`_
  70. - `Gevent`_
  71. .. _Concurrence: http://opensource.hyves.org/concurrence/
  72. .. _Eventlet: http://eventlet.net/
  73. .. _Gevent: http://www.gevent.org/
  74. Getting Greenlet
  75. ================
  76. The easiest way to get Greenlet is to install it with pip::
  77. pip install greenlet
  78. Source code archives and binary distributions are vailable on the
  79. python package index at https://pypi.org/project/greenlet
  80. The source code repository is hosted on github:
  81. https://github.com/python-greenlet/greenlet
  82. Documentation is available on readthedocs.org:
  83. https://greenlet.readthedocs.io