jupyverse 0.10.9__tar.gz → 0.10.13__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.
- {jupyverse-0.10.9 → jupyverse-0.10.13}/.pre-commit-config.yaml +2 -2
- {jupyverse-0.10.9 → jupyverse-0.10.13}/CHANGELOG.md +10 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/PKG-INFO +7 -6
- jupyverse-0.10.13/docs/plugins/contents.md +1 -0
- jupyverse-0.10.13/jupyverse_api/jupyverse_api/file_watcher/__init__.py +26 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/kernels/__init__.py +1 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/pyproject.toml +1 -1
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/file_id/fps_file_id/file_id.py +6 -7
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/file_id/fps_file_id/main.py +3 -1
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/file_id/pyproject.toml +2 -3
- jupyverse-0.10.13/plugins/file_watcher/README.md +3 -0
- jupyverse-0.10.13/plugins/file_watcher/fps_file_watcher/__init__.py +6 -0
- jupyverse-0.10.13/plugins/file_watcher/fps_file_watcher/file_watcher.py +25 -0
- jupyverse-0.10.13/plugins/file_watcher/fps_file_watcher/main.py +11 -0
- jupyverse-0.10.13/plugins/file_watcher/pyproject.toml +31 -0
- jupyverse-0.10.13/plugins/file_watcher_poll/README.md +3 -0
- jupyverse-0.10.13/plugins/file_watcher_poll/fps_file_watcher_poll/__init__.py +6 -0
- jupyverse-0.10.13/plugins/file_watcher_poll/fps_file_watcher_poll/file_watcher.py +18 -0
- jupyverse-0.10.13/plugins/file_watcher_poll/fps_file_watcher_poll/main.py +11 -0
- jupyverse-0.10.13/plugins/file_watcher_poll/pyproject.toml +31 -0
- jupyverse-0.10.13/plugins/kernel_subprocess/COPYING.md +59 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernel_subprocess/fps_kernel_subprocess/kernel_subprocess.py +56 -20
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernel_subprocess/fps_kernel_subprocess/main.py +1 -1
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernel_subprocess/pyproject.toml +2 -2
- jupyverse-0.10.13/plugins/kernel_web_worker/COPYING.md +59 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/fps_kernels/kernel_server/server.py +4 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/fps_kernels/main.py +3 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/fps_kernels/routes.py +6 -11
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/pyproject.toml +2 -6
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/tests/test_kernel_launcher.py +3 -0
- jupyverse-0.10.13/plugins/webdav/fps_webdav/py.typed +0 -0
- jupyverse-0.10.13/plugins/yjs/fps_yjs/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/pyproject.toml +1 -7
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/tests/test_yjs.py +3 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/pyproject.toml +16 -8
- {jupyverse-0.10.9 → jupyverse-0.10.13}/tests/conftest.py +1 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/tests/test_auth.py +3 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/tests/test_execute.py +3 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/tests/test_kernels.py +3 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/tests/test_settings.py +3 -0
- jupyverse-0.10.9/docs/plugins/contents.md +0 -1
- {jupyverse-0.10.9 → jupyverse-0.10.13}/.devcontainer/devcontainer.json +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/.devcontainer/requirements.txt +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/.github/workflows/publish-release.yml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/.github/workflows/test.yml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/.gitignore +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/binder/environment.yml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/binder/jupyter_notebook_config.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/binder/postBuild +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/binder/start +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/index.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/install.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/jupyter.svg +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/plugins/auth.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/plugins/frontend.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/plugins/jupyterlab.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/plugins/kernels.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/plugins/lab.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/plugins/login.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/plugins/nbconvert.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/plugins/notebook.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/plugins/resource_usage.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/plugins/terminals.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/plugins/yjs.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/tutorials/jupyterhub_jupyverse_deployment.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/tutorials/standalone_jupyverse_deployment.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/usage/microservices.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/usage/multi_user.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/docs/usage/single_user.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/app/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/asgi_websocket_transport.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/auth/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/auth/models.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/cli.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/contents/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/contents/models.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/exceptions.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/file_id/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/frontend/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/jupyterlab/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/kernel/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/kernels/models.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/lab/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/login/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/main/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/nbconvert/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/notebook/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/resource_usage/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/terminals/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/terminals/models.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/yjs/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/jupyverse_api/jupyverse_api/yjs/models.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/mkdocs.yml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/notebooks/admin_users.ipynb +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/notebooks/admin_users.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth/fps_auth/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth/fps_auth/backends.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth/fps_auth/config.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth/fps_auth/db.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth/fps_auth/main.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth/fps_auth/models.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth/fps_auth/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth/fps_auth/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_fief/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_fief/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_fief/fps_auth_fief/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_fief/fps_auth_fief/backend.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_fief/fps_auth_fief/config.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_fief/fps_auth_fief/main.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_fief/fps_auth_fief/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_fief/fps_auth_fief/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_fief/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_jupyterhub/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_jupyterhub/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_jupyterhub/fps_auth_jupyterhub/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_jupyterhub/fps_auth_jupyterhub/config.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_jupyterhub/fps_auth_jupyterhub/db.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_jupyterhub/fps_auth_jupyterhub/launch.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_jupyterhub/fps_auth_jupyterhub/main.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_jupyterhub/fps_auth_jupyterhub/models.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_jupyterhub/fps_auth_jupyterhub/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_jupyterhub/fps_auth_jupyterhub/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/auth_jupyterhub/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/contents/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/contents/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/contents/fps_contents/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/contents/fps_contents/main.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/contents/fps_contents/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/contents/fps_contents/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/contents/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/file_id/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/file_id/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/file_id/fps_file_id/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/file_id/fps_file_id/py.typed +0 -0
- {jupyverse-0.10.9/plugins/kernel_subprocess → jupyverse-0.10.13/plugins/file_watcher}/COPYING.md +0 -0
- {jupyverse-0.10.9/plugins/frontend/fps_frontend → jupyverse-0.10.13/plugins/file_watcher/fps_file_watcher}/py.typed +0 -0
- {jupyverse-0.10.9/plugins/kernel_web_worker → jupyverse-0.10.13/plugins/file_watcher_poll}/COPYING.md +0 -0
- {jupyverse-0.10.9/plugins/jupyterlab/fps_jupyterlab → jupyverse-0.10.13/plugins/file_watcher_poll/fps_file_watcher_poll}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/frontend/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/frontend/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/frontend/fps_frontend/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/frontend/fps_frontend/main.py +0 -0
- {jupyverse-0.10.9/plugins/kernel_subprocess/fps_kernel_subprocess → jupyverse-0.10.13/plugins/frontend/fps_frontend}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/frontend/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/jupyterlab/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/jupyterlab/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/jupyterlab/fps_jupyterlab/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/jupyterlab/fps_jupyterlab/index.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/jupyterlab/fps_jupyterlab/main.py +0 -0
- {jupyverse-0.10.9/plugins/kernel_web_worker/fps_kernel_web_worker → jupyverse-0.10.13/plugins/jupyterlab/fps_jupyterlab}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/jupyterlab/fps_jupyterlab/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/jupyterlab/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernel_subprocess/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernel_subprocess/fps_kernel_subprocess/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernel_subprocess/fps_kernel_subprocess/connect.py +0 -0
- {jupyverse-0.10.9/plugins/kernels/fps_kernels → jupyverse-0.10.13/plugins/kernel_subprocess/fps_kernel_subprocess}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernel_web_worker/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernel_web_worker/fps_kernel_web_worker/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernel_web_worker/fps_kernel_web_worker/kernel_web_worker.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernel_web_worker/fps_kernel_web_worker/main.py +0 -0
- {jupyverse-0.10.9/plugins/lab/fps_lab → jupyverse-0.10.13/plugins/kernel_web_worker/fps_kernel_web_worker}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernel_web_worker/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/fps_kernels/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/fps_kernels/kernel_driver/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/fps_kernels/kernel_driver/driver.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/fps_kernels/kernel_driver/kernelspec.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/fps_kernels/kernel_driver/message.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/fps_kernels/kernel_driver/paths.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/fps_kernels/kernel_server/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernels/fps_kernels/kernel_server/message.py +0 -0
- {jupyverse-0.10.9/plugins/login/fps_login → jupyverse-0.10.13/plugins/kernels/fps_kernels}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/lab/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/lab/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/lab/fps_lab/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/lab/fps_lab/main.py +0 -0
- {jupyverse-0.10.9/plugins/nbconvert/fps_nbconvert → jupyverse-0.10.13/plugins/lab/fps_lab}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/lab/fps_lab/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/lab/fps_lab/static/favicon.ico +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/lab/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/main.py +0 -0
- {jupyverse-0.10.9/plugins/noauth/fps_noauth → jupyverse-0.10.13/plugins/login/fps_login}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/static/favicons/favicon-busy-1.ico +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/static/favicons/favicon-busy-2.ico +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/static/favicons/favicon-busy-3.ico +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/static/favicons/favicon-file.ico +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/static/favicons/favicon-notebook.ico +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/static/favicons/favicon-terminal.ico +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/static/favicons/favicon.ico +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/static/index.html +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/static/logo/github.svg +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/static/logo/logo.png +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/fps_login/static/style/index.css +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/login/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/nbconvert/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/nbconvert/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/nbconvert/fps_nbconvert/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/nbconvert/fps_nbconvert/main.py +0 -0
- {jupyverse-0.10.9/plugins/notebook/fps_notebook → jupyverse-0.10.13/plugins/nbconvert/fps_nbconvert}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/nbconvert/fps_nbconvert/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/nbconvert/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/noauth/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/noauth/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/noauth/fps_noauth/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/noauth/fps_noauth/backends.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/noauth/fps_noauth/main.py +0 -0
- {jupyverse-0.10.9/plugins/resource_usage/fps_resource_usage → jupyverse-0.10.13/plugins/noauth/fps_noauth}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/noauth/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/notebook/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/notebook/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/notebook/fps_notebook/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/notebook/fps_notebook/main.py +0 -0
- {jupyverse-0.10.9/plugins/terminals/fps_terminals → jupyverse-0.10.13/plugins/notebook/fps_notebook}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/notebook/fps_notebook/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/notebook/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/resource_usage/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/resource_usage/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/resource_usage/fps_resource_usage/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/resource_usage/fps_resource_usage/main.py +0 -0
- {jupyverse-0.10.9/plugins/webdav/fps_webdav → jupyverse-0.10.13/plugins/resource_usage/fps_resource_usage}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/resource_usage/fps_resource_usage/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/resource_usage/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/terminals/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/terminals/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/terminals/fps_terminals/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/terminals/fps_terminals/main.py +0 -0
- {jupyverse-0.10.9/plugins/yjs/fps_yjs → jupyverse-0.10.13/plugins/terminals/fps_terminals}/py.typed +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/terminals/fps_terminals/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/terminals/fps_terminals/server.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/terminals/fps_terminals/win_server.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/terminals/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/webdav/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/webdav/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/webdav/fps_webdav/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/webdav/fps_webdav/config.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/webdav/fps_webdav/main.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/webdav/fps_webdav/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/webdav/pyproject.toml +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/webdav/tests/conftest.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/webdav/tests/test_webdav.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/COPYING.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/README.md +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/main.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/routes.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/ywebsocket/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/ywebsocket/asgi_server.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/ywebsocket/awareness.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/ywebsocket/django_channels_consumer.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/ywebsocket/websocket.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/ywebsocket/websocket_provider.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/ywebsocket/websocket_server.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/ywebsocket/yroom.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/ywebsocket/ystore.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/ywebsocket/yutils.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/ywidgets/__init__.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/yjs/fps_yjs/ywidgets/widgets.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/pytest.ini +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/tests/data/notebook0.ipynb +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/tests/data/notebook1.ipynb +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/tests/test_app.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/tests/test_contents.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/tests/test_server.py +0 -0
- {jupyverse-0.10.9 → jupyverse-0.10.13}/tests/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
repos:
|
2
2
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
3
|
-
rev:
|
3
|
+
rev: v6.0.0
|
4
4
|
hooks:
|
5
5
|
- id: end-of-file-fixer
|
6
6
|
- id: check-case-conflict
|
@@ -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.
|
19
|
+
rev: v0.12.11
|
20
20
|
hooks:
|
21
21
|
- id: ruff
|
22
22
|
args: ["--fix"]
|
@@ -1,5 +1,15 @@
|
|
1
1
|
# Version history
|
2
2
|
|
3
|
+
## 0.10.13
|
4
|
+
|
5
|
+
- Support separate kernel environment.
|
6
|
+
|
7
|
+
## 0.10.12
|
8
|
+
|
9
|
+
- Add `FileWatcher` API.
|
10
|
+
- Add `fps-file-watcher`, which uses `watchfiles`.
|
11
|
+
- Add `fps-file-watcher-poll`, which uses `anychange`.
|
12
|
+
|
3
13
|
## 0.10.9
|
4
14
|
|
5
15
|
- Move `ResourceLock` to `anyioutils`.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: jupyverse
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.13
|
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.
|
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
|
-
Requires-Dist: fps-kernel-subprocess<0.2.0,>=0.1.
|
16
|
-
Requires-Dist: fps-kernels<0.
|
16
|
+
Requires-Dist: fps-kernel-subprocess<0.2.0,>=0.1.3
|
17
|
+
Requires-Dist: fps-kernels<0.11.0,>=0.10.3
|
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.
|
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.
|
23
|
+
Requires-Dist: jupyverse-api<0.12.0,>=0.11.3
|
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]: ...
|
@@ -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
|
-
|
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(
|
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
|
-
|
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.
|
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.
|
14
|
+
"jupyverse-api >=0.11.2,<0.12.0",
|
16
15
|
]
|
17
16
|
[[project.authors]]
|
18
17
|
name = "Jupyter Development Team"
|
@@ -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,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.
|
@@ -1,6 +1,7 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
3
|
import json
|
4
|
+
import os
|
4
5
|
import signal
|
5
6
|
import subprocess
|
6
7
|
import sys
|
@@ -9,8 +10,9 @@ from dataclasses import dataclass
|
|
9
10
|
from typing import cast
|
10
11
|
|
11
12
|
import anyio
|
12
|
-
from anyio import TASK_STATUS_IGNORED, create_task_group, open_process
|
13
|
+
from anyio import TASK_STATUS_IGNORED, create_task_group, open_file, open_process, run_process
|
13
14
|
from anyio.abc import TaskStatus
|
15
|
+
from anyio.streams.text import TextReceiveStream
|
14
16
|
|
15
17
|
from jupyverse_api.kernel import Kernel
|
16
18
|
|
@@ -32,6 +34,7 @@ class KernelSubprocess(Kernel):
|
|
32
34
|
kernel_cwd: str | None
|
33
35
|
capture_output: bool
|
34
36
|
connection_cfg: cfg_t | None = None
|
37
|
+
kernelenv_path: str = ""
|
35
38
|
|
36
39
|
def __post_init__(self):
|
37
40
|
super().__init__()
|
@@ -45,6 +48,8 @@ class KernelSubprocess(Kernel):
|
|
45
48
|
raise RuntimeError("No connection_cfg")
|
46
49
|
self.key = cast(str, self.connection_cfg["key"])
|
47
50
|
self.wait_for_ready = True
|
51
|
+
self._process = None
|
52
|
+
self._pid = None
|
48
53
|
|
49
54
|
async def start(self, *, task_status: TaskStatus[None] = TASK_STATUS_IGNORED) -> None:
|
50
55
|
async with (
|
@@ -64,15 +69,12 @@ class KernelSubprocess(Kernel):
|
|
64
69
|
self._from_iopub_receive_stream,
|
65
70
|
create_task_group() as self.task_group,
|
66
71
|
):
|
67
|
-
with
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
"
|
72
|
-
|
73
|
-
"python" + ".".join(map(str, sys.version_info[:2])),
|
74
|
-
}:
|
75
|
-
cmd[0] = sys.executable
|
72
|
+
async with await open_file(self.kernelspec_path) as f:
|
73
|
+
contents = await f.read()
|
74
|
+
kernelspec = json.loads(contents)
|
75
|
+
launch_kernel_cmd = [
|
76
|
+
s.format(connection_file=self.connection_file) for s in kernelspec["argv"]
|
77
|
+
]
|
76
78
|
if self.capture_output:
|
77
79
|
stdout = subprocess.DEVNULL
|
78
80
|
stderr = subprocess.STDOUT
|
@@ -80,7 +82,35 @@ class KernelSubprocess(Kernel):
|
|
80
82
|
stdout = None
|
81
83
|
stderr = None
|
82
84
|
kernel_cwd = self.kernel_cwd if self.kernel_cwd else None
|
83
|
-
|
85
|
+
kernelenv = ""
|
86
|
+
if self.kernelenv_path:
|
87
|
+
path = anyio.Path(self.kernelenv_path)
|
88
|
+
if await path.is_file():
|
89
|
+
kernelenv = await path.read_text()
|
90
|
+
if kernelenv:
|
91
|
+
import yaml # type: ignore[import-untyped]
|
92
|
+
env_name = yaml.load(kernelenv, Loader=yaml.CLoader)["name"]
|
93
|
+
cmd = f"micromamba create -f {self.kernelenv_path} --yes"
|
94
|
+
result = await run_process(cmd)
|
95
|
+
if result.returncode == 0:
|
96
|
+
cmd = """bash -c 'eval "$(micromamba shell hook --shell bash)";""" + \
|
97
|
+
f"micromamba activate {env_name};" + \
|
98
|
+
" ".join(launch_kernel_cmd) + "' & echo $!"
|
99
|
+
process = await open_process(cmd)
|
100
|
+
assert process.stdout is not None
|
101
|
+
async for text in TextReceiveStream(process.stdout):
|
102
|
+
self._pid = int(text)
|
103
|
+
break
|
104
|
+
else:
|
105
|
+
if launch_kernel_cmd and launch_kernel_cmd[0] in {
|
106
|
+
"python",
|
107
|
+
f"python{sys.version_info[0]}",
|
108
|
+
"python" + ".".join(map(str, sys.version_info[:2])),
|
109
|
+
}:
|
110
|
+
launch_kernel_cmd[0] = sys.executable
|
111
|
+
self._process = await open_process(
|
112
|
+
launch_kernel_cmd, stdout=stdout, stderr=stderr, cwd=kernel_cwd
|
113
|
+
)
|
84
114
|
|
85
115
|
assert self.connection_cfg is not None
|
86
116
|
identity = uuid.uuid4().hex.encode("ascii")
|
@@ -108,14 +138,17 @@ class KernelSubprocess(Kernel):
|
|
108
138
|
self.started.set()
|
109
139
|
|
110
140
|
async def stop(self) -> None:
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
141
|
+
if self._process:
|
142
|
+
try:
|
143
|
+
self._process.terminate()
|
144
|
+
except ProcessLookupError:
|
145
|
+
pass
|
146
|
+
await self._process.wait()
|
147
|
+
if self.write_connection_file:
|
148
|
+
path = anyio.Path(self.connection_file)
|
149
|
+
await path.unlink(missing_ok=True)
|
150
|
+
else:
|
151
|
+
os.kill(self._pid, signal.SIGTERM)
|
119
152
|
|
120
153
|
await self.shell_channel.stop()
|
121
154
|
await self.stdin_channel.stop()
|
@@ -124,7 +157,10 @@ class KernelSubprocess(Kernel):
|
|
124
157
|
self.task_group.cancel_scope.cancel()
|
125
158
|
|
126
159
|
async def interrupt(self) -> None:
|
127
|
-
self._process
|
160
|
+
if self._process:
|
161
|
+
self._process.send_signal(signal.SIGINT)
|
162
|
+
else:
|
163
|
+
os.kill(self._pid, signal.SIGINT)
|
128
164
|
|
129
165
|
async def forward_messages_to_shell(self) -> None:
|
130
166
|
async for msg in self._to_shell_receive_stream:
|
{jupyverse-0.10.9 → jupyverse-0.10.13}/plugins/kernel_subprocess/fps_kernel_subprocess/main.py
RENAMED
@@ -10,4 +10,4 @@ from .kernel_subprocess import KernelSubprocess
|
|
10
10
|
class KernelSubprocessModule(Module):
|
11
11
|
async def prepare(self) -> None:
|
12
12
|
default_kernel_factory = DefaultKernelFactory(KernelSubprocess)
|
13
|
-
self.put(default_kernel_factory
|
13
|
+
self.put(default_kernel_factory)
|
@@ -4,12 +4,12 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "fps_kernel_subprocess"
|
7
|
-
version = "0.1.
|
7
|
+
version = "0.1.3"
|
8
8
|
description = "An FPS plugin for the kernel subprocess API"
|
9
9
|
keywords = ["jupyter", "server", "fastapi", "plugins"]
|
10
10
|
requires-python = ">=3.9"
|
11
11
|
dependencies = [
|
12
|
-
"jupyverse-api >=0.11.
|
12
|
+
"jupyverse-api >=0.11.3,<0.12.0",
|
13
13
|
"anyio",
|
14
14
|
"pyzmq",
|
15
15
|
"zmq-anyio >=0.3.1,<0.4.0",
|
@@ -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.
|
@@ -52,6 +52,7 @@ class KernelServer:
|
|
52
52
|
self,
|
53
53
|
default_kernel_factory: DefaultKernelFactory,
|
54
54
|
kernelspec_path: str = "",
|
55
|
+
kernelenv_path: str = "",
|
55
56
|
kernel_cwd: str = "",
|
56
57
|
connection_file: str = "",
|
57
58
|
write_connection_file: bool = True,
|
@@ -60,6 +61,7 @@ class KernelServer:
|
|
60
61
|
self.default_kernel_factory = default_kernel_factory
|
61
62
|
self.capture_kernel_output = capture_kernel_output
|
62
63
|
self.kernelspec_path = kernelspec_path
|
64
|
+
self.kernelenv_path = kernelenv_path
|
63
65
|
self.kernel_cwd = kernel_cwd
|
64
66
|
self.connection_file = connection_file
|
65
67
|
self.write_connection_file = write_connection_file
|
@@ -109,6 +111,7 @@ class KernelServer:
|
|
109
111
|
self.kernel = self.default_kernel_factory(
|
110
112
|
write_connection_file=self.write_connection_file,
|
111
113
|
kernelspec_path=self.kernelspec_path,
|
114
|
+
kernelenv_path=self.kernelenv_path,
|
112
115
|
connection_file=self.connection_file,
|
113
116
|
kernel_cwd=self.kernel_cwd,
|
114
117
|
capture_output=self.capture_kernel_output,
|
@@ -116,6 +119,7 @@ class KernelServer:
|
|
116
119
|
else:
|
117
120
|
self.kernel = kernel_factory(
|
118
121
|
kernelspec_path=self.kernelspec_path,
|
122
|
+
kernelenv_path=self.kernelenv_path,
|
119
123
|
connection_file=self.connection_file,
|
120
124
|
kernel_cwd=self.kernel_cwd,
|
121
125
|
capture_output=self.capture_kernel_output,
|