jupyverse 0.10.9__tar.gz → 0.10.12__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.
Files changed (280) hide show
  1. {jupyverse-0.10.9 → jupyverse-0.10.12}/.pre-commit-config.yaml +1 -1
  2. {jupyverse-0.10.9 → jupyverse-0.10.12}/CHANGELOG.md +6 -0
  3. {jupyverse-0.10.9 → jupyverse-0.10.12}/PKG-INFO +6 -5
  4. jupyverse-0.10.12/docs/plugins/contents.md +1 -0
  5. jupyverse-0.10.12/jupyverse_api/jupyverse_api/file_watcher/__init__.py +26 -0
  6. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/pyproject.toml +1 -1
  7. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/file_id/fps_file_id/file_id.py +6 -7
  8. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/file_id/fps_file_id/main.py +3 -1
  9. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/file_id/pyproject.toml +2 -3
  10. jupyverse-0.10.12/plugins/file_watcher/README.md +3 -0
  11. jupyverse-0.10.12/plugins/file_watcher/fps_file_watcher/__init__.py +6 -0
  12. jupyverse-0.10.12/plugins/file_watcher/fps_file_watcher/file_watcher.py +25 -0
  13. jupyverse-0.10.12/plugins/file_watcher/fps_file_watcher/main.py +11 -0
  14. jupyverse-0.10.12/plugins/file_watcher/pyproject.toml +31 -0
  15. jupyverse-0.10.12/plugins/file_watcher_poll/README.md +3 -0
  16. jupyverse-0.10.12/plugins/file_watcher_poll/fps_file_watcher_poll/__init__.py +6 -0
  17. jupyverse-0.10.12/plugins/file_watcher_poll/fps_file_watcher_poll/file_watcher.py +18 -0
  18. jupyverse-0.10.12/plugins/file_watcher_poll/fps_file_watcher_poll/main.py +11 -0
  19. jupyverse-0.10.12/plugins/file_watcher_poll/pyproject.toml +31 -0
  20. jupyverse-0.10.12/plugins/kernel_subprocess/COPYING.md +59 -0
  21. jupyverse-0.10.12/plugins/kernel_web_worker/COPYING.md +59 -0
  22. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/main.py +3 -0
  23. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/routes.py +5 -11
  24. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/pyproject.toml +2 -6
  25. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/tests/test_kernel_launcher.py +3 -0
  26. jupyverse-0.10.12/plugins/webdav/fps_webdav/py.typed +0 -0
  27. jupyverse-0.10.12/plugins/yjs/fps_yjs/py.typed +0 -0
  28. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/pyproject.toml +1 -7
  29. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/tests/test_yjs.py +3 -0
  30. {jupyverse-0.10.9 → jupyverse-0.10.12}/pyproject.toml +14 -7
  31. {jupyverse-0.10.9 → jupyverse-0.10.12}/tests/conftest.py +1 -0
  32. {jupyverse-0.10.9 → jupyverse-0.10.12}/tests/test_auth.py +3 -0
  33. {jupyverse-0.10.9 → jupyverse-0.10.12}/tests/test_execute.py +3 -0
  34. {jupyverse-0.10.9 → jupyverse-0.10.12}/tests/test_kernels.py +3 -0
  35. {jupyverse-0.10.9 → jupyverse-0.10.12}/tests/test_settings.py +3 -0
  36. jupyverse-0.10.9/docs/plugins/contents.md +0 -1
  37. {jupyverse-0.10.9 → jupyverse-0.10.12}/.devcontainer/devcontainer.json +0 -0
  38. {jupyverse-0.10.9 → jupyverse-0.10.12}/.devcontainer/requirements.txt +0 -0
  39. {jupyverse-0.10.9 → jupyverse-0.10.12}/.github/workflows/publish-release.yml +0 -0
  40. {jupyverse-0.10.9 → jupyverse-0.10.12}/.github/workflows/test.yml +0 -0
  41. {jupyverse-0.10.9 → jupyverse-0.10.12}/.gitignore +0 -0
  42. {jupyverse-0.10.9 → jupyverse-0.10.12}/COPYING.md +0 -0
  43. {jupyverse-0.10.9 → jupyverse-0.10.12}/README.md +0 -0
  44. {jupyverse-0.10.9 → jupyverse-0.10.12}/binder/environment.yml +0 -0
  45. {jupyverse-0.10.9 → jupyverse-0.10.12}/binder/jupyter_notebook_config.py +0 -0
  46. {jupyverse-0.10.9 → jupyverse-0.10.12}/binder/postBuild +0 -0
  47. {jupyverse-0.10.9 → jupyverse-0.10.12}/binder/start +0 -0
  48. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/index.md +0 -0
  49. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/install.md +0 -0
  50. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/jupyter.svg +0 -0
  51. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/plugins/auth.md +0 -0
  52. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/plugins/frontend.md +0 -0
  53. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/plugins/jupyterlab.md +0 -0
  54. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/plugins/kernels.md +0 -0
  55. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/plugins/lab.md +0 -0
  56. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/plugins/login.md +0 -0
  57. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/plugins/nbconvert.md +0 -0
  58. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/plugins/notebook.md +0 -0
  59. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/plugins/resource_usage.md +0 -0
  60. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/plugins/terminals.md +0 -0
  61. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/plugins/yjs.md +0 -0
  62. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/tutorials/jupyterhub_jupyverse_deployment.md +0 -0
  63. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/tutorials/standalone_jupyverse_deployment.md +0 -0
  64. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/usage/microservices.md +0 -0
  65. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/usage/multi_user.md +0 -0
  66. {jupyverse-0.10.9 → jupyverse-0.10.12}/docs/usage/single_user.md +0 -0
  67. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse/__init__.py +0 -0
  68. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse/py.typed +0 -0
  69. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/COPYING.md +0 -0
  70. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/README.md +0 -0
  71. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/__init__.py +0 -0
  72. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/app/__init__.py +0 -0
  73. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/asgi_websocket_transport.py +0 -0
  74. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/auth/__init__.py +0 -0
  75. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/auth/models.py +0 -0
  76. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/cli.py +0 -0
  77. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/contents/__init__.py +0 -0
  78. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/contents/models.py +0 -0
  79. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/exceptions.py +0 -0
  80. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/file_id/__init__.py +0 -0
  81. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/frontend/__init__.py +0 -0
  82. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/jupyterlab/__init__.py +0 -0
  83. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/kernel/__init__.py +0 -0
  84. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/kernels/__init__.py +0 -0
  85. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/kernels/models.py +0 -0
  86. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/lab/__init__.py +0 -0
  87. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/login/__init__.py +0 -0
  88. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/main/__init__.py +0 -0
  89. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/nbconvert/__init__.py +0 -0
  90. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/notebook/__init__.py +0 -0
  91. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/py.typed +0 -0
  92. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/resource_usage/__init__.py +0 -0
  93. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/terminals/__init__.py +0 -0
  94. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/terminals/models.py +0 -0
  95. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/yjs/__init__.py +0 -0
  96. {jupyverse-0.10.9 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/yjs/models.py +0 -0
  97. {jupyverse-0.10.9 → jupyverse-0.10.12}/mkdocs.yml +0 -0
  98. {jupyverse-0.10.9 → jupyverse-0.10.12}/notebooks/admin_users.ipynb +0 -0
  99. {jupyverse-0.10.9 → jupyverse-0.10.12}/notebooks/admin_users.py +0 -0
  100. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth/COPYING.md +0 -0
  101. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth/README.md +0 -0
  102. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth/fps_auth/__init__.py +0 -0
  103. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth/fps_auth/backends.py +0 -0
  104. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth/fps_auth/config.py +0 -0
  105. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth/fps_auth/db.py +0 -0
  106. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth/fps_auth/main.py +0 -0
  107. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth/fps_auth/models.py +0 -0
  108. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth/fps_auth/py.typed +0 -0
  109. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth/fps_auth/routes.py +0 -0
  110. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth/pyproject.toml +0 -0
  111. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_fief/COPYING.md +0 -0
  112. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_fief/README.md +0 -0
  113. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_fief/fps_auth_fief/__init__.py +0 -0
  114. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_fief/fps_auth_fief/backend.py +0 -0
  115. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_fief/fps_auth_fief/config.py +0 -0
  116. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_fief/fps_auth_fief/main.py +0 -0
  117. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_fief/fps_auth_fief/py.typed +0 -0
  118. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_fief/fps_auth_fief/routes.py +0 -0
  119. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_fief/pyproject.toml +0 -0
  120. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_jupyterhub/COPYING.md +0 -0
  121. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_jupyterhub/README.md +0 -0
  122. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/__init__.py +0 -0
  123. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/config.py +0 -0
  124. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/db.py +0 -0
  125. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/launch.py +0 -0
  126. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/main.py +0 -0
  127. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/models.py +0 -0
  128. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/py.typed +0 -0
  129. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/routes.py +0 -0
  130. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/auth_jupyterhub/pyproject.toml +0 -0
  131. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/contents/COPYING.md +0 -0
  132. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/contents/README.md +0 -0
  133. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/contents/fps_contents/__init__.py +0 -0
  134. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/contents/fps_contents/main.py +0 -0
  135. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/contents/fps_contents/py.typed +0 -0
  136. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/contents/fps_contents/routes.py +0 -0
  137. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/contents/pyproject.toml +0 -0
  138. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/file_id/COPYING.md +0 -0
  139. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/file_id/README.md +0 -0
  140. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/file_id/fps_file_id/__init__.py +0 -0
  141. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/file_id/fps_file_id/py.typed +0 -0
  142. {jupyverse-0.10.9/plugins/kernel_subprocess → jupyverse-0.10.12/plugins/file_watcher}/COPYING.md +0 -0
  143. {jupyverse-0.10.9/plugins/frontend/fps_frontend → jupyverse-0.10.12/plugins/file_watcher/fps_file_watcher}/py.typed +0 -0
  144. {jupyverse-0.10.9/plugins/kernel_web_worker → jupyverse-0.10.12/plugins/file_watcher_poll}/COPYING.md +0 -0
  145. {jupyverse-0.10.9/plugins/jupyterlab/fps_jupyterlab → jupyverse-0.10.12/plugins/file_watcher_poll/fps_file_watcher_poll}/py.typed +0 -0
  146. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/frontend/COPYING.md +0 -0
  147. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/frontend/README.md +0 -0
  148. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/frontend/fps_frontend/__init__.py +0 -0
  149. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/frontend/fps_frontend/main.py +0 -0
  150. {jupyverse-0.10.9/plugins/kernel_subprocess/fps_kernel_subprocess → jupyverse-0.10.12/plugins/frontend/fps_frontend}/py.typed +0 -0
  151. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/frontend/pyproject.toml +0 -0
  152. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/jupyterlab/COPYING.md +0 -0
  153. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/jupyterlab/README.md +0 -0
  154. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/jupyterlab/fps_jupyterlab/__init__.py +0 -0
  155. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/jupyterlab/fps_jupyterlab/index.py +0 -0
  156. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/jupyterlab/fps_jupyterlab/main.py +0 -0
  157. {jupyverse-0.10.9/plugins/kernel_web_worker/fps_kernel_web_worker → jupyverse-0.10.12/plugins/jupyterlab/fps_jupyterlab}/py.typed +0 -0
  158. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/jupyterlab/fps_jupyterlab/routes.py +0 -0
  159. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/jupyterlab/pyproject.toml +0 -0
  160. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernel_subprocess/README.md +0 -0
  161. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernel_subprocess/fps_kernel_subprocess/__init__.py +0 -0
  162. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernel_subprocess/fps_kernel_subprocess/connect.py +0 -0
  163. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernel_subprocess/fps_kernel_subprocess/kernel_subprocess.py +0 -0
  164. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernel_subprocess/fps_kernel_subprocess/main.py +0 -0
  165. {jupyverse-0.10.9/plugins/kernels/fps_kernels → jupyverse-0.10.12/plugins/kernel_subprocess/fps_kernel_subprocess}/py.typed +0 -0
  166. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernel_subprocess/pyproject.toml +0 -0
  167. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernel_web_worker/README.md +0 -0
  168. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernel_web_worker/fps_kernel_web_worker/__init__.py +0 -0
  169. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernel_web_worker/fps_kernel_web_worker/kernel_web_worker.py +0 -0
  170. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernel_web_worker/fps_kernel_web_worker/main.py +0 -0
  171. {jupyverse-0.10.9/plugins/lab/fps_lab → jupyverse-0.10.12/plugins/kernel_web_worker/fps_kernel_web_worker}/py.typed +0 -0
  172. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernel_web_worker/pyproject.toml +0 -0
  173. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/COPYING.md +0 -0
  174. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/README.md +0 -0
  175. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/__init__.py +0 -0
  176. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_driver/__init__.py +0 -0
  177. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_driver/driver.py +0 -0
  178. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_driver/kernelspec.py +0 -0
  179. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_driver/message.py +0 -0
  180. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_driver/paths.py +0 -0
  181. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_server/__init__.py +0 -0
  182. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_server/message.py +0 -0
  183. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_server/server.py +0 -0
  184. {jupyverse-0.10.9/plugins/login/fps_login → jupyverse-0.10.12/plugins/kernels/fps_kernels}/py.typed +0 -0
  185. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/lab/COPYING.md +0 -0
  186. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/lab/README.md +0 -0
  187. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/lab/fps_lab/__init__.py +0 -0
  188. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/lab/fps_lab/main.py +0 -0
  189. {jupyverse-0.10.9/plugins/nbconvert/fps_nbconvert → jupyverse-0.10.12/plugins/lab/fps_lab}/py.typed +0 -0
  190. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/lab/fps_lab/routes.py +0 -0
  191. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/lab/fps_lab/static/favicon.ico +0 -0
  192. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/lab/pyproject.toml +0 -0
  193. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/COPYING.md +0 -0
  194. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/README.md +0 -0
  195. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/__init__.py +0 -0
  196. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/main.py +0 -0
  197. {jupyverse-0.10.9/plugins/noauth/fps_noauth → jupyverse-0.10.12/plugins/login/fps_login}/py.typed +0 -0
  198. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/routes.py +0 -0
  199. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon-busy-1.ico +0 -0
  200. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon-busy-2.ico +0 -0
  201. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon-busy-3.ico +0 -0
  202. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon-file.ico +0 -0
  203. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon-notebook.ico +0 -0
  204. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon-terminal.ico +0 -0
  205. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon.ico +0 -0
  206. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/static/index.html +0 -0
  207. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/static/logo/github.svg +0 -0
  208. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/static/logo/logo.png +0 -0
  209. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/fps_login/static/style/index.css +0 -0
  210. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/login/pyproject.toml +0 -0
  211. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/nbconvert/COPYING.md +0 -0
  212. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/nbconvert/README.md +0 -0
  213. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/nbconvert/fps_nbconvert/__init__.py +0 -0
  214. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/nbconvert/fps_nbconvert/main.py +0 -0
  215. {jupyverse-0.10.9/plugins/notebook/fps_notebook → jupyverse-0.10.12/plugins/nbconvert/fps_nbconvert}/py.typed +0 -0
  216. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/nbconvert/fps_nbconvert/routes.py +0 -0
  217. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/nbconvert/pyproject.toml +0 -0
  218. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/noauth/COPYING.md +0 -0
  219. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/noauth/README.md +0 -0
  220. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/noauth/fps_noauth/__init__.py +0 -0
  221. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/noauth/fps_noauth/backends.py +0 -0
  222. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/noauth/fps_noauth/main.py +0 -0
  223. {jupyverse-0.10.9/plugins/resource_usage/fps_resource_usage → jupyverse-0.10.12/plugins/noauth/fps_noauth}/py.typed +0 -0
  224. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/noauth/pyproject.toml +0 -0
  225. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/notebook/COPYING.md +0 -0
  226. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/notebook/README.md +0 -0
  227. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/notebook/fps_notebook/__init__.py +0 -0
  228. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/notebook/fps_notebook/main.py +0 -0
  229. {jupyverse-0.10.9/plugins/terminals/fps_terminals → jupyverse-0.10.12/plugins/notebook/fps_notebook}/py.typed +0 -0
  230. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/notebook/fps_notebook/routes.py +0 -0
  231. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/notebook/pyproject.toml +0 -0
  232. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/resource_usage/COPYING.md +0 -0
  233. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/resource_usage/README.md +0 -0
  234. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/resource_usage/fps_resource_usage/__init__.py +0 -0
  235. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/resource_usage/fps_resource_usage/main.py +0 -0
  236. {jupyverse-0.10.9/plugins/webdav/fps_webdav → jupyverse-0.10.12/plugins/resource_usage/fps_resource_usage}/py.typed +0 -0
  237. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/resource_usage/fps_resource_usage/routes.py +0 -0
  238. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/resource_usage/pyproject.toml +0 -0
  239. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/terminals/COPYING.md +0 -0
  240. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/terminals/README.md +0 -0
  241. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/terminals/fps_terminals/__init__.py +0 -0
  242. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/terminals/fps_terminals/main.py +0 -0
  243. {jupyverse-0.10.9/plugins/yjs/fps_yjs → jupyverse-0.10.12/plugins/terminals/fps_terminals}/py.typed +0 -0
  244. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/terminals/fps_terminals/routes.py +0 -0
  245. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/terminals/fps_terminals/server.py +0 -0
  246. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/terminals/fps_terminals/win_server.py +0 -0
  247. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/terminals/pyproject.toml +0 -0
  248. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/webdav/COPYING.md +0 -0
  249. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/webdav/README.md +0 -0
  250. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/webdav/fps_webdav/__init__.py +0 -0
  251. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/webdav/fps_webdav/config.py +0 -0
  252. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/webdav/fps_webdav/main.py +0 -0
  253. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/webdav/fps_webdav/routes.py +0 -0
  254. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/webdav/pyproject.toml +0 -0
  255. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/webdav/tests/conftest.py +0 -0
  256. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/webdav/tests/test_webdav.py +0 -0
  257. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/COPYING.md +0 -0
  258. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/README.md +0 -0
  259. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/__init__.py +0 -0
  260. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/main.py +0 -0
  261. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/routes.py +0 -0
  262. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/__init__.py +0 -0
  263. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/asgi_server.py +0 -0
  264. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/awareness.py +0 -0
  265. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/django_channels_consumer.py +0 -0
  266. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/websocket.py +0 -0
  267. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/websocket_provider.py +0 -0
  268. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/websocket_server.py +0 -0
  269. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/yroom.py +0 -0
  270. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/ystore.py +0 -0
  271. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/yutils.py +0 -0
  272. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywidgets/__init__.py +0 -0
  273. {jupyverse-0.10.9 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywidgets/widgets.py +0 -0
  274. {jupyverse-0.10.9 → jupyverse-0.10.12}/pytest.ini +0 -0
  275. {jupyverse-0.10.9 → jupyverse-0.10.12}/tests/data/notebook0.ipynb +0 -0
  276. {jupyverse-0.10.9 → jupyverse-0.10.12}/tests/data/notebook1.ipynb +0 -0
  277. {jupyverse-0.10.9 → jupyverse-0.10.12}/tests/test_app.py +0 -0
  278. {jupyverse-0.10.9 → jupyverse-0.10.12}/tests/test_contents.py +0 -0
  279. {jupyverse-0.10.9 → jupyverse-0.10.12}/tests/test_server.py +0 -0
  280. {jupyverse-0.10.9 → jupyverse-0.10.12}/tests/utils.py +0 -0
@@ -16,7 +16,7 @@ repos:
16
16
  - id: trailing-whitespace
17
17
 
18
18
  - repo: https://github.com/astral-sh/ruff-pre-commit
19
- rev: v0.12.5
19
+ rev: v0.12.7
20
20
  hooks:
21
21
  - id: ruff
22
22
  args: ["--fix"]
@@ -1,5 +1,11 @@
1
1
  # Version history
2
2
 
3
+ ## 0.10.12
4
+
5
+ - Add `FileWatcher` API.
6
+ - Add `fps-file-watcher`, which uses `watchfiles`.
7
+ - Add `fps-file-watcher-poll`, which uses `anychange`.
8
+
3
9
  ## 0.10.9
4
10
 
5
11
  - Move `ResourceLock` to `anyioutils`.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jupyverse
3
- Version: 0.10.9
3
+ Version: 0.10.12
4
4
  Summary: A set of FPS plugins implementing a Jupyter server
5
5
  Project-URL: Homepage, https://jupyter.org
6
6
  Author-email: Jupyter Development Team <jupyter@googlegroups.com>
@@ -10,16 +10,17 @@ Keywords: fastapi,jupyter,plugins,server
10
10
  Requires-Python: >=3.9
11
11
  Requires-Dist: eval-type-backport; python_version < '3.10'
12
12
  Requires-Dist: fps-contents<0.11.0,>=0.10.1
13
- Requires-Dist: fps-file-id<0.3.0,>=0.2.2
13
+ Requires-Dist: fps-file-id<0.4.0,>=0.3.2
14
+ Requires-Dist: fps-file-watcher<0.2.0,>=0.1.1
14
15
  Requires-Dist: fps-frontend<0.10.0,>=0.9.1
15
16
  Requires-Dist: fps-kernel-subprocess<0.2.0,>=0.1.2
16
- Requires-Dist: fps-kernels<0.10.0,>=0.9.2
17
+ Requires-Dist: fps-kernels<0.11.0,>=0.10.2
17
18
  Requires-Dist: fps-lab<0.10.0,>=0.9.1
18
19
  Requires-Dist: fps-nbconvert<0.10.0,>=0.9.1
19
20
  Requires-Dist: fps-terminals<0.10.0,>=0.9.1
20
- Requires-Dist: fps-yjs<0.11.0,>=0.10.3
21
+ Requires-Dist: fps-yjs<0.11.0,>=0.10.5
21
22
  Requires-Dist: fps[anycorn,click,fastapi]<0.6.0,>=0.5.1
22
- Requires-Dist: jupyverse-api<0.12.0,>=0.11.0
23
+ Requires-Dist: jupyverse-api<0.12.0,>=0.11.2
23
24
  Requires-Dist: rich-click<2,>=1.6.1
24
25
  Provides-Extra: auth
25
26
  Requires-Dist: fps-auth<0.10.0,>=0.9.1; extra == 'auth'
@@ -0,0 +1 @@
1
+ `fps-contents` implements the `contents` API, i.e. everything related to reading/writing files, for the local file system.
@@ -0,0 +1,26 @@
1
+ from __future__ import annotations
2
+
3
+ from abc import ABC, abstractmethod
4
+ from collections.abc import AsyncGenerator
5
+ from enum import IntEnum
6
+ from pathlib import Path
7
+
8
+ from anyio import Event
9
+
10
+
11
+ class Change(IntEnum):
12
+ added = 1
13
+ modified = 2
14
+ deleted = 3
15
+
16
+
17
+ FileChange = tuple[Change, str]
18
+
19
+
20
+ class FileWatcher(ABC):
21
+ @abstractmethod
22
+ async def watch(
23
+ self,
24
+ path: Path | str,
25
+ stop_event: Event | None = None,
26
+ ) -> AsyncGenerator[set[FileChange], None]: ...
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "jupyverse_api"
7
- version = "0.11.0"
7
+ version = "0.11.2"
8
8
  description = "The public API for Jupyverse"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -1,19 +1,16 @@
1
1
  from __future__ import annotations
2
2
 
3
- import logging
4
3
  import sqlite3
5
4
  from uuid import uuid4
6
5
 
7
6
  import structlog
8
7
  from anyio import Event, Lock, Path
9
8
  from sqlite_anyio import connect
10
- from watchfiles import Change, awatch
11
9
 
12
10
  from jupyverse_api.file_id import FileId
11
+ from jupyverse_api.file_watcher import Change, FileWatcher
13
12
 
14
13
  logger = structlog.get_logger()
15
- watchfiles_logger = logging.getLogger("watchfiles")
16
- watchfiles_logger.setLevel(logging.WARNING)
17
14
 
18
15
 
19
16
  class Watcher:
@@ -40,7 +37,8 @@ class _FileId(FileId):
40
37
  watchers: dict[str, list[Watcher]]
41
38
  lock: Lock
42
39
 
43
- def __init__(self, db_path: str = ".fileid.db"):
40
+ def __init__(self, file_watcher: FileWatcher, db_path: str = ".fileid.db"):
41
+ self.file_watcher = file_watcher
44
42
  self.db_path = db_path
45
43
  self.initialized = Event()
46
44
  self.watchers = {}
@@ -116,14 +114,15 @@ class _FileId(FileId):
116
114
  await self._db.commit()
117
115
  self.initialized.set()
118
116
 
119
- async for changes in awatch(".", stop_event=self.stop_event):
117
+ here = await Path().absolute()
118
+ async for changes in self.file_watcher.watch(here, stop_event=self.stop_event):
120
119
  async with self.lock:
121
120
  deleted_paths = set()
122
121
  added_paths = set()
123
122
  cursor = await self._db.cursor()
124
123
  for change, changed_path in changes:
125
124
  # get relative path
126
- changed_path = Path(changed_path).relative_to(await Path().absolute())
125
+ changed_path = Path(changed_path).relative_to(here)
127
126
  changed_path_str = str(changed_path)
128
127
 
129
128
  if change == Change.deleted:
@@ -2,13 +2,15 @@ from anyio import create_task_group
2
2
  from fps import Module
3
3
 
4
4
  from jupyverse_api.file_id import FileId
5
+ from jupyverse_api.file_watcher import FileWatcher
5
6
 
6
7
  from .file_id import _FileId
7
8
 
8
9
 
9
10
  class FileIdModule(Module):
10
11
  async def prepare(self) -> None:
11
- self.file_id = _FileId()
12
+ file_watcher = await self.get(FileWatcher) # type: ignore[type-abstract]
13
+ self.file_id = _FileId(file_watcher)
12
14
 
13
15
  async with create_task_group() as tg:
14
16
  tg.start_soon(self.file_id.start)
@@ -4,15 +4,14 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "fps_file_id"
7
- version = "0.2.2"
7
+ version = "0.3.2"
8
8
  description = "An FPS plugin for the file ID API"
9
9
  keywords = ["jupyter", "server", "fastapi", "plugins"]
10
10
  requires-python = ">=3.9"
11
11
  dependencies = [
12
- "watchfiles >=1.0.4,<2",
13
12
  "sqlite-anyio >=0.2.0,<0.3.0",
14
13
  "anyio>=3.6.2,<5",
15
- "jupyverse-api >=0.11.0,<0.12.0",
14
+ "jupyverse-api >=0.11.2,<0.12.0",
16
15
  ]
17
16
  [[project.authors]]
18
17
  name = "Jupyter Development Team"
@@ -0,0 +1,3 @@
1
+ # fps-file-watcher
2
+
3
+ An FPS plugin for the file watcher API.
@@ -0,0 +1,6 @@
1
+ import importlib.metadata
2
+
3
+ try:
4
+ __version__ = importlib.metadata.version("fps_file_watcher")
5
+ except importlib.metadata.PackageNotFoundError:
6
+ __version__ = "unknown"
@@ -0,0 +1,25 @@
1
+ from __future__ import annotations
2
+
3
+ import logging
4
+ from collections.abc import AsyncGenerator
5
+ from pathlib import Path
6
+
7
+ import structlog
8
+ from anyio import Event
9
+ from watchfiles import awatch
10
+
11
+ from jupyverse_api.file_watcher import FileChange, FileWatcher
12
+
13
+ logger = structlog.get_logger()
14
+ watchfiles_logger = logging.getLogger("watchfiles")
15
+ watchfiles_logger.setLevel(logging.WARNING)
16
+
17
+
18
+ class _FileWatcher(FileWatcher):
19
+ async def watch( # type: ignore[override]
20
+ self,
21
+ path: Path | str,
22
+ stop_event: Event | None = None,
23
+ ) -> AsyncGenerator[set[FileChange], None]:
24
+ async for changes in awatch(path, stop_event=stop_event):
25
+ yield changes # type: ignore[misc]
@@ -0,0 +1,11 @@
1
+ from fps import Module
2
+
3
+ from jupyverse_api.file_watcher import FileWatcher
4
+
5
+ from .file_watcher import _FileWatcher
6
+
7
+
8
+ class FileWatcherModule(Module):
9
+ async def prepare(self) -> None:
10
+ file_watcher = _FileWatcher()
11
+ self.put(file_watcher, FileWatcher)
@@ -0,0 +1,31 @@
1
+ [build-system]
2
+ requires = [ "hatchling",]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "fps_file_watcher"
7
+ version = "0.1.1"
8
+ description = "An FPS plugin for the file watcher API"
9
+ keywords = ["jupyter", "server", "fastapi", "plugins"]
10
+ requires-python = ">=3.9"
11
+ dependencies = [
12
+ "watchfiles >=1.0.4,<2",
13
+ "jupyverse-api >=0.11.2,<0.12.0",
14
+ ]
15
+ [[project.authors]]
16
+ name = "Jupyter Development Team"
17
+ email = "jupyter@googlegroups.com"
18
+
19
+ [project.readme]
20
+ file = "README.md"
21
+ content-type = "text/markdown"
22
+
23
+ [project.license]
24
+ text = "BSD 3-Clause License"
25
+
26
+ [project.urls]
27
+ Homepage = "https://jupyter.org"
28
+
29
+ [project.entry-points]
30
+ "fps.modules" = {file_watcher = "fps_file_watcher.main:FileWatcherModule"}
31
+ "jupyverse.modules" = {file_watcher = "fps_file_watcher.main:FileWatcherModule"}
@@ -0,0 +1,3 @@
1
+ # fps-file-watcher-poll
2
+
3
+ An FPS plugin for the file watcher API.
@@ -0,0 +1,6 @@
1
+ import importlib.metadata
2
+
3
+ try:
4
+ __version__ = importlib.metadata.version("fps_file_watcher_poll")
5
+ except importlib.metadata.PackageNotFoundError:
6
+ __version__ = "unknown"
@@ -0,0 +1,18 @@
1
+ from __future__ import annotations
2
+
3
+ from collections.abc import AsyncGenerator
4
+ from pathlib import Path
5
+
6
+ from anychange import awatch
7
+ from anyio import Event
8
+
9
+ from jupyverse_api.file_watcher import FileChange, FileWatcher
10
+
11
+
12
+ class _FileWatcher(FileWatcher):
13
+ async def watch( # type: ignore[override]
14
+ self, path: Path | str,
15
+ stop_event: Event | None = None,
16
+ ) -> AsyncGenerator[set[FileChange], None]:
17
+ async for changes in awatch(path, stop_event=stop_event):
18
+ yield changes # type: ignore[misc]
@@ -0,0 +1,11 @@
1
+ from fps import Module
2
+
3
+ from jupyverse_api.file_watcher import FileWatcher
4
+
5
+ from .file_watcher import _FileWatcher
6
+
7
+
8
+ class FileWatcherPollModule(Module):
9
+ async def prepare(self) -> None:
10
+ file_watcher = _FileWatcher()
11
+ self.put(file_watcher, FileWatcher)
@@ -0,0 +1,31 @@
1
+ [build-system]
2
+ requires = [ "hatchling",]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "fps_file_watcher_poll"
7
+ version = "0.1.1"
8
+ description = "An FPS plugin for the file watcher API"
9
+ keywords = ["jupyter", "server", "fastapi", "plugins"]
10
+ requires-python = ">=3.9"
11
+ dependencies = [
12
+ "anychange >=0.2.0",
13
+ "jupyverse-api >=0.11.2,<0.12.0",
14
+ ]
15
+ [[project.authors]]
16
+ name = "Jupyter Development Team"
17
+ email = "jupyter@googlegroups.com"
18
+
19
+ [project.readme]
20
+ file = "README.md"
21
+ content-type = "text/markdown"
22
+
23
+ [project.license]
24
+ text = "BSD 3-Clause License"
25
+
26
+ [project.urls]
27
+ Homepage = "https://jupyter.org"
28
+
29
+ [project.entry-points]
30
+ "fps.modules" = {file_watcher_poll = "fps_file_watcher_poll.main:FileWatcherPollModule"}
31
+ "jupyverse.modules" = {file_watcher_poll = "fps_file_watcher_poll.main:FileWatcherPollModule"}
@@ -0,0 +1,59 @@
1
+ # Licensing terms
2
+
3
+ This project is licensed under the terms of the Modified BSD License
4
+ (also known as New or Revised or 3-Clause BSD), as follows:
5
+
6
+ - Copyright (c) 2025-, Jupyter Development Team
7
+
8
+ All rights reserved.
9
+
10
+ Redistribution and use in source and binary forms, with or without
11
+ modification, are permitted provided that the following conditions are met:
12
+
13
+ Redistributions of source code must retain the above copyright notice, this
14
+ list of conditions and the following disclaimer.
15
+
16
+ Redistributions in binary form must reproduce the above copyright notice, this
17
+ list of conditions and the following disclaimer in the documentation and/or
18
+ other materials provided with the distribution.
19
+
20
+ Neither the name of the Jupyter Development Team nor the names of its
21
+ contributors may be used to endorse or promote products derived from this
22
+ software without specific prior written permission.
23
+
24
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
25
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
28
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+
35
+ ## About the Jupyter Development Team
36
+
37
+ The Jupyter Development Team is the set of all contributors to the Jupyter project.
38
+ This includes all of the Jupyter subprojects.
39
+
40
+ The core team that coordinates development on GitHub can be found here:
41
+ https://github.com/jupyter/.
42
+
43
+ ## Our Copyright Policy
44
+
45
+ Jupyter uses a shared copyright model. Each contributor maintains copyright
46
+ over their contributions to Jupyter. But, it is important to note that these
47
+ contributions are typically only changes to the repositories. Thus, the Jupyter
48
+ source code, in its entirety is not the copyright of any single person or
49
+ institution. Instead, it is the collective copyright of the entire Jupyter
50
+ Development Team. If individual contributors want to maintain a record of what
51
+ changes/contributions they have specific copyright on, they should indicate
52
+ their copyright in the commit message of the change, when they commit the
53
+ change to one of the Jupyter repositories.
54
+
55
+ With this in mind, the following banner should be used in any source code file
56
+ to indicate the copyright and license terms:
57
+
58
+ # Copyright (c) Jupyter Development Team.
59
+ # Distributed under the terms of the Modified BSD License.
@@ -0,0 +1,59 @@
1
+ # Licensing terms
2
+
3
+ This project is licensed under the terms of the Modified BSD License
4
+ (also known as New or Revised or 3-Clause BSD), as follows:
5
+
6
+ - Copyright (c) 2025-, Jupyter Development Team
7
+
8
+ All rights reserved.
9
+
10
+ Redistribution and use in source and binary forms, with or without
11
+ modification, are permitted provided that the following conditions are met:
12
+
13
+ Redistributions of source code must retain the above copyright notice, this
14
+ list of conditions and the following disclaimer.
15
+
16
+ Redistributions in binary form must reproduce the above copyright notice, this
17
+ list of conditions and the following disclaimer in the documentation and/or
18
+ other materials provided with the distribution.
19
+
20
+ Neither the name of the Jupyter Development Team nor the names of its
21
+ contributors may be used to endorse or promote products derived from this
22
+ software without specific prior written permission.
23
+
24
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
25
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
28
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+
35
+ ## About the Jupyter Development Team
36
+
37
+ The Jupyter Development Team is the set of all contributors to the Jupyter project.
38
+ This includes all of the Jupyter subprojects.
39
+
40
+ The core team that coordinates development on GitHub can be found here:
41
+ https://github.com/jupyter/.
42
+
43
+ ## Our Copyright Policy
44
+
45
+ Jupyter uses a shared copyright model. Each contributor maintains copyright
46
+ over their contributions to Jupyter. But, it is important to note that these
47
+ contributions are typically only changes to the repositories. Thus, the Jupyter
48
+ source code, in its entirety is not the copyright of any single person or
49
+ institution. Instead, it is the collective copyright of the entire Jupyter
50
+ Development Team. If individual contributors want to maintain a record of what
51
+ changes/contributions they have specific copyright on, they should indicate
52
+ their copyright in the commit message of the change, when they commit the
53
+ change to one of the Jupyter repositories.
54
+
55
+ With this in mind, the following banner should be used in any source code file
56
+ to indicate the copyright and license terms:
57
+
58
+ # Copyright (c) Jupyter Development Team.
59
+ # Distributed under the terms of the Modified BSD License.
@@ -6,6 +6,7 @@ from fps import Module
6
6
 
7
7
  from jupyverse_api.app import App
8
8
  from jupyverse_api.auth import Auth
9
+ from jupyverse_api.file_watcher import FileWatcher
9
10
  from jupyverse_api.frontend import FrontendConfig
10
11
  from jupyverse_api.kernel import DefaultKernelFactory
11
12
  from jupyverse_api.kernels import Kernels, KernelsConfig
@@ -35,6 +36,7 @@ class KernelsModule(Module):
35
36
  else None
36
37
  )
37
38
  default_kernel_factory = await self.get(DefaultKernelFactory)
39
+ file_watcher = await self.get(FileWatcher) # type: ignore[type-abstract]
38
40
 
39
41
  self.kernels = _Kernels(
40
42
  app,
@@ -44,6 +46,7 @@ class KernelsModule(Module):
44
46
  yjs,
45
47
  lifespan,
46
48
  default_kernel_factory,
49
+ file_watcher,
47
50
  )
48
51
  self.put(self.kernels, Kernels, teardown_callback=self.kernels.stop)
49
52
 
@@ -13,14 +13,9 @@ from fastapi import HTTPException, Response
13
13
  from fastapi.responses import FileResponse
14
14
  from starlette.requests import Request
15
15
 
16
- try:
17
- from watchfiles import Change, awatch
18
- watchfiles_installed = True
19
- except ImportError:
20
- watchfiles_installed = False
21
-
22
16
  from jupyverse_api.app import App
23
17
  from jupyverse_api.auth import Auth, User
18
+ from jupyverse_api.file_watcher import Change, FileWatcher
24
19
  from jupyverse_api.frontend import FrontendConfig
25
20
  from jupyverse_api.kernel import DefaultKernelFactory, KernelFactory
26
21
  from jupyverse_api.kernels import Kernels, KernelsConfig
@@ -50,6 +45,7 @@ class _Kernels(Kernels):
50
45
  yjs: Yjs | None,
51
46
  lifespan: Lifespan,
52
47
  default_kernel_factory: DefaultKernelFactory,
48
+ file_watcher: FileWatcher,
53
49
  ) -> None:
54
50
  super().__init__(app=app, auth=auth)
55
51
  self.kernels_config = kernels_config
@@ -57,6 +53,7 @@ class _Kernels(Kernels):
57
53
  self.yjs = yjs
58
54
  self.lifespan = lifespan
59
55
  self.default_kernel_factory = default_kernel_factory
56
+ self.file_watcher = file_watcher
60
57
 
61
58
  self.kernelspecs: dict = {}
62
59
  self.kernel_id_to_connection_file: dict[str, str] = {}
@@ -76,10 +73,7 @@ class _Kernels(Kernels):
76
73
  path = Path(jupyter_runtime_dir()) / "external_kernels"
77
74
  else:
78
75
  path = Path(external_connection_dir)
79
- if watchfiles_installed:
80
- tg.start_soon(lambda: self.watch_connection_files(path))
81
- else:
82
- logger.warning("Not watching kernel connection files (install watchfiles)")
76
+ tg.start_soon(lambda: self.watch_connection_files(path))
83
77
  tg.start_soon(self.on_shutdown)
84
78
  task_status.started()
85
79
  await self.stop_event.wait()
@@ -406,7 +400,7 @@ class _Kernels(Kernels):
406
400
  initial_changes = {(Change.added, str(p)) for p in path.iterdir()}
407
401
  await self.process_connection_files(initial_changes)
408
402
  # then, on every change
409
- async for changes in awatch(path, stop_event=self.stop_event):
403
+ async for changes in self.file_watcher.watch(path, stop_event=self.stop_event): # type: ignore[attr-defined]
410
404
  await self.process_connection_files(changes)
411
405
 
412
406
  async def process_connection_files(self, changes: set[tuple[Change, str]]):
@@ -4,21 +4,17 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "fps_kernels"
7
- version = "0.9.2"
7
+ version = "0.10.2"
8
8
  description = "An FPS plugin for the kernels API"
9
9
  keywords = ["jupyter", "server", "fastapi", "plugins"]
10
10
  requires-python = ">=3.9"
11
11
  dependencies = [
12
12
  "python-dateutil",
13
13
  "types-python-dateutil",
14
- "jupyverse-api >=0.11.0,<0.12.0",
14
+ "jupyverse-api >=0.11.2,<0.12.0",
15
15
  "pycrdt >=0.10.3,<0.13.0",
16
16
  "anyio",
17
17
  ]
18
- [project.optional-dependencies]
19
- watchfiles = [
20
- "watchfiles >=1.0.4,<2",
21
- ]
22
18
 
23
19
  [[project.authors]]
24
20
  name = "Jupyter Development Team"
@@ -34,6 +34,9 @@ async def test_kernel_launcher():
34
34
  "kernels": {
35
35
  "type": "kernels",
36
36
  },
37
+ "file_watcher": {
38
+ "type": "file_watcher",
39
+ },
37
40
  },
38
41
  }
39
42
  }
File without changes
File without changes
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "fps_yjs"
7
- version = "0.10.3"
7
+ version = "0.10.5"
8
8
  description = "An FPS plugin for the Yjs API"
9
9
  keywords = [ "jupyter", "server", "fastapi", "plugins" ]
10
10
  requires-python = ">=3.9"
@@ -30,12 +30,6 @@ text = "BSD 3-Clause License"
30
30
  [project.urls]
31
31
  Homepage = "https://jupyter.org"
32
32
 
33
- [tool.check-manifest]
34
- ignore = [ ".*",]
35
-
36
- [tool.jupyter-releaser]
37
- skip = [ "check-links",]
38
-
39
33
  [project.entry-points]
40
34
  "fps.modules" = {yjs = "fps_yjs.main:YjsModule"}
41
35
  "jupyverse.modules" = {yjs = "fps_yjs.main:YjsModule"}
@@ -36,6 +36,9 @@ async def test_concurrent_disconnect(tmp_path):
36
36
  "file_id": {
37
37
  "type": "file_id",
38
38
  },
39
+ "file_watcher": {
40
+ "type": "file_watcher",
41
+ },
39
42
  "frontend": {
40
43
  "type": "frontend",
41
44
  },