METADATA 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Metadata-Version: 2.4
  2. Name: greenlet
  3. Version: 3.2.4
  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@seecoresoftware.com
  10. License: MIT AND Python-2.0
  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. Project-URL: Changes, https://greenlet.readthedocs.io/en/latest/changes.html
  15. Keywords: greenlet coroutine concurrency threads cooperative
  16. Platform: any
  17. Classifier: Development Status :: 5 - Production/Stable
  18. Classifier: Intended Audience :: Developers
  19. Classifier: Natural Language :: English
  20. Classifier: Programming Language :: C
  21. Classifier: Programming Language :: Python
  22. Classifier: Programming Language :: Python :: 3
  23. Classifier: Programming Language :: Python :: 3 :: Only
  24. Classifier: Programming Language :: Python :: 3.9
  25. Classifier: Programming Language :: Python :: 3.10
  26. Classifier: Programming Language :: Python :: 3.11
  27. Classifier: Programming Language :: Python :: 3.12
  28. Classifier: Programming Language :: Python :: 3.13
  29. Classifier: Operating System :: OS Independent
  30. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  31. Requires-Python: >=3.9
  32. Description-Content-Type: text/x-rst
  33. License-File: LICENSE
  34. License-File: LICENSE.PSF
  35. Provides-Extra: docs
  36. Requires-Dist: Sphinx; extra == "docs"
  37. Requires-Dist: furo; extra == "docs"
  38. Provides-Extra: test
  39. Requires-Dist: objgraph; extra == "test"
  40. Requires-Dist: psutil; extra == "test"
  41. Requires-Dist: setuptools; extra == "test"
  42. Dynamic: author
  43. Dynamic: author-email
  44. Dynamic: classifier
  45. Dynamic: description
  46. Dynamic: description-content-type
  47. Dynamic: home-page
  48. Dynamic: keywords
  49. Dynamic: license
  50. Dynamic: license-file
  51. Dynamic: maintainer
  52. Dynamic: maintainer-email
  53. Dynamic: platform
  54. Dynamic: project-url
  55. Dynamic: provides-extra
  56. Dynamic: requires-python
  57. Dynamic: summary
  58. .. This file is included into docs/history.rst
  59. Greenlets are lightweight coroutines for in-process concurrent
  60. programming.
  61. The "greenlet" package is a spin-off of `Stackless`_, a version of
  62. CPython that supports micro-threads called "tasklets". Tasklets run
  63. pseudo-concurrently (typically in a single or a few OS-level threads)
  64. and are synchronized with data exchanges on "channels".
  65. A "greenlet", on the other hand, is a still more primitive notion of
  66. micro-thread with no implicit scheduling; coroutines, in other words.
  67. This is useful when you want to control exactly when your code runs.
  68. You can build custom scheduled micro-threads on top of greenlet;
  69. however, it seems that greenlets are useful on their own as a way to
  70. make advanced control flow structures. For example, we can recreate
  71. generators; the difference with Python's own generators is that our
  72. generators can call nested functions and the nested functions can
  73. yield values too. (Additionally, you don't need a "yield" keyword. See
  74. the example in `test_generator.py
  75. <https://github.com/python-greenlet/greenlet/blob/adca19bf1f287b3395896a8f41f3f4fd1797fdc7/src/greenlet/tests/test_generator.py#L1>`_).
  76. Greenlets are provided as a C extension module for the regular unmodified
  77. interpreter.
  78. .. _`Stackless`: http://www.stackless.com
  79. Who is using Greenlet?
  80. ======================
  81. There are several libraries that use Greenlet as a more flexible
  82. alternative to Python's built in coroutine support:
  83. - `Concurrence`_
  84. - `Eventlet`_
  85. - `Gevent`_
  86. .. _Concurrence: http://opensource.hyves.org/concurrence/
  87. .. _Eventlet: http://eventlet.net/
  88. .. _Gevent: http://www.gevent.org/
  89. Getting Greenlet
  90. ================
  91. The easiest way to get Greenlet is to install it with pip::
  92. pip install greenlet
  93. Source code archives and binary distributions are available on the
  94. python package index at https://pypi.org/project/greenlet
  95. The source code repository is hosted on github:
  96. https://github.com/python-greenlet/greenlet
  97. Documentation is available on readthedocs.org:
  98. https://greenlet.readthedocs.io