ez-a-sync 0.31.0__tar.gz → 0.32.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ez-a-sync might be problematic. Click here for more details.

Files changed (211) hide show
  1. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/.github/workflows/release.yaml +1 -1
  2. ez_a_sync-0.32.1/PKG-INFO +356 -0
  3. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/_smart.c +1901 -2118
  4. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/_smart.pyx +42 -17
  5. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/__init__.py +10 -3
  6. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_flags.c +67 -462
  7. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_flags.pyx +6 -1
  8. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_helpers.c +892 -762
  9. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_helpers.pyx +20 -1
  10. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/igather.c +1158 -929
  11. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/igather.pyx +20 -11
  12. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/sleep.c +112 -458
  13. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/sleep.pyi +1 -1
  14. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/sleep.pyx +3 -0
  15. ez_a_sync-0.32.1/ez_a_sync.egg-info/PKG-INFO +356 -0
  16. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/ez_a_sync.egg-info/SOURCES.txt +1 -0
  17. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/setup.py +6 -0
  18. ez_a_sync-0.32.1/tests/asyncio/test_igather.py +9 -0
  19. ez_a_sync-0.31.0/PKG-INFO +0 -23
  20. ez_a_sync-0.31.0/ez_a_sync.egg-info/PKG-INFO +0 -23
  21. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/.coverage +0 -0
  22. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/.github/workflows/black.yaml +0 -0
  23. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/.github/workflows/codeql.yaml +0 -0
  24. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/.github/workflows/docs.yaml +0 -0
  25. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/.github/workflows/mypy.yaml +0 -0
  26. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/.github/workflows/pytest.yaml +0 -0
  27. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/.gitignore +0 -0
  28. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/.sourcery.yaml +0 -0
  29. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/LICENSE.txt +0 -0
  30. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/MANIFEST.in +0 -0
  31. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/Makefile +0 -0
  32. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/README.md +0 -0
  33. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/TODO +0 -0
  34. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/ENVIRONMENT_VARIABLES.py +0 -0
  35. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/__init__.pxd +0 -0
  36. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/__init__.py +0 -0
  37. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/_smart.pxd +0 -0
  38. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/_smart.pyi +0 -0
  39. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/_typing.py +0 -0
  40. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_descriptor.c +0 -0
  41. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_descriptor.pyi +0 -0
  42. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_descriptor.pyx +0 -0
  43. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_flags.pxd +0 -0
  44. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_helpers.pxd +0 -0
  45. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_helpers.pyi +0 -0
  46. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_kwargs.c +0 -0
  47. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_kwargs.pxd +0 -0
  48. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_kwargs.pyx +0 -0
  49. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/_meta.py +0 -0
  50. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/abstract.c +0 -0
  51. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/abstract.pyi +0 -0
  52. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/abstract.pyx +0 -0
  53. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/base.c +0 -0
  54. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/base.pyi +0 -0
  55. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/base.pyx +0 -0
  56. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/config.py +0 -0
  57. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/decorator.py +0 -0
  58. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/flags.c +0 -0
  59. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/flags.pxd +0 -0
  60. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/flags.pyi +0 -0
  61. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/flags.pyx +0 -0
  62. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/function.c +0 -0
  63. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/function.pxd +0 -0
  64. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/function.pyi +0 -0
  65. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/function.pyx +0 -0
  66. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/method.c +0 -0
  67. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/method.pxd +0 -0
  68. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/method.pyi +0 -0
  69. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/method.pyx +0 -0
  70. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/modifiers/__init__.pxd +0 -0
  71. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/modifiers/__init__.py +0 -0
  72. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/modifiers/cache/__init__.py +0 -0
  73. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/modifiers/cache/memory.py +0 -0
  74. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/modifiers/limiter.py +0 -0
  75. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/modifiers/manager.c +0 -0
  76. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/modifiers/manager.pxd +0 -0
  77. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/modifiers/manager.pyi +0 -0
  78. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/modifiers/manager.pyx +0 -0
  79. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/modifiers/semaphores.py +0 -0
  80. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/property.c +0 -0
  81. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/property.pyi +0 -0
  82. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/property.pyx +0 -0
  83. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/a_sync/singleton.py +0 -0
  84. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/aliases.py +0 -0
  85. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/async_property/__init__.pxd +0 -0
  86. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/async_property/__init__.py +0 -0
  87. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/async_property/cached.c +0 -0
  88. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/async_property/cached.pxd +0 -0
  89. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/async_property/cached.pyi +0 -0
  90. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/async_property/cached.pyx +0 -0
  91. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/async_property/proxy.c +0 -0
  92. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/async_property/proxy.pxd +0 -0
  93. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/async_property/proxy.pyi +0 -0
  94. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/async_property/proxy.pyx +0 -0
  95. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/__init__.pxd +0 -0
  96. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/__init__.py +0 -0
  97. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/as_completed.c +0 -0
  98. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/as_completed.pxd +0 -0
  99. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/as_completed.pyi +0 -0
  100. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/as_completed.pyx +0 -0
  101. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/create_task.c +0 -0
  102. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/create_task.pxd +0 -0
  103. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/create_task.pyi +0 -0
  104. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/create_task.pyx +0 -0
  105. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/gather.c +0 -0
  106. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/gather.pyi +0 -0
  107. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/gather.pyx +0 -0
  108. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/igather.pxd +0 -0
  109. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/asyncio/igather.pyi +0 -0
  110. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/debugging.py +0 -0
  111. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/exceptions.c +0 -0
  112. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/exceptions.pyi +0 -0
  113. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/exceptions.pyx +0 -0
  114. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/executor.py +0 -0
  115. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/functools.c +0 -0
  116. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/functools.pxd +0 -0
  117. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/functools.pyi +0 -0
  118. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/functools.pyx +0 -0
  119. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/future.py +0 -0
  120. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/iter.c +0 -0
  121. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/iter.pyi +0 -0
  122. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/iter.pyx +0 -0
  123. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/__init__.pxd +0 -0
  124. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/__init__.py +0 -0
  125. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/_debug.c +0 -0
  126. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/_debug.pxd +0 -0
  127. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/_debug.pyi +0 -0
  128. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/_debug.pyx +0 -0
  129. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/_loggable.c +0 -0
  130. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/_loggable.pxd +0 -0
  131. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/_loggable.pyi +0 -0
  132. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/_loggable.pyx +0 -0
  133. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/__init__.pxd +0 -0
  134. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/__init__.py +0 -0
  135. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/counter.c +0 -0
  136. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/counter.pxd +0 -0
  137. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/counter.pyi +0 -0
  138. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/counter.pyx +0 -0
  139. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/event.c +0 -0
  140. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/event.pxd +0 -0
  141. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/event.pyi +0 -0
  142. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/event.pyx +0 -0
  143. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/prio_semaphore.c +0 -0
  144. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/prio_semaphore.pxd +0 -0
  145. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/prio_semaphore.pyi +0 -0
  146. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/prio_semaphore.pyx +0 -0
  147. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/semaphore.c +0 -0
  148. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/semaphore.pxd +0 -0
  149. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/semaphore.pyi +0 -0
  150. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/locks/semaphore.pyx +0 -0
  151. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/primitives/queue.py +0 -0
  152. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/py.typed +0 -0
  153. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/sphinx/__init__.py +0 -0
  154. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/sphinx/ext.py +0 -0
  155. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/task.py +0 -0
  156. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/utils/__init__.py +0 -0
  157. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/utils/iterators.py +0 -0
  158. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/a_sync/utils/repr.py +0 -0
  159. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/Makefile +0 -0
  160. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/_build/html/_static/alabaster.css +0 -0
  161. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/_build/html/_static/basic.css +0 -0
  162. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/_build/html/_static/custom.css +0 -0
  163. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/_build/html/_static/doctools.js +0 -0
  164. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/_build/html/_static/documentation_options.js +0 -0
  165. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/_build/html/_static/file.png +0 -0
  166. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/_build/html/_static/language_data.js +0 -0
  167. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/_build/html/_static/minus.png +0 -0
  168. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/_build/html/_static/plus.png +0 -0
  169. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/_build/html/_static/pygments.css +0 -0
  170. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/_build/html/_static/searchtools.js +0 -0
  171. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/_build/html/_static/sphinx_highlight.js +0 -0
  172. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/conf.py +0 -0
  173. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/index.rst +0 -0
  174. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/docs/make.bat +0 -0
  175. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/ez_a_sync.egg-info/dependency_links.txt +0 -0
  176. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/ez_a_sync.egg-info/not-zip-safe +0 -0
  177. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/ez_a_sync.egg-info/requires.txt +0 -0
  178. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/ez_a_sync.egg-info/top_level.txt +0 -0
  179. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/pyproject.toml +0 -0
  180. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/requirements-dev.txt +0 -0
  181. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/requirements.txt +0 -0
  182. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/setup.cfg +0 -0
  183. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/__init__.py +0 -0
  184. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/a_sync/modifiers/test_apply_semaphore.py +0 -0
  185. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/a_sync/test_abstract.py +0 -0
  186. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/a_sync/test_base.py +0 -0
  187. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/a_sync/test_cache.py +0 -0
  188. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/a_sync/test_decorator.py +0 -0
  189. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/a_sync/test_limiter.py +0 -0
  190. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/a_sync/test_meta.py +0 -0
  191. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/a_sync/test_modified.py +0 -0
  192. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/a_sync/test_singleton.py +0 -0
  193. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/asyncio/test_as_completed.py +0 -0
  194. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/asyncio/test_create_task.py +0 -0
  195. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/asyncio/test_gather.py +0 -0
  196. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/conftest.py +0 -0
  197. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/executor.py +0 -0
  198. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/fixtures.py +0 -0
  199. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/primitives/test_counter.py +0 -0
  200. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/primitives/test_event.py +0 -0
  201. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/primitives/test_prio_semaphore.py +0 -0
  202. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/primitives/test_queue.py +0 -0
  203. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/primitives/test_semaphore.py +0 -0
  204. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/task/test_task.py +0 -0
  205. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/task/test_task_mapping_views.py +0 -0
  206. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/test_executor.py +0 -0
  207. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/test_future.py +0 -0
  208. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/test_helpers.py +0 -0
  209. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/test_iter.py +0 -0
  210. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/test_smart.py +0 -0
  211. {ez_a_sync-0.31.0 → ez_a_sync-0.32.1}/tests/utils/test_repr.py +0 -0
@@ -11,7 +11,7 @@ on:
11
11
 
12
12
  jobs:
13
13
  deploy:
14
- runs-on: ubuntu-20.04
14
+ runs-on: ubuntu-latest
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v2
@@ -0,0 +1,356 @@
1
+ Metadata-Version: 2.4
2
+ Name: ez-a-sync
3
+ Version: 0.32.1
4
+ Summary: A library that makes it easy to define objects that can be used for both sync and async use cases.
5
+ Home-page: https://github.com/BobTheBuidler/a-sync
6
+ Author: BobTheBuidler
7
+ Author-email: bobthebuidlerdefi@gmail.com
8
+ License: MIT
9
+ Requires-Python: >=3.8,<3.14
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE.txt
12
+ Requires-Dist: aiolimiter>=1
13
+ Requires-Dist: async_lru_threadsafe==2.0.4
14
+ Requires-Dist: async_property==0.2.1
15
+ Requires-Dist: typed_envs>=0.0.5
16
+ Requires-Dist: typing_extensions>=4.1.0
17
+ Dynamic: author
18
+ Dynamic: author-email
19
+ Dynamic: description
20
+ Dynamic: description-content-type
21
+ Dynamic: home-page
22
+ Dynamic: license
23
+ Dynamic: license-file
24
+ Dynamic: requires-dist
25
+ Dynamic: requires-python
26
+ Dynamic: summary
27
+
28
+ ## Table of Contents
29
+ <!-- TOC -->
30
+
31
+ - [Table of Contents](#table-of-contents)
32
+ - [Introduction](#introduction)
33
+ - [Installation](#installation)
34
+ - [Usage](#usage)
35
+ - [Decorators](#decorators)
36
+ - [@a_sync'async'](#a_syncasync)
37
+ - [@a_sync'sync'](#a_syncsync)
38
+ - [Classes](#classes)
39
+ - [Modifiers](#modifiers)
40
+ - [async modifiers](#async-modifiers)
41
+ - [sync modifiers](#sync-modifiers)
42
+ - [Default Modifiers](#default-modifiers)
43
+ - [Other Helpful Classes](#other-helpful-modules)
44
+ - [ASyncIterable](#asynciterable)
45
+ - [ASyncIterator](#asynciterator)
46
+ - [ASyncFilter](#asyncfilter)
47
+ - [ASyncSorter](#asyncsorter)
48
+ - [Other Helpful Modules](#other-helpful-modules)
49
+ - [future](#future)
50
+ - [ASyncFuture](#asyncfuture)
51
+ - [future decorator](#future-decorator)
52
+ - [asyncio](#asyncio)
53
+
54
+ <!-- /TOC -->
55
+ ## Introduction
56
+
57
+ `ez-a-sync` is a Python library that enables developers to write both synchronous and asynchronous code without having to write redundant code. It provides a decorator `@a_sync()`, as well as a base class `ASyncGenericBase` which can be used to create classes that can be executed in both synchronous and asynchronous contexts.
58
+
59
+ It also contains implementations of various asyncio primitives with extra functionality, including queues and various types of locks.
60
+ \# TODO add links to various objects' docs
61
+
62
+ ## Installation
63
+
64
+ `ez-a-sync` can be installed via pip:
65
+
66
+ ```
67
+ pip install ez-a-sync
68
+ ```
69
+
70
+ ## Usage
71
+
72
+ ### Decorators
73
+
74
+ `ez-a-sync` provides one decorator: `@a_sync()`. You can explicitly pass the type of function you want with `@a_sync('sync')` or `@a_sync('async')`
75
+
76
+ #### `@a_sync('async')`
77
+
78
+ The `@a_sync('async')` decorator can be used to define an asynchronous function that can also be executed synchronously.
79
+
80
+ ```python
81
+ @a_sync('async')
82
+ def some_function():
83
+ ...
84
+ ```
85
+
86
+ This function can then be executed asynchronously using `await`:
87
+
88
+ ```python
89
+ aaa = await some_function()
90
+ ```
91
+
92
+ It can also be executed synchronously by passing `sync=True` or `asynchronous=False`:
93
+
94
+ ```python
95
+ aaa = some_function(sync=True)
96
+ ```
97
+
98
+ #### `@a_sync('sync')`
99
+
100
+ The `@a_sync('sync')` decorator can be used to define a synchronous function that can also be executed asynchronously.
101
+
102
+ ```python
103
+ @a_sync('sync')
104
+ async def some_function():
105
+ ...
106
+ ```
107
+
108
+ This function can then be executed synchronously:
109
+
110
+ ```python
111
+ aaa = some_function()
112
+ ```
113
+
114
+ It can also be overridden asynchronously by passing `sync=False` or `asynchronous=True` and using `await`:
115
+
116
+ ```python
117
+ aaa = await some_function(sync=False)
118
+ ```
119
+
120
+ ### Classes
121
+
122
+ `ez-a-sync` also provides a base class `ASyncGenericBase` that can be used to create classes that can be executed in both synchronous and asynchronous contexts. To create an asynchronous class, simply inherit from `ASyncGenericBase` and set `asynchronous=True`:
123
+
124
+ ```python
125
+ class CoolAsyncClass(ASyncGenericBase):
126
+ asynchronous=True
127
+
128
+ def some_sync_fn():
129
+ ...
130
+ ```
131
+
132
+ In this example, `CoolAsyncClass` has `asynchronous=True`, which means it is an asynchronous class. You can call `some_sync_fn` asynchronously using `await`:
133
+
134
+ ```python
135
+ aaa = await CoolAsyncClass().some_sync_fn()
136
+ ```
137
+
138
+ `CoolAsyncClass` functions can also be called synchronously by passing `sync=True`:
139
+
140
+ ```python
141
+ aaa = CoolAsyncClass().some_sync_fn(sync=True)
142
+ ```
143
+
144
+ Similarly, you can create a synchronous class by setting `sync=True` or `asynchronous=False`:
145
+
146
+ ```python
147
+ class CoolSyncClass(ASyncGenericBase):
148
+ asynchronous=False
149
+
150
+ async def some_async_fn():
151
+ ...
152
+ ```
153
+
154
+ `CoolSyncClass` functions can be called synchronously:
155
+
156
+ ```python
157
+ aaa = CoolSyncClass().some_async_fn()
158
+ ```
159
+
160
+ It can also be called asynchronously by passing `sync=False` or `asynchronous=True` and using `await`:
161
+
162
+ ```python
163
+ aaa = await CoolSyncClass().some_async_fn(sync=False)
164
+ ```
165
+
166
+ You can also create a class which functions can be executed in both synchronous and asynchronous contexts by not setting the `asynchronous` or `sync` attribute (both can be used interchangeably, pick your favorite) and passing it as an argument when creating an instance:
167
+
168
+ ```python
169
+ class CoolDualClass(ASyncGenericBase):
170
+ def __init__(self, asynchronous):
171
+ self.asynchronous=asynchronous
172
+
173
+ async def some_async_fn():
174
+ ...
175
+ ```
176
+
177
+ You can create an instance of `CoolDualClass` with `sync=False` or `asynchronous=True` to call it asynchronously:
178
+
179
+ ```python
180
+ async_instance = CoolDualClass(asynchronous=True)
181
+ aaa = await async_instance.some_async_fn()
182
+ aaa = async_instance.some_async_fn(sync=True)
183
+ ```
184
+
185
+ You can also create an instance with `sync=True` or `asynchronous=False` to call it synchronously:
186
+
187
+ ```python
188
+ sync_instance = CoolDualClass(asynchronous=False)
189
+ aaa = sync_instance.some_async_fn()
190
+ aaa = sync_instance.some_async_fn(sync=False)
191
+ ```
192
+
193
+ ### Modifiers
194
+
195
+ The `ez-a-sync` library provides several settings that can be used to customize the behavior of the decorators and classes.
196
+
197
+ To apply settings to the decorators or base classes, simply pass them as keyword arguments when calling the decorator or creating an instance.
198
+
199
+ For example, to apply `cache_type='memory'` to a function decorated with `@a_sync('async')`, you would do the following:
200
+
201
+ ```python
202
+ @a_sync('async', cache_type='memory')
203
+ def some_function():
204
+ ...
205
+ ```
206
+
207
+ #### async modifiers
208
+
209
+ The `@a_sync('async')` decorator has the following settings:
210
+
211
+ - `cache_type`: This can be set to `None` or `'memory'`. `'memory'` is a LRU cache which can be modified with the `cache_typed`, `ram_cache_maxsize`, and `ram_cache_ttl` modifiers.
212
+ - `cache_typed`: Set to `True` if you want types considered treated for cache keys. i.e. with `cache_typed=True`, `Decimal(0)` and `0` will be considered separate keys.
213
+ - `ram_cache_maxsize`: The maxsize for your LRU cache. Set to `None` if the cache is unbounded. If you set this value without specifying a cache type, `'memory'` will automatically be applied.
214
+ - `ram_cache_ttl`: The TTL for items in your LRU cache. Set to `None`. If you set this value without specifying a cache type, `'memory'` will automatically be applied.
215
+ - `runs_per_minute`: Setting this value enables a rate limiter for the decorated function.
216
+ - `semaphore`: Drop in a Semaphore for your async defined functions.
217
+
218
+ #### sync modifiers
219
+
220
+ The `@a_sync('sync')` decorator has the following setting:
221
+
222
+ - `executor`: The executor for the synchronous function. Set to the library's default of `config.default_sync_executor`.
223
+
224
+ #### Default Modifiers
225
+
226
+ Instead of setting modifiers one by one in functions, you can set a default value for modifiers using ENV variables:
227
+
228
+ - `DEFAULT_MODE`
229
+ - `CACHE_TYPE`
230
+ - `CACHE_TYPED`
231
+ - `RAM_CACHE_MAXSIZE`
232
+ - `RAM_CACHE_TTL`
233
+ - `RUNS_PER_MINUTE`
234
+ - `SEMAPHORE`
235
+
236
+ ### Other Helpful Classes
237
+ #### ASyncIterable
238
+ The [ASyncIterable](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.ASyncIterable) class allows objects to be iterated over using either a standard `for` loop or an `async for` loop. This is particularly useful in scenarios where the mode of iteration needs to be flexible or is determined at runtime.
239
+
240
+ ```python
241
+ from a_sync import ASyncIterable
242
+
243
+ async_iterable = ASyncIterable(some_async_iterable)
244
+
245
+ # Asynchronous iteration
246
+ async for item in async_iterable:
247
+ ...
248
+
249
+ # Synchronous iteration
250
+ for item in async_iterable:
251
+ ...
252
+ ```
253
+
254
+ See the [documentation](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.ASyncIterable) for more information.
255
+
256
+ #### ASyncIterator
257
+
258
+ The [ASyncIterator](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.ASyncIterator) class provides a unified interface for iteration that can operate in both synchronous and asynchronous contexts. It allows the wrapping of asynchronous iterable objects or async generator functions.
259
+
260
+ ```python
261
+ from a_sync import ASyncIterator
262
+
263
+ async_iterator = ASyncIterator(some_async_iterator)
264
+
265
+ # Asynchronous iteration
266
+ async for item in async_iterator:
267
+ ...
268
+
269
+ # Synchronous iteration
270
+ for item in async_iterator:
271
+ ...
272
+ ```
273
+
274
+ See the [documentation](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.ASyncIterator) for more information.
275
+
276
+ #### ASyncFilter
277
+
278
+ The [ASyncFilter](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.ASyncFilter) class filters items of an async iterable based on a provided function. It can handle both synchronous and asynchronous filter functions.
279
+
280
+ ```python
281
+ from a_sync import ASyncFilter
282
+
283
+ async def is_even(x):
284
+ return x % 2 == 0
285
+
286
+ filtered_iterable = ASyncFilter(is_even, some_async_iterable)
287
+
288
+ # or use the alias
289
+ import a_sync
290
+
291
+ filtered_iterable = a_sync.filter(is_even, some_async_iterable)
292
+
293
+ # Asynchronous iteration
294
+ async for item in filtered_iterable:
295
+ ...
296
+
297
+ # Synchronous iteration
298
+ for item in filtered_iterable:
299
+ ...
300
+ ```
301
+
302
+ See the [documentation](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.ASyncFilter) for more information.
303
+
304
+ #### ASyncSorter
305
+
306
+ The [ASyncSorter](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.ASyncSorter) class sorts items of an async iterable based on a provided key function. It supports both synchronous and asynchronous key functions.
307
+
308
+ ```python
309
+ from a_sync import ASyncSorter
310
+
311
+ sorted_iterable = ASyncSorter(some_async_iterable, key=lambda x: x.value)
312
+
313
+ # or use the alias
314
+ import a_sync
315
+
316
+ sorted_iterable = a_sync.sort(some_async_iterable, key=lambda x: x.value)
317
+
318
+ # Asynchronous iteration
319
+ async for item in sorted_iterable:
320
+ ...
321
+
322
+ # Synchronous iteration
323
+ for item in sorted_iterable:
324
+ ...
325
+ ```
326
+
327
+ See the [documentation](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.ASyncSorter) for more information.
328
+
329
+ ## Other Helpful Modules
330
+ The stuff here is unrelated to the main purpose of ez-a-sync, but cool and useful nonetheless
331
+
332
+ ### asyncio
333
+
334
+ The `ez-a-sync` library extends the functionality of Python's `asyncio` module with additional utilities to simplify asynchronous programming.
335
+
336
+ - **as_completed**: This function allows you to iterate over awaitables as they complete, similar to `asyncio.as_completed`. It supports both synchronous and asynchronous iteration. [Learn more about `as_completed`](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.asyncio.as_completed).
337
+
338
+ - **gather**: A utility to run multiple asynchronous operations concurrently and wait for all of them to complete. It is similar to `asyncio.gather` but integrates seamlessly with the `ez-a-sync` library. [Learn more about `gather`](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.asyncio.gather).
339
+
340
+ - **create_task**: A function to create a new task from a coroutine, similar to `asyncio.create_task`, but with additional features provided by `ez-a-sync`. [Learn more about `create_task`](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.asyncio.create_task).
341
+
342
+ - **as_completed**: This function allows you to iterate over awaitables as they complete, similar to `asyncio.as_completed`. It supports both synchronous and asynchronous iteration. [Learn more about `as_completed`](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.asyncio.as_completed).
343
+
344
+ These utilities enhance the standard `asyncio` module, providing more flexibility and control over asynchronous operations. For detailed documentation and examples, please refer to the [documentation](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.asyncio)
345
+
346
+ ### future
347
+ The future module is something totally different.
348
+ TODO: short explainer of module value prop and use case
349
+
350
+ #### ASyncFuture
351
+ [documentation](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.future.ASyncFuture)
352
+ TODO: short explainers on ASyncFuture class
353
+
354
+ #### future decorator
355
+ [documentation](#https://bobthebuidler.github.io/ez-a-sync/source/a_sync.html#a_sync.future.future)
356
+ TODO: short explainers on future fn