jupyverse 0.8.4__tar.gz → 0.9.0__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 (247) hide show
  1. {jupyverse-0.8.4 → jupyverse-0.9.0}/.pre-commit-config.yaml +1 -1
  2. {jupyverse-0.8.4 → jupyverse-0.9.0}/CHANGELOG.md +4 -0
  3. {jupyverse-0.8.4 → jupyverse-0.9.0}/PKG-INFO +5 -4
  4. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/contents/__init__.py +0 -22
  5. jupyverse-0.9.0/jupyverse_api/jupyverse_api/file_id/__init__.py +24 -0
  6. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/pyproject.toml +1 -1
  7. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth/pyproject.toml +2 -2
  8. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_fief/pyproject.toml +2 -2
  9. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_jupyterhub/pyproject.toml +2 -2
  10. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/contents/fps_contents/routes.py +0 -10
  11. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/contents/pyproject.toml +2 -4
  12. jupyverse-0.9.0/plugins/file_id/COPYING.md +59 -0
  13. jupyverse-0.9.0/plugins/file_id/README.md +3 -0
  14. jupyverse-0.9.0/plugins/file_id/fps_file_id/__init__.py +6 -0
  15. jupyverse-0.8.4/plugins/contents/fps_contents/fileid.py → jupyverse-0.9.0/plugins/file_id/fps_file_id/file_id.py +3 -1
  16. jupyverse-0.9.0/plugins/file_id/fps_file_id/main.py +16 -0
  17. jupyverse-0.9.0/plugins/file_id/pyproject.toml +33 -0
  18. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/frontend/pyproject.toml +2 -2
  19. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/jupyterlab/pyproject.toml +2 -2
  20. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/pyproject.toml +2 -2
  21. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/lab/pyproject.toml +2 -2
  22. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/pyproject.toml +2 -2
  23. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/nbconvert/pyproject.toml +2 -2
  24. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/noauth/pyproject.toml +2 -2
  25. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/notebook/pyproject.toml +2 -2
  26. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/resource_usage/pyproject.toml +2 -2
  27. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/terminals/pyproject.toml +2 -2
  28. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/webdav/pyproject.toml +2 -2
  29. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/main.py +4 -2
  30. jupyverse-0.9.0/plugins/yjs/fps_yjs/py.typed +0 -0
  31. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/routes.py +15 -11
  32. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/pyproject.toml +2 -2
  33. {jupyverse-0.8.4 → jupyverse-0.9.0}/pyproject.toml +8 -4
  34. {jupyverse-0.8.4 → jupyverse-0.9.0}/tests/test_auth.py +3 -0
  35. {jupyverse-0.8.4 → jupyverse-0.9.0}/tests/test_execute.py +3 -0
  36. {jupyverse-0.8.4 → jupyverse-0.9.0}/tests/test_kernels.py +3 -0
  37. {jupyverse-0.8.4 → jupyverse-0.9.0}/tests/test_settings.py +3 -0
  38. {jupyverse-0.8.4 → jupyverse-0.9.0}/.devcontainer/devcontainer.json +0 -0
  39. {jupyverse-0.8.4 → jupyverse-0.9.0}/.devcontainer/requirements.txt +0 -0
  40. {jupyverse-0.8.4 → jupyverse-0.9.0}/.github/workflows/publish-release.yml +0 -0
  41. {jupyverse-0.8.4 → jupyverse-0.9.0}/.github/workflows/test.yml +0 -0
  42. {jupyverse-0.8.4 → jupyverse-0.9.0}/.gitignore +0 -0
  43. {jupyverse-0.8.4 → jupyverse-0.9.0}/COPYING.md +0 -0
  44. {jupyverse-0.8.4 → jupyverse-0.9.0}/README.md +0 -0
  45. {jupyverse-0.8.4 → jupyverse-0.9.0}/binder/environment.yml +0 -0
  46. {jupyverse-0.8.4 → jupyverse-0.9.0}/binder/jupyter_notebook_config.py +0 -0
  47. {jupyverse-0.8.4 → jupyverse-0.9.0}/binder/postBuild +0 -0
  48. {jupyverse-0.8.4 → jupyverse-0.9.0}/binder/start +0 -0
  49. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/index.md +0 -0
  50. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/install.md +0 -0
  51. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/jupyter.svg +0 -0
  52. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/plugins/auth.md +0 -0
  53. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/plugins/contents.md +0 -0
  54. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/plugins/frontend.md +0 -0
  55. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/plugins/jupyterlab.md +0 -0
  56. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/plugins/kernels.md +0 -0
  57. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/plugins/lab.md +0 -0
  58. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/plugins/login.md +0 -0
  59. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/plugins/nbconvert.md +0 -0
  60. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/plugins/notebook.md +0 -0
  61. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/plugins/resource_usage.md +0 -0
  62. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/plugins/terminals.md +0 -0
  63. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/plugins/yjs.md +0 -0
  64. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/tutorials/jupyterhub_jupyverse_deployment.md +0 -0
  65. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/tutorials/standalone_jupyverse_deployment.md +0 -0
  66. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/usage/microservices.md +0 -0
  67. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/usage/multi_user.md +0 -0
  68. {jupyverse-0.8.4 → jupyverse-0.9.0}/docs/usage/single_user.md +0 -0
  69. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse/__init__.py +0 -0
  70. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse/py.typed +0 -0
  71. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/COPYING.md +0 -0
  72. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/README.md +0 -0
  73. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/__init__.py +0 -0
  74. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/app/__init__.py +0 -0
  75. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/auth/__init__.py +0 -0
  76. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/auth/models.py +0 -0
  77. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/cli.py +0 -0
  78. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/contents/models.py +0 -0
  79. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/exceptions.py +0 -0
  80. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/frontend/__init__.py +0 -0
  81. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/jupyterlab/__init__.py +0 -0
  82. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/kernels/__init__.py +0 -0
  83. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/kernels/models.py +0 -0
  84. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/lab/__init__.py +0 -0
  85. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/login/__init__.py +0 -0
  86. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/main/__init__.py +0 -0
  87. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/nbconvert/__init__.py +0 -0
  88. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/notebook/__init__.py +0 -0
  89. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/py.typed +0 -0
  90. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/resource_usage/__init__.py +0 -0
  91. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/terminals/__init__.py +0 -0
  92. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/terminals/models.py +0 -0
  93. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/yjs/__init__.py +0 -0
  94. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/jupyverse_api/yjs/models.py +0 -0
  95. {jupyverse-0.8.4 → jupyverse-0.9.0}/jupyverse_api/tests/test_resource_lock.py +0 -0
  96. {jupyverse-0.8.4 → jupyverse-0.9.0}/mkdocs.yml +0 -0
  97. {jupyverse-0.8.4 → jupyverse-0.9.0}/notebooks/admin_users.ipynb +0 -0
  98. {jupyverse-0.8.4 → jupyverse-0.9.0}/notebooks/admin_users.py +0 -0
  99. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth/COPYING.md +0 -0
  100. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth/README.md +0 -0
  101. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth/fps_auth/__init__.py +0 -0
  102. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth/fps_auth/backends.py +0 -0
  103. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth/fps_auth/config.py +0 -0
  104. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth/fps_auth/db.py +0 -0
  105. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth/fps_auth/main.py +0 -0
  106. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth/fps_auth/models.py +0 -0
  107. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth/fps_auth/py.typed +0 -0
  108. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth/fps_auth/routes.py +0 -0
  109. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_fief/COPYING.md +0 -0
  110. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_fief/README.md +0 -0
  111. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_fief/fps_auth_fief/__init__.py +0 -0
  112. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_fief/fps_auth_fief/backend.py +0 -0
  113. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_fief/fps_auth_fief/config.py +0 -0
  114. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_fief/fps_auth_fief/main.py +0 -0
  115. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_fief/fps_auth_fief/py.typed +0 -0
  116. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_fief/fps_auth_fief/routes.py +0 -0
  117. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_jupyterhub/COPYING.md +0 -0
  118. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_jupyterhub/README.md +0 -0
  119. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_jupyterhub/fps_auth_jupyterhub/__init__.py +0 -0
  120. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_jupyterhub/fps_auth_jupyterhub/config.py +0 -0
  121. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_jupyterhub/fps_auth_jupyterhub/db.py +0 -0
  122. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_jupyterhub/fps_auth_jupyterhub/launch.py +0 -0
  123. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_jupyterhub/fps_auth_jupyterhub/main.py +0 -0
  124. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_jupyterhub/fps_auth_jupyterhub/models.py +0 -0
  125. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_jupyterhub/fps_auth_jupyterhub/py.typed +0 -0
  126. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/auth_jupyterhub/fps_auth_jupyterhub/routes.py +0 -0
  127. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/contents/COPYING.md +0 -0
  128. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/contents/README.md +0 -0
  129. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/contents/fps_contents/__init__.py +0 -0
  130. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/contents/fps_contents/main.py +0 -0
  131. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/contents/fps_contents/py.typed +0 -0
  132. {jupyverse-0.8.4/plugins/frontend/fps_frontend → jupyverse-0.9.0/plugins/file_id/fps_file_id}/py.typed +0 -0
  133. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/frontend/COPYING.md +0 -0
  134. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/frontend/README.md +0 -0
  135. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/frontend/fps_frontend/__init__.py +0 -0
  136. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/frontend/fps_frontend/main.py +0 -0
  137. {jupyverse-0.8.4/plugins/jupyterlab/fps_jupyterlab → jupyverse-0.9.0/plugins/frontend/fps_frontend}/py.typed +0 -0
  138. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/jupyterlab/COPYING.md +0 -0
  139. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/jupyterlab/README.md +0 -0
  140. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/jupyterlab/fps_jupyterlab/__init__.py +0 -0
  141. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/jupyterlab/fps_jupyterlab/index.py +0 -0
  142. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/jupyterlab/fps_jupyterlab/main.py +0 -0
  143. {jupyverse-0.8.4/plugins/kernels/fps_kernels → jupyverse-0.9.0/plugins/jupyterlab/fps_jupyterlab}/py.typed +0 -0
  144. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/jupyterlab/fps_jupyterlab/routes.py +0 -0
  145. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/COPYING.md +0 -0
  146. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/README.md +0 -0
  147. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/fps_kernels/__init__.py +0 -0
  148. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/fps_kernels/kernel_driver/__init__.py +0 -0
  149. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/fps_kernels/kernel_driver/connect.py +0 -0
  150. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/fps_kernels/kernel_driver/driver.py +0 -0
  151. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/fps_kernels/kernel_driver/kernelspec.py +0 -0
  152. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/fps_kernels/kernel_driver/message.py +0 -0
  153. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/fps_kernels/kernel_driver/paths.py +0 -0
  154. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/fps_kernels/kernel_server/__init__.py +0 -0
  155. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/fps_kernels/kernel_server/message.py +0 -0
  156. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/fps_kernels/kernel_server/server.py +0 -0
  157. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/fps_kernels/main.py +0 -0
  158. {jupyverse-0.8.4/plugins/lab/fps_lab → jupyverse-0.9.0/plugins/kernels/fps_kernels}/py.typed +0 -0
  159. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/kernels/fps_kernels/routes.py +0 -0
  160. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/lab/COPYING.md +0 -0
  161. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/lab/README.md +0 -0
  162. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/lab/fps_lab/__init__.py +0 -0
  163. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/lab/fps_lab/main.py +0 -0
  164. {jupyverse-0.8.4/plugins/login/fps_login → jupyverse-0.9.0/plugins/lab/fps_lab}/py.typed +0 -0
  165. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/lab/fps_lab/routes.py +0 -0
  166. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/lab/fps_lab/static/favicon.ico +0 -0
  167. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/COPYING.md +0 -0
  168. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/README.md +0 -0
  169. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/__init__.py +0 -0
  170. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/main.py +0 -0
  171. {jupyverse-0.8.4/plugins/nbconvert/fps_nbconvert → jupyverse-0.9.0/plugins/login/fps_login}/py.typed +0 -0
  172. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/routes.py +0 -0
  173. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/static/favicons/favicon-busy-1.ico +0 -0
  174. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/static/favicons/favicon-busy-2.ico +0 -0
  175. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/static/favicons/favicon-busy-3.ico +0 -0
  176. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/static/favicons/favicon-file.ico +0 -0
  177. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/static/favicons/favicon-notebook.ico +0 -0
  178. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/static/favicons/favicon-terminal.ico +0 -0
  179. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/static/favicons/favicon.ico +0 -0
  180. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/static/index.html +0 -0
  181. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/static/logo/github.svg +0 -0
  182. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/static/logo/logo.png +0 -0
  183. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/login/fps_login/static/style/index.css +0 -0
  184. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/nbconvert/COPYING.md +0 -0
  185. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/nbconvert/README.md +0 -0
  186. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/nbconvert/fps_nbconvert/__init__.py +0 -0
  187. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/nbconvert/fps_nbconvert/main.py +0 -0
  188. {jupyverse-0.8.4/plugins/noauth/fps_noauth → jupyverse-0.9.0/plugins/nbconvert/fps_nbconvert}/py.typed +0 -0
  189. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/nbconvert/fps_nbconvert/routes.py +0 -0
  190. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/noauth/COPYING.md +0 -0
  191. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/noauth/README.md +0 -0
  192. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/noauth/fps_noauth/__init__.py +0 -0
  193. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/noauth/fps_noauth/backends.py +0 -0
  194. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/noauth/fps_noauth/main.py +0 -0
  195. {jupyverse-0.8.4/plugins/notebook/fps_notebook → jupyverse-0.9.0/plugins/noauth/fps_noauth}/py.typed +0 -0
  196. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/notebook/COPYING.md +0 -0
  197. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/notebook/README.md +0 -0
  198. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/notebook/fps_notebook/__init__.py +0 -0
  199. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/notebook/fps_notebook/main.py +0 -0
  200. {jupyverse-0.8.4/plugins/resource_usage/fps_resource_usage → jupyverse-0.9.0/plugins/notebook/fps_notebook}/py.typed +0 -0
  201. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/notebook/fps_notebook/routes.py +0 -0
  202. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/resource_usage/COPYING.md +0 -0
  203. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/resource_usage/README.md +0 -0
  204. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/resource_usage/fps_resource_usage/__init__.py +0 -0
  205. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/resource_usage/fps_resource_usage/main.py +0 -0
  206. {jupyverse-0.8.4/plugins/terminals/fps_terminals → jupyverse-0.9.0/plugins/resource_usage/fps_resource_usage}/py.typed +0 -0
  207. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/resource_usage/fps_resource_usage/routes.py +0 -0
  208. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/terminals/COPYING.md +0 -0
  209. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/terminals/README.md +0 -0
  210. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/terminals/fps_terminals/__init__.py +0 -0
  211. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/terminals/fps_terminals/main.py +0 -0
  212. {jupyverse-0.8.4/plugins/webdav/fps_webdav → jupyverse-0.9.0/plugins/terminals/fps_terminals}/py.typed +0 -0
  213. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/terminals/fps_terminals/routes.py +0 -0
  214. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/terminals/fps_terminals/server.py +0 -0
  215. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/terminals/fps_terminals/win_server.py +0 -0
  216. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/webdav/COPYING.md +0 -0
  217. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/webdav/README.md +0 -0
  218. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/webdav/fps_webdav/__init__.py +0 -0
  219. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/webdav/fps_webdav/config.py +0 -0
  220. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/webdav/fps_webdav/main.py +0 -0
  221. {jupyverse-0.8.4/plugins/yjs/fps_yjs → jupyverse-0.9.0/plugins/webdav/fps_webdav}/py.typed +0 -0
  222. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/webdav/fps_webdav/routes.py +0 -0
  223. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/webdav/tests/conftest.py +0 -0
  224. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/webdav/tests/test_webdav.py +0 -0
  225. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/COPYING.md +0 -0
  226. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/README.md +0 -0
  227. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/__init__.py +0 -0
  228. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/ywebsocket/__init__.py +0 -0
  229. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/ywebsocket/asgi_server.py +0 -0
  230. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/ywebsocket/awareness.py +0 -0
  231. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/ywebsocket/django_channels_consumer.py +0 -0
  232. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/ywebsocket/websocket.py +0 -0
  233. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/ywebsocket/websocket_provider.py +0 -0
  234. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/ywebsocket/websocket_server.py +0 -0
  235. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/ywebsocket/yroom.py +0 -0
  236. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/ywebsocket/ystore.py +0 -0
  237. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/ywebsocket/yutils.py +0 -0
  238. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/ywidgets/__init__.py +0 -0
  239. {jupyverse-0.8.4 → jupyverse-0.9.0}/plugins/yjs/fps_yjs/ywidgets/widgets.py +0 -0
  240. {jupyverse-0.8.4 → jupyverse-0.9.0}/pytest.ini +0 -0
  241. {jupyverse-0.8.4 → jupyverse-0.9.0}/tests/conftest.py +0 -0
  242. {jupyverse-0.8.4 → jupyverse-0.9.0}/tests/data/notebook0.ipynb +0 -0
  243. {jupyverse-0.8.4 → jupyverse-0.9.0}/tests/data/notebook1.ipynb +0 -0
  244. {jupyverse-0.8.4 → jupyverse-0.9.0}/tests/test_app.py +0 -0
  245. {jupyverse-0.8.4 → jupyverse-0.9.0}/tests/test_contents.py +0 -0
  246. {jupyverse-0.8.4 → jupyverse-0.9.0}/tests/test_server.py +0 -0
  247. {jupyverse-0.8.4 → jupyverse-0.9.0}/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.11.10
19
+ rev: v0.11.12
20
20
  hooks:
21
21
  - id: ruff
22
22
  args: ["--fix"]
@@ -1,5 +1,9 @@
1
1
  # Version history
2
2
 
3
+ ## 0.9.0
4
+
5
+ - Extract out file ID from contents to its own plugin.
6
+
3
7
  ## 0.8.4
4
8
 
5
9
  - Check if `labextensions` directory exists.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jupyverse
3
- Version: 0.8.4
3
+ Version: 0.9.0
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>
@@ -9,15 +9,16 @@ License-File: COPYING.md
9
9
  Keywords: fastapi,jupyter,plugins,server
10
10
  Requires-Python: >=3.9
11
11
  Requires-Dist: eval-type-backport; python_version < '3.10'
12
- Requires-Dist: fps-contents<0.9.0,>=0.8.0
12
+ Requires-Dist: fps-contents<0.10.0,>=0.9.0
13
+ Requires-Dist: fps-file-id<0.2.0,>=0.1.0
13
14
  Requires-Dist: fps-frontend<0.9.0,>=0.8.0
14
15
  Requires-Dist: fps-kernels<0.9.0,>=0.8.0
15
16
  Requires-Dist: fps-lab<0.9.0,>=0.8.1
16
17
  Requires-Dist: fps-nbconvert<0.9.0,>=0.8.0
17
18
  Requires-Dist: fps-terminals<0.9.0,>=0.8.0
18
- Requires-Dist: fps-yjs<0.9.0,>=0.8.0
19
+ Requires-Dist: fps-yjs<0.10.0,>=0.9.0
19
20
  Requires-Dist: fps[anycorn,click,fastapi]<0.5.0,>=0.4.0
20
- Requires-Dist: jupyverse-api<0.9.0,>=0.8.2
21
+ Requires-Dist: jupyverse-api<0.10.0,>=0.9.0
21
22
  Requires-Dist: rich-click<2,>=1.6.1
22
23
  Provides-Extra: auth
23
24
  Requires-Dist: fps-auth<0.9.0,>=0.8.0; extra == 'auth'
@@ -12,24 +12,6 @@ from ..auth import Auth, User
12
12
  from .models import Checkpoint, Content, SaveContent
13
13
 
14
14
 
15
- class FileIdManager(ABC):
16
- @abstractmethod
17
- async def start(self) -> None: ...
18
-
19
- @abstractmethod
20
- async def stop(self) -> None: ...
21
-
22
- @abstractmethod
23
- async def get_path(self, file_id: str) -> str: ...
24
-
25
- @abstractmethod
26
- async def get_id(self, file_path: str) -> str: ...
27
-
28
- def watch(self, path: str): ...
29
-
30
- def unwatch(self, path: str, watcher): ...
31
-
32
-
33
15
  class Contents(Router, ABC):
34
16
  file_lock: ResourceLock
35
17
 
@@ -108,10 +90,6 @@ class Contents(Router, ABC):
108
90
 
109
91
  self.include_router(router)
110
92
 
111
- @property
112
- @abstractmethod
113
- def file_id_manager(self) -> FileIdManager: ...
114
-
115
93
  @abstractmethod
116
94
  async def read_content(
117
95
  self, path: str | Path, get_content: bool, file_format: str | None = None
@@ -0,0 +1,24 @@
1
+ from __future__ import annotations
2
+
3
+ from abc import ABC, abstractmethod
4
+
5
+
6
+ class FileId(ABC):
7
+ @abstractmethod
8
+ async def start(self) -> None: ...
9
+
10
+ @abstractmethod
11
+ async def stop(self) -> None: ...
12
+
13
+ @abstractmethod
14
+ async def get_path(self, file_id: str) -> str | None: ...
15
+
16
+ @abstractmethod
17
+ async def get_id(self, file_path: str) -> str | None: ...
18
+
19
+ @abstractmethod
20
+ async def index(self, path: str) -> str | None: ...
21
+
22
+ def watch(self, path: str): ...
23
+
24
+ def unwatch(self, path: str, watcher): ...
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "jupyverse_api"
7
- version = "0.8.2"
7
+ version = "0.9.0"
8
8
  description = "The public API for Jupyverse"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -6,12 +6,12 @@ build-backend = "hatchling.build"
6
6
  name = "fps_auth"
7
7
  description = "An FPS plugin for the authentication API"
8
8
  keywords = ["jupyter", "server", "fastapi", "plugins"]
9
- version = "0.8.0"
9
+ version = "0.8.1"
10
10
  requires-python = ">=3.9"
11
11
  dependencies = [
12
12
  "aiosqlite",
13
13
  "fastapi-users[sqlalchemy,oauth] >=14.0.1,<15.0.0",
14
- "jupyverse-api >=0.8.0,<0.9.0",
14
+ "jupyverse-api >=0.9.0,<0.10.0",
15
15
  ]
16
16
 
17
17
  [[project.authors]]
@@ -6,11 +6,11 @@ build-backend = "hatchling.build"
6
6
  name = "fps_auth_fief"
7
7
  description = "An FPS plugin for the authentication API, using Fief"
8
8
  keywords = ["jupyter", "server", "fastapi", "plugins"]
9
- version = "0.8.0"
9
+ version = "0.8.1"
10
10
  requires-python = ">=3.8"
11
11
  dependencies = [
12
12
  "fief-client[fastapi]",
13
- "jupyverse-api >=0.8.0,<0.9.0",
13
+ "jupyverse-api >=0.9.0,<0.10.0",
14
14
  ]
15
15
 
16
16
  [[project.authors]]
@@ -6,13 +6,13 @@ build-backend = "hatchling.build"
6
6
  name = "fps_auth_jupyterhub"
7
7
  description = "An FPS plugin for the authentication API, using JupyterHbu"
8
8
  keywords = ["jupyter", "server", "fastapi", "plugins"]
9
- version = "0.8.0"
9
+ version = "0.8.1"
10
10
  requires-python = ">=3.9"
11
11
  dependencies = [
12
12
  "aiosqlite",
13
13
  "httpx >=0.24.1,<1",
14
14
  "jupyterhub >=4.0.1,<5",
15
- "jupyverse-api >=0.8.0,<0.9.0",
15
+ "jupyverse-api >=0.9.0,<0.10.0",
16
16
  "anyio",
17
17
  ]
18
18
 
@@ -23,12 +23,8 @@ from jupyverse_api.contents.models import (
23
23
  SaveContent,
24
24
  )
25
25
 
26
- from .fileid import FileIdManager
27
-
28
26
 
29
27
  class _Contents(Contents):
30
- _file_id_manager: FileIdManager | None = None
31
-
32
28
  async def create_checkpoint(
33
29
  self,
34
30
  path,
@@ -251,12 +247,6 @@ class _Contents(Contents):
251
247
  content.content = cast(str, content.content)
252
248
  await f.write(content.content)
253
249
 
254
- @property
255
- def file_id_manager(self):
256
- if self._file_id_manager is None:
257
- self._file_id_manager = FileIdManager()
258
- return self._file_id_manager
259
-
260
250
 
261
251
  def get_available_path(path: Path, sep: str = "") -> Path:
262
252
  directory = path.parent
@@ -8,12 +8,10 @@ description = "An FPS plugin for the contents API"
8
8
  keywords = ["jupyter", "server", "fastapi", "plugins"]
9
9
  requires-python = ">=3.9"
10
10
  dependencies = [
11
- "watchfiles >=1.0.4,<2",
12
- "sqlite-anyio >=0.2.0,<0.3.0",
13
11
  "anyio>=3.6.2,<5",
14
- "jupyverse-api >=0.8.0,<0.9.0",
12
+ "jupyverse-api >=0.9.0,<0.10.0",
15
13
  ]
16
- version = "0.8.0"
14
+ version = "0.9.0"
17
15
  [[project.authors]]
18
16
  name = "Jupyter Development Team"
19
17
  email = "jupyter@googlegroups.com"
@@ -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,3 @@
1
+ # fps-contents
2
+
3
+ An FPS plugin for the file ID API.
@@ -0,0 +1,6 @@
1
+ import importlib.metadata
2
+
3
+ try:
4
+ __version__ = importlib.metadata.version("fps_file_id")
5
+ except importlib.metadata.PackageNotFoundError:
6
+ __version__ = "unknown"
@@ -9,6 +9,8 @@ from anyio import Event, Lock, Path
9
9
  from sqlite_anyio import connect
10
10
  from watchfiles import Change, awatch
11
11
 
12
+ from jupyverse_api.file_id import FileId
13
+
12
14
  logger = structlog.get_logger()
13
15
  watchfiles_logger = logging.getLogger("watchfiles")
14
16
  watchfiles_logger.setLevel(logging.WARNING)
@@ -32,7 +34,7 @@ class Watcher:
32
34
  self._event.set()
33
35
 
34
36
 
35
- class FileIdManager:
37
+ class _FileId(FileId):
36
38
  db_path: str
37
39
  initialized: Event
38
40
  watchers: dict[str, list[Watcher]]
@@ -0,0 +1,16 @@
1
+ from anyio import create_task_group
2
+ from fps import Module
3
+
4
+ from jupyverse_api.file_id import FileId
5
+
6
+ from .file_id import _FileId
7
+
8
+
9
+ class FileIdModule(Module):
10
+ async def prepare(self) -> None:
11
+ self.file_id = _FileId()
12
+
13
+ async with create_task_group() as tg:
14
+ tg.start_soon(self.file_id.start)
15
+ self.put(self.file_id, FileId, teardown_callback=self.file_id.stop)
16
+ self.done()
@@ -0,0 +1,33 @@
1
+ [build-system]
2
+ requires = [ "hatchling",]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "fps_file_id"
7
+ description = "An FPS plugin for the file ID API"
8
+ keywords = ["jupyter", "server", "fastapi", "plugins"]
9
+ requires-python = ">=3.9"
10
+ dependencies = [
11
+ "watchfiles >=1.0.4,<2",
12
+ "sqlite-anyio >=0.2.0,<0.3.0",
13
+ "anyio>=3.6.2,<5",
14
+ "jupyverse-api >=0.9.0,<0.10.0",
15
+ ]
16
+ version = "0.1.0"
17
+ [[project.authors]]
18
+ name = "Jupyter Development Team"
19
+ email = "jupyter@googlegroups.com"
20
+
21
+ [project.readme]
22
+ file = "README.md"
23
+ content-type = "text/markdown"
24
+
25
+ [project.license]
26
+ text = "BSD 3-Clause License"
27
+
28
+ [project.urls]
29
+ Homepage = "https://jupyter.org"
30
+
31
+ [project.entry-points]
32
+ "fps.modules" = {file_id = "fps_file_id.main:FileIdModule"}
33
+ "jupyverse.modules" = {file_id = "fps_file_id.main:FileIdModule"}
@@ -8,9 +8,9 @@ description = "An FPS plugin for the frontend related configuration"
8
8
  keywords = ["jupyter", "server", "fastapi", "plugins"]
9
9
  requires-python = ">=3.9"
10
10
  dependencies = [
11
- "jupyverse-api >=0.8.0,<0.9.0",
11
+ "jupyverse-api >=0.9.0,<0.10.0",
12
12
  ]
13
- version = "0.8.0"
13
+ version = "0.8.1"
14
14
 
15
15
  [[project.authors]]
16
16
  name = "Jupyter Development Team"
@@ -9,9 +9,9 @@ keywords = [ "jupyter", "server", "fastapi", "plugins" ]
9
9
  requires-python = ">=3.9"
10
10
  dependencies = [
11
11
  "jupyterlab-js >=4.4.2,<5",
12
- "jupyverse-api >=0.8.0,<0.9.0",
12
+ "jupyverse-api >=0.9.0,<0.10.0",
13
13
  ]
14
- version = "0.8.0"
14
+ version = "0.8.1"
15
15
  [[project.authors]]
16
16
  name = "Jupyter Development Team"
17
17
  email = "jupyter@googlegroups.com"
@@ -14,11 +14,11 @@ dependencies = [
14
14
  "python-dateutil",
15
15
  "types-python-dateutil",
16
16
  "watchfiles >=1.0.4,<2",
17
- "jupyverse-api >=0.8.0,<0.9.0",
17
+ "jupyverse-api >=0.9.0,<0.10.0",
18
18
  "pycrdt >=0.10.3,<0.13.0",
19
19
  "anyio",
20
20
  ]
21
- version = "0.8.0"
21
+ version = "0.8.1"
22
22
  [[project.authors]]
23
23
  name = "Jupyter Development Team"
24
24
  email = "jupyter@googlegroups.com"
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "fps_lab"
7
- version = "0.8.1"
7
+ version = "0.8.2"
8
8
  description = "An FPS plugin for the JupyterLab/Notebook API"
9
9
  keywords = ["jupyter", "server", "fastapi", "plugins"]
10
10
  requires-python = ">=3.9"
@@ -12,7 +12,7 @@ dependencies = [
12
12
  "importlib_metadata >=3.6; python_version<'3.10'",
13
13
  "babel",
14
14
  "json5",
15
- "jupyverse-api >=0.8.0,<0.9.0",
15
+ "jupyverse-api >=0.9.0,<0.10.0",
16
16
  ]
17
17
  [[project.authors]]
18
18
  name = "Jupyter Development Team"
@@ -8,9 +8,9 @@ description = "An FPS plugin for the login API"
8
8
  keywords = ["jupyter", "server", "fastapi", "plugins"]
9
9
  requires-python = ">=3.9"
10
10
  dependencies = [
11
- "jupyverse-api >=0.8.0,<0.9.0",
11
+ "jupyverse-api >=0.9.0,<0.10.0",
12
12
  ]
13
- version = "0.8.0"
13
+ version = "0.8.1"
14
14
  [[project.authors]]
15
15
  name = "Jupyter Development Team"
16
16
  email = "jupyter@googlegroups.com"
@@ -9,9 +9,9 @@ keywords = ["jupyter", "server", "fastapi", "plugins"]
9
9
  requires-python = ">=3.9"
10
10
  dependencies = [
11
11
  "nbconvert",
12
- "jupyverse-api >=0.8.0,<0.9.0",
12
+ "jupyverse-api >=0.9.0,<0.10.0",
13
13
  ]
14
- version = "0.8.0"
14
+ version = "0.8.1"
15
15
  [[project.authors]]
16
16
  name = "Jupyter Development Team"
17
17
  email = "jupyter@googlegroups.com"
@@ -6,10 +6,10 @@ build-backend = "hatchling.build"
6
6
  name = "fps_noauth"
7
7
  description = "An FPS plugin for an unprotected API"
8
8
  keywords = ["jupyter", "server", "fastapi", "plugins"]
9
- version = "0.8.0"
9
+ version = "0.8.1"
10
10
  requires-python = ">=3.9"
11
11
  dependencies = [
12
- "jupyverse-api >=0.8.0,<0.9.0",
12
+ "jupyverse-api >=0.9.0,<0.10.0",
13
13
  ]
14
14
 
15
15
  [[project.authors]]
@@ -9,9 +9,9 @@ keywords = ["jupyter", "server", "fastapi", "plugins"]
9
9
  requires-python = ">=3.9"
10
10
  dependencies = [
11
11
  "notebook-frontend >=7.4.2,<8.0.0",
12
- "jupyverse-api >=0.8.0,<0.9.0",
12
+ "jupyverse-api >=0.9.0,<0.10.0",
13
13
  ]
14
- version = "0.8.0"
14
+ version = "0.8.1"
15
15
  [[project.authors]]
16
16
  name = "Jupyter Development Team"
17
17
  email = "jupyter@googlegroups.com"
@@ -11,9 +11,9 @@ dependencies = [
11
11
  "psutil >=5.9.4",
12
12
  "types-psutil",
13
13
  "anyio >=3.6.2,<5",
14
- "jupyverse-api >=0.8.0,<0.9.0",
14
+ "jupyverse-api >=0.9.0,<0.10.0",
15
15
  ]
16
- version = "0.8.0"
16
+ version = "0.8.1"
17
17
  [[project.authors]]
18
18
  name = "Jupyter Development Team"
19
19
  email = "jupyter@googlegroups.com"
@@ -10,10 +10,10 @@ requires-python = ">=3.9"
10
10
  dependencies = [
11
11
  "websockets",
12
12
  "pywinpty;platform_system=='Windows'",
13
- "jupyverse-api >=0.8.0,<0.9.0",
13
+ "jupyverse-api >=0.9.0,<0.10.0",
14
14
  "anyio >=4.8.0,<5.0.0",
15
15
  ]
16
- version = "0.8.0"
16
+ version = "0.8.1"
17
17
  [[project.authors]]
18
18
  name = "Jupyter Development Team"
19
19
  email = "jupyter@googlegroups.com"
@@ -9,9 +9,9 @@ keywords = ["jupyter", "server", "fastapi", "plugins"]
9
9
  requires-python = ">=3.9"
10
10
  dependencies = [
11
11
  "asgiwebdav>=1.3.2,<2; python_version >= '3.10'",
12
- "jupyverse-api >=0.8.0,<0.9.0",
12
+ "jupyverse-api >=0.9.0,<0.10.0",
13
13
  ]
14
- version = "0.8.0"
14
+ version = "0.8.1"
15
15
  [[project.authors]]
16
16
  name = "Jupyter Development Team"
17
17
  email = "jupyter@googlegroups.com"
@@ -6,6 +6,7 @@ from fps import Module
6
6
  from jupyverse_api.app import App
7
7
  from jupyverse_api.auth import Auth
8
8
  from jupyverse_api.contents import Contents
9
+ from jupyverse_api.file_id import FileId
9
10
  from jupyverse_api.main import Lifespan
10
11
  from jupyverse_api.yjs import Yjs, YjsConfig
11
12
 
@@ -22,10 +23,11 @@ class YjsModule(Module):
22
23
 
23
24
  app = await self.get(App)
24
25
  auth = await self.get(Auth) # type: ignore[type-abstract]
25
- self.contents = await self.get(Contents) # type: ignore[type-abstract]
26
+ contents = await self.get(Contents) # type: ignore[type-abstract]
27
+ file_id = await self.get(FileId) # type: ignore[type-abstract]
26
28
  lifespan = await self.get(Lifespan)
27
29
 
28
- self.yjs = _Yjs(app, auth, self.contents, lifespan)
30
+ self.yjs = _Yjs(app, auth, contents, file_id, lifespan)
29
31
 
30
32
  async with create_task_group() as tg:
31
33
  await tg.start(self.yjs.start)
File without changes
@@ -24,6 +24,7 @@ from jupyverse_api import ResourceLock
24
24
  from jupyverse_api.app import App
25
25
  from jupyverse_api.auth import Auth, User
26
26
  from jupyverse_api.contents import Contents
27
+ from jupyverse_api.file_id import FileId
27
28
  from jupyverse_api.main import Lifespan
28
29
  from jupyverse_api.yjs import Yjs
29
30
  from jupyverse_api.yjs.models import CreateDocumentSession
@@ -48,10 +49,12 @@ class _Yjs(Yjs):
48
49
  app: App,
49
50
  auth: Auth,
50
51
  contents: Contents,
52
+ file_id: FileId,
51
53
  lifespan: Lifespan,
52
54
  ) -> None:
53
55
  super().__init__(app=app, auth=auth)
54
56
  self.contents = contents
57
+ self.file_id = file_id
55
58
  self.lifespan = lifespan
56
59
  if Widgets is None:
57
60
  self.widgets = None
@@ -60,14 +63,12 @@ class _Yjs(Yjs):
60
63
 
61
64
  async def start(self, *, task_status: TaskStatus[None] = TASK_STATUS_IGNORED) -> None:
62
65
  async with create_task_group() as tg:
63
- self.room_manager = RoomManager(self.contents, self.lifespan)
66
+ self.room_manager = RoomManager(self.contents, self.file_id, self.lifespan)
64
67
  tg.start_soon(self.room_manager.start)
65
- tg.start_soon(self.contents.file_id_manager.start)
66
68
  task_status.started()
67
69
 
68
70
  async def stop(self) -> None:
69
71
  await self.room_manager.stop()
70
- await self.contents.file_id_manager.stop()
71
72
 
72
73
  async def collaboration_room_websocket(
73
74
  self,
@@ -91,7 +92,7 @@ class _Yjs(Yjs):
91
92
  # we need to process the request manually
92
93
  # see https://github.com/tiangolo/fastapi/issues/3373#issuecomment-1306003451
93
94
  create_document_session = CreateDocumentSession(**(await request.json()))
94
- idx = await self.contents.file_id_manager.get_id(path)
95
+ idx = await self.file_id.get_id(path)
95
96
  res = {
96
97
  "format": create_document_session.format,
97
98
  "type": create_document_session.type,
@@ -101,7 +102,7 @@ class _Yjs(Yjs):
101
102
  res["fileId"] = idx
102
103
  return res
103
104
 
104
- idx = await self.contents.file_id_manager.index(path)
105
+ idx = await self.file_id.index(path)
105
106
  if idx is None:
106
107
  raise HTTPException(status_code=404, detail=f"File {path} does not exist")
107
108
 
@@ -154,6 +155,7 @@ class YWebsocket:
154
155
 
155
156
  class RoomManager:
156
157
  contents: Contents
158
+ file_id: FileId
157
159
  lifespan: Lifespan
158
160
  documents: dict[str, YBaseDoc]
159
161
  watchers: dict[str, Task]
@@ -163,8 +165,9 @@ class RoomManager:
163
165
  websocket_server: JupyterWebsocketServer
164
166
  room_lock: ResourceLock
165
167
 
166
- def __init__(self, contents: Contents, lifespan: Lifespan):
168
+ def __init__(self, contents: Contents, file_id: FileId, lifespan: Lifespan):
167
169
  self.contents = contents
170
+ self.file_id = file_id
168
171
  self.lifespan = lifespan
169
172
  self.documents = {} # a dictionary of room_name:document
170
173
  self.watchers = {} # a dictionary of file_id:task
@@ -205,7 +208,8 @@ class RoomManager:
205
208
  if room in self.cleaners:
206
209
  del self.cleaners[room]
207
210
  if not room.ready:
208
- file_path = await self.contents.file_id_manager.get_path(file_id)
211
+ file_path = await self.file_id.get_path(file_id)
212
+ assert file_path is not None
209
213
  logger.info(
210
214
  "Opening collaboration room",
211
215
  room_id=websocket.path,
@@ -287,9 +291,9 @@ class RoomManager:
287
291
  return skip
288
292
 
289
293
  async def get_file_path(self, file_id: str, document) -> str | None:
290
- file_path = await self.contents.file_id_manager.get_path(file_id)
294
+ file_path = await self.file_id.get_path(file_id)
291
295
  if file_path is None:
292
- return
296
+ return None
293
297
  if file_path != document.path:
294
298
  document.path = file_path
295
299
  return file_path
@@ -299,14 +303,14 @@ class RoomManager:
299
303
  assert file_path is not None
300
304
  logger.info("Watching file", path=file_path)
301
305
  # FIXME: handle file rename/move?
302
- watcher = self.contents.file_id_manager.watch(file_path)
306
+ watcher = self.file_id.watch(file_path)
303
307
  async for changes in watcher:
304
308
  new_file_path = await self.get_file_path(file_id, document)
305
309
  if new_file_path is None:
306
310
  continue
307
311
  if new_file_path != file_path:
308
312
  # file was renamed
309
- self.contents.file_id_manager.unwatch(file_path, watcher)
313
+ self.file_id.unwatch(file_path, watcher)
310
314
  file_path = new_file_path
311
315
  # break
312
316
  await self.maybe_load_file(file_format, file_path, file_id)
@@ -10,11 +10,11 @@ requires-python = ">=3.9"
10
10
  dependencies = [
11
11
  "importlib_metadata >=3.6; python_version<'3.10'",
12
12
  "pycrdt >=0.9.0,<0.13.0",
13
- "jupyverse-api >=0.8.0,<0.9.0",
13
+ "jupyverse-api >=0.9.0,<0.10.0",
14
14
  "sqlite-anyio >=0.2.0,<0.3.0",
15
15
  "jupyter_ydoc>3.0.1,<4.0.0",
16
16
  ]
17
- version = "0.8.0"
17
+ version = "0.9.0"
18
18
  [[project.authors]]
19
19
  name = "Jupyter Development Team"
20
20
  email = "jupyter@googlegroups.com"