jupyverse 0.10.7__tar.gz → 0.10.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jupyverse-0.10.7 → jupyverse-0.10.12}/.pre-commit-config.yaml +1 -1
- {jupyverse-0.10.7 → jupyverse-0.10.12}/CHANGELOG.md +10 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/PKG-INFO +19 -18
- jupyverse-0.10.12/docs/plugins/contents.md +1 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/__init__.py +0 -35
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/contents/__init__.py +2 -1
- jupyverse-0.10.12/jupyverse_api/jupyverse_api/file_watcher/__init__.py +26 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/pyproject.toml +2 -1
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth/pyproject.toml +2 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_fief/pyproject.toml +2 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_jupyterhub/pyproject.toml +2 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/contents/pyproject.toml +2 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/file_id/fps_file_id/file_id.py +6 -7
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/file_id/fps_file_id/main.py +3 -1
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/file_id/pyproject.toml +2 -3
- jupyverse-0.10.12/plugins/file_watcher/README.md +3 -0
- jupyverse-0.10.12/plugins/file_watcher/fps_file_watcher/__init__.py +6 -0
- jupyverse-0.10.12/plugins/file_watcher/fps_file_watcher/file_watcher.py +25 -0
- jupyverse-0.10.12/plugins/file_watcher/fps_file_watcher/main.py +11 -0
- jupyverse-0.10.12/plugins/file_watcher/pyproject.toml +31 -0
- jupyverse-0.10.12/plugins/file_watcher_poll/README.md +3 -0
- jupyverse-0.10.12/plugins/file_watcher_poll/fps_file_watcher_poll/__init__.py +6 -0
- jupyverse-0.10.12/plugins/file_watcher_poll/fps_file_watcher_poll/file_watcher.py +18 -0
- jupyverse-0.10.12/plugins/file_watcher_poll/fps_file_watcher_poll/main.py +11 -0
- jupyverse-0.10.12/plugins/file_watcher_poll/pyproject.toml +31 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/frontend/pyproject.toml +2 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/jupyterlab/pyproject.toml +2 -2
- jupyverse-0.10.12/plugins/kernel_subprocess/COPYING.md +59 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernel_subprocess/pyproject.toml +2 -2
- jupyverse-0.10.12/plugins/kernel_web_worker/COPYING.md +59 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernel_web_worker/pyproject.toml +2 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/main.py +3 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/routes.py +5 -11
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/pyproject.toml +2 -6
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/tests/test_kernel_launcher.py +3 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/lab/pyproject.toml +2 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/pyproject.toml +2 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/nbconvert/pyproject.toml +2 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/noauth/pyproject.toml +2 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/notebook/pyproject.toml +2 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/resource_usage/pyproject.toml +2 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/terminals/pyproject.toml +2 -2
- jupyverse-0.10.12/plugins/webdav/fps_webdav/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/webdav/pyproject.toml +2 -2
- jupyverse-0.10.12/plugins/yjs/fps_yjs/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/routes.py +1 -2
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/pyproject.toml +3 -8
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/tests/test_yjs.py +3 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/pyproject.toml +26 -19
- {jupyverse-0.10.7 → jupyverse-0.10.12}/tests/conftest.py +1 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/tests/test_auth.py +3 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/tests/test_execute.py +3 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/tests/test_kernels.py +3 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/tests/test_settings.py +3 -0
- jupyverse-0.10.7/docs/plugins/contents.md +0 -1
- jupyverse-0.10.7/jupyverse_api/tests/test_resource_lock.py +0 -57
- {jupyverse-0.10.7 → jupyverse-0.10.12}/.devcontainer/devcontainer.json +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/.devcontainer/requirements.txt +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/.github/workflows/publish-release.yml +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/.github/workflows/test.yml +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/.gitignore +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/binder/environment.yml +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/binder/jupyter_notebook_config.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/binder/postBuild +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/binder/start +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/index.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/install.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/jupyter.svg +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/plugins/auth.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/plugins/frontend.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/plugins/jupyterlab.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/plugins/kernels.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/plugins/lab.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/plugins/login.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/plugins/nbconvert.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/plugins/notebook.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/plugins/resource_usage.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/plugins/terminals.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/plugins/yjs.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/tutorials/jupyterhub_jupyverse_deployment.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/tutorials/standalone_jupyverse_deployment.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/usage/microservices.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/usage/multi_user.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/docs/usage/single_user.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/app/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/asgi_websocket_transport.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/auth/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/auth/models.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/cli.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/contents/models.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/exceptions.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/file_id/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/frontend/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/jupyterlab/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/kernel/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/kernels/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/kernels/models.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/lab/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/login/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/main/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/nbconvert/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/notebook/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/resource_usage/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/terminals/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/terminals/models.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/yjs/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/jupyverse_api/jupyverse_api/yjs/models.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/mkdocs.yml +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/notebooks/admin_users.ipynb +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/notebooks/admin_users.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth/fps_auth/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth/fps_auth/backends.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth/fps_auth/config.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth/fps_auth/db.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth/fps_auth/main.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth/fps_auth/models.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth/fps_auth/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth/fps_auth/routes.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_fief/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_fief/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_fief/fps_auth_fief/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_fief/fps_auth_fief/backend.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_fief/fps_auth_fief/config.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_fief/fps_auth_fief/main.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_fief/fps_auth_fief/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_fief/fps_auth_fief/routes.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_jupyterhub/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_jupyterhub/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/config.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/db.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/launch.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/main.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/models.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/auth_jupyterhub/fps_auth_jupyterhub/routes.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/contents/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/contents/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/contents/fps_contents/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/contents/fps_contents/main.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/contents/fps_contents/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/contents/fps_contents/routes.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/file_id/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/file_id/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/file_id/fps_file_id/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/file_id/fps_file_id/py.typed +0 -0
- {jupyverse-0.10.7/plugins/kernel_subprocess → jupyverse-0.10.12/plugins/file_watcher}/COPYING.md +0 -0
- {jupyverse-0.10.7/plugins/frontend/fps_frontend → jupyverse-0.10.12/plugins/file_watcher/fps_file_watcher}/py.typed +0 -0
- {jupyverse-0.10.7/plugins/kernel_web_worker → jupyverse-0.10.12/plugins/file_watcher_poll}/COPYING.md +0 -0
- {jupyverse-0.10.7/plugins/jupyterlab/fps_jupyterlab → jupyverse-0.10.12/plugins/file_watcher_poll/fps_file_watcher_poll}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/frontend/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/frontend/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/frontend/fps_frontend/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/frontend/fps_frontend/main.py +0 -0
- {jupyverse-0.10.7/plugins/kernel_subprocess/fps_kernel_subprocess → jupyverse-0.10.12/plugins/frontend/fps_frontend}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/jupyterlab/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/jupyterlab/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/jupyterlab/fps_jupyterlab/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/jupyterlab/fps_jupyterlab/index.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/jupyterlab/fps_jupyterlab/main.py +0 -0
- {jupyverse-0.10.7/plugins/kernel_web_worker/fps_kernel_web_worker → jupyverse-0.10.12/plugins/jupyterlab/fps_jupyterlab}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/jupyterlab/fps_jupyterlab/routes.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernel_subprocess/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernel_subprocess/fps_kernel_subprocess/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernel_subprocess/fps_kernel_subprocess/connect.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernel_subprocess/fps_kernel_subprocess/kernel_subprocess.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernel_subprocess/fps_kernel_subprocess/main.py +0 -0
- {jupyverse-0.10.7/plugins/kernels/fps_kernels → jupyverse-0.10.12/plugins/kernel_subprocess/fps_kernel_subprocess}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernel_web_worker/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernel_web_worker/fps_kernel_web_worker/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernel_web_worker/fps_kernel_web_worker/kernel_web_worker.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernel_web_worker/fps_kernel_web_worker/main.py +0 -0
- {jupyverse-0.10.7/plugins/lab/fps_lab → jupyverse-0.10.12/plugins/kernel_web_worker/fps_kernel_web_worker}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_driver/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_driver/driver.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_driver/kernelspec.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_driver/message.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_driver/paths.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_server/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_server/message.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/kernels/fps_kernels/kernel_server/server.py +0 -0
- {jupyverse-0.10.7/plugins/login/fps_login → jupyverse-0.10.12/plugins/kernels/fps_kernels}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/lab/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/lab/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/lab/fps_lab/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/lab/fps_lab/main.py +0 -0
- {jupyverse-0.10.7/plugins/nbconvert/fps_nbconvert → jupyverse-0.10.12/plugins/lab/fps_lab}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/lab/fps_lab/routes.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/lab/fps_lab/static/favicon.ico +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/main.py +0 -0
- {jupyverse-0.10.7/plugins/noauth/fps_noauth → jupyverse-0.10.12/plugins/login/fps_login}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/routes.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon-busy-1.ico +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon-busy-2.ico +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon-busy-3.ico +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon-file.ico +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon-notebook.ico +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon-terminal.ico +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/static/favicons/favicon.ico +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/static/index.html +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/static/logo/github.svg +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/static/logo/logo.png +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/login/fps_login/static/style/index.css +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/nbconvert/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/nbconvert/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/nbconvert/fps_nbconvert/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/nbconvert/fps_nbconvert/main.py +0 -0
- {jupyverse-0.10.7/plugins/notebook/fps_notebook → jupyverse-0.10.12/plugins/nbconvert/fps_nbconvert}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/nbconvert/fps_nbconvert/routes.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/noauth/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/noauth/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/noauth/fps_noauth/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/noauth/fps_noauth/backends.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/noauth/fps_noauth/main.py +0 -0
- {jupyverse-0.10.7/plugins/resource_usage/fps_resource_usage → jupyverse-0.10.12/plugins/noauth/fps_noauth}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/notebook/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/notebook/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/notebook/fps_notebook/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/notebook/fps_notebook/main.py +0 -0
- {jupyverse-0.10.7/plugins/terminals/fps_terminals → jupyverse-0.10.12/plugins/notebook/fps_notebook}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/notebook/fps_notebook/routes.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/resource_usage/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/resource_usage/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/resource_usage/fps_resource_usage/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/resource_usage/fps_resource_usage/main.py +0 -0
- {jupyverse-0.10.7/plugins/webdav/fps_webdav → jupyverse-0.10.12/plugins/resource_usage/fps_resource_usage}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/resource_usage/fps_resource_usage/routes.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/terminals/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/terminals/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/terminals/fps_terminals/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/terminals/fps_terminals/main.py +0 -0
- {jupyverse-0.10.7/plugins/yjs/fps_yjs → jupyverse-0.10.12/plugins/terminals/fps_terminals}/py.typed +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/terminals/fps_terminals/routes.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/terminals/fps_terminals/server.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/terminals/fps_terminals/win_server.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/webdav/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/webdav/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/webdav/fps_webdav/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/webdav/fps_webdav/config.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/webdav/fps_webdav/main.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/webdav/fps_webdav/routes.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/webdav/tests/conftest.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/webdav/tests/test_webdav.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/COPYING.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/README.md +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/main.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/asgi_server.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/awareness.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/django_channels_consumer.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/websocket.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/websocket_provider.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/websocket_server.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/yroom.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/ystore.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywebsocket/yutils.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywidgets/__init__.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/plugins/yjs/fps_yjs/ywidgets/widgets.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/pytest.ini +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/tests/data/notebook0.ipynb +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/tests/data/notebook1.ipynb +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/tests/test_app.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/tests/test_contents.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/tests/test_server.py +0 -0
- {jupyverse-0.10.7 → jupyverse-0.10.12}/tests/utils.py +0 -0
@@ -1,5 +1,15 @@
|
|
1
1
|
# Version history
|
2
2
|
|
3
|
+
## 0.10.12
|
4
|
+
|
5
|
+
- Add `FileWatcher` API.
|
6
|
+
- Add `fps-file-watcher`, which uses `watchfiles`.
|
7
|
+
- Add `fps-file-watcher-poll`, which uses `anychange`.
|
8
|
+
|
9
|
+
## 0.10.9
|
10
|
+
|
11
|
+
- Move `ResourceLock` to `anyioutils`.
|
12
|
+
|
3
13
|
## 0.10.7
|
4
14
|
|
5
15
|
- Lock on collaboration room cleanup.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: jupyverse
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.12
|
4
4
|
Summary: A set of FPS plugins implementing a Jupyter server
|
5
5
|
Project-URL: Homepage, https://jupyter.org
|
6
6
|
Author-email: Jupyter Development Team <jupyter@googlegroups.com>
|
@@ -9,34 +9,35 @@ 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.11.0,>=0.10.
|
13
|
-
Requires-Dist: fps-file-id<0.
|
14
|
-
Requires-Dist: fps-
|
15
|
-
Requires-Dist: fps-
|
16
|
-
Requires-Dist: fps-
|
17
|
-
Requires-Dist: fps-
|
18
|
-
Requires-Dist: fps-
|
19
|
-
Requires-Dist: fps-
|
20
|
-
Requires-Dist: fps-
|
12
|
+
Requires-Dist: fps-contents<0.11.0,>=0.10.1
|
13
|
+
Requires-Dist: fps-file-id<0.4.0,>=0.3.2
|
14
|
+
Requires-Dist: fps-file-watcher<0.2.0,>=0.1.1
|
15
|
+
Requires-Dist: fps-frontend<0.10.0,>=0.9.1
|
16
|
+
Requires-Dist: fps-kernel-subprocess<0.2.0,>=0.1.2
|
17
|
+
Requires-Dist: fps-kernels<0.11.0,>=0.10.2
|
18
|
+
Requires-Dist: fps-lab<0.10.0,>=0.9.1
|
19
|
+
Requires-Dist: fps-nbconvert<0.10.0,>=0.9.1
|
20
|
+
Requires-Dist: fps-terminals<0.10.0,>=0.9.1
|
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.
|
23
|
+
Requires-Dist: jupyverse-api<0.12.0,>=0.11.2
|
23
24
|
Requires-Dist: rich-click<2,>=1.6.1
|
24
25
|
Provides-Extra: auth
|
25
|
-
Requires-Dist: fps-auth<0.10.0,>=0.9.
|
26
|
-
Requires-Dist: fps-login<0.10.0,>=0.9.
|
26
|
+
Requires-Dist: fps-auth<0.10.0,>=0.9.1; extra == 'auth'
|
27
|
+
Requires-Dist: fps-login<0.10.0,>=0.9.1; extra == 'auth'
|
27
28
|
Provides-Extra: auth-fief
|
28
|
-
Requires-Dist: fps-auth-fief<0.10.0,>=0.9.
|
29
|
+
Requires-Dist: fps-auth-fief<0.10.0,>=0.9.1; extra == 'auth-fief'
|
29
30
|
Provides-Extra: auth-jupyterhub
|
30
|
-
Requires-Dist: fps-auth-jupyterhub<0.10.0,>=0.9.
|
31
|
+
Requires-Dist: fps-auth-jupyterhub<0.10.0,>=0.9.2; extra == 'auth-jupyterhub'
|
31
32
|
Provides-Extra: docs
|
32
33
|
Requires-Dist: mkdocs; extra == 'docs'
|
33
34
|
Requires-Dist: mkdocs-material; extra == 'docs'
|
34
35
|
Provides-Extra: jupyterlab
|
35
|
-
Requires-Dist: fps-jupyterlab<0.10.0,>=0.9.
|
36
|
+
Requires-Dist: fps-jupyterlab<0.10.0,>=0.9.1; extra == 'jupyterlab'
|
36
37
|
Provides-Extra: noauth
|
37
|
-
Requires-Dist: fps-noauth<0.10.0,>=0.9.
|
38
|
+
Requires-Dist: fps-noauth<0.10.0,>=0.9.2; extra == 'noauth'
|
38
39
|
Provides-Extra: notebook
|
39
|
-
Requires-Dist: fps-notebook<0.10.0,>=0.9.
|
40
|
+
Requires-Dist: fps-notebook<0.10.0,>=0.9.1; extra == 'notebook'
|
40
41
|
Provides-Extra: test
|
41
42
|
Requires-Dist: httpx; extra == 'test'
|
42
43
|
Requires-Dist: httpx-ws>=0.4.1; extra == 'test'
|
@@ -0,0 +1 @@
|
|
1
|
+
`fps-contents` implements the `contents` API, i.e. everything related to reading/writing files, for the local file system.
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import importlib.metadata
|
2
|
-
from typing import Any
|
3
2
|
|
4
|
-
from anyio import Event
|
5
3
|
from pydantic import BaseModel
|
6
4
|
|
7
5
|
from .app import App
|
@@ -46,36 +44,3 @@ class Router:
|
|
46
44
|
|
47
45
|
def add_middleware(self, middleware, *args, **kwargs) -> None:
|
48
46
|
self._app.add_middleware(middleware, *args, **kwargs)
|
49
|
-
|
50
|
-
|
51
|
-
class ResourceLock:
|
52
|
-
"""ResourceLock ensures that accesses cannot be done concurrently on the same resource."""
|
53
|
-
|
54
|
-
_locks: dict[Any, Event]
|
55
|
-
|
56
|
-
def __init__(self):
|
57
|
-
self._locks = {}
|
58
|
-
|
59
|
-
def __call__(self, idx: Any):
|
60
|
-
return _ResourceLock(idx, self._locks)
|
61
|
-
|
62
|
-
|
63
|
-
class _ResourceLock:
|
64
|
-
_idx: Any
|
65
|
-
_locks: dict[Any, Event]
|
66
|
-
_lock: Event
|
67
|
-
|
68
|
-
def __init__(self, idx: Any, locks: dict[Any, Event]):
|
69
|
-
self._idx = idx
|
70
|
-
self._locks = locks
|
71
|
-
|
72
|
-
async def __aenter__(self):
|
73
|
-
while True:
|
74
|
-
if self._idx not in self._locks:
|
75
|
-
break
|
76
|
-
await self._locks[self._idx].wait()
|
77
|
-
self._locks[self._idx] = self._lock = Event()
|
78
|
-
|
79
|
-
async def __aexit__(self, exc_type, exc_value, exc_tb):
|
80
|
-
self._lock.set()
|
81
|
-
del self._locks[self._idx]
|
@@ -3,9 +3,10 @@ from __future__ import annotations
|
|
3
3
|
from abc import ABC, abstractmethod
|
4
4
|
from pathlib import Path
|
5
5
|
|
6
|
+
from anyioutils import ResourceLock
|
6
7
|
from fastapi import APIRouter, Depends, Request, Response
|
7
8
|
|
8
|
-
from jupyverse_api import
|
9
|
+
from jupyverse_api import Router
|
9
10
|
|
10
11
|
from ..app import App
|
11
12
|
from ..auth import Auth, User
|
@@ -0,0 +1,26 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
|
3
|
+
from abc import ABC, abstractmethod
|
4
|
+
from collections.abc import AsyncGenerator
|
5
|
+
from enum import IntEnum
|
6
|
+
from pathlib import Path
|
7
|
+
|
8
|
+
from anyio import Event
|
9
|
+
|
10
|
+
|
11
|
+
class Change(IntEnum):
|
12
|
+
added = 1
|
13
|
+
modified = 2
|
14
|
+
deleted = 3
|
15
|
+
|
16
|
+
|
17
|
+
FileChange = tuple[Change, str]
|
18
|
+
|
19
|
+
|
20
|
+
class FileWatcher(ABC):
|
21
|
+
@abstractmethod
|
22
|
+
async def watch(
|
23
|
+
self,
|
24
|
+
path: Path | str,
|
25
|
+
stop_event: Event | None = None,
|
26
|
+
) -> AsyncGenerator[set[FileChange], None]: ...
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "jupyverse_api"
|
7
|
-
version = "0.
|
7
|
+
version = "0.11.2"
|
8
8
|
description = "The public API for Jupyverse"
|
9
9
|
readme = "README.md"
|
10
10
|
requires-python = ">=3.9"
|
@@ -31,6 +31,7 @@ dependencies = [
|
|
31
31
|
"fastapi >=0.95.0,<1",
|
32
32
|
"fps >=0.5.1,<0.6.0",
|
33
33
|
"anyio >=3.6.2,<5",
|
34
|
+
"anyioutils >=0.7.4",
|
34
35
|
]
|
35
36
|
|
36
37
|
[project.license]
|
@@ -4,14 +4,14 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "fps_auth"
|
7
|
-
version = "0.9.
|
7
|
+
version = "0.9.1"
|
8
8
|
description = "An FPS plugin for the authentication API"
|
9
9
|
keywords = ["jupyter", "server", "fastapi", "plugins"]
|
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.
|
14
|
+
"jupyverse-api >=0.11.0,<0.12.0",
|
15
15
|
]
|
16
16
|
|
17
17
|
[[project.authors]]
|
@@ -4,13 +4,13 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "fps_auth_fief"
|
7
|
-
version = "0.9.
|
7
|
+
version = "0.9.1"
|
8
8
|
description = "An FPS plugin for the authentication API, using Fief"
|
9
9
|
keywords = ["jupyter", "server", "fastapi", "plugins"]
|
10
10
|
requires-python = ">=3.8"
|
11
11
|
dependencies = [
|
12
12
|
"fief-client[fastapi]",
|
13
|
-
"jupyverse-api >=0.
|
13
|
+
"jupyverse-api >=0.11.0,<0.12.0",
|
14
14
|
]
|
15
15
|
|
16
16
|
[[project.authors]]
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "fps_auth_jupyterhub"
|
7
|
-
version = "0.9.
|
7
|
+
version = "0.9.2"
|
8
8
|
description = "An FPS plugin for the authentication API, using JupyterHbu"
|
9
9
|
keywords = ["jupyter", "server", "fastapi", "plugins"]
|
10
10
|
requires-python = ">=3.9"
|
@@ -12,7 +12,7 @@ dependencies = [
|
|
12
12
|
"aiosqlite",
|
13
13
|
"httpx >=0.24.1,<1",
|
14
14
|
"jupyterhub >=4.0.1,<5",
|
15
|
-
"jupyverse-api >=0.
|
15
|
+
"jupyverse-api >=0.11.0,<0.12.0",
|
16
16
|
"anyio",
|
17
17
|
]
|
18
18
|
|
@@ -4,13 +4,13 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "fps_contents"
|
7
|
-
version = "0.10.
|
7
|
+
version = "0.10.1"
|
8
8
|
description = "An FPS plugin for the contents API"
|
9
9
|
keywords = ["jupyter", "server", "fastapi", "plugins"]
|
10
10
|
requires-python = ">=3.9"
|
11
11
|
dependencies = [
|
12
12
|
"anyio >=3.6.2,<5",
|
13
|
-
"jupyverse-api >=0.
|
13
|
+
"jupyverse-api >=0.11.0,<0.12.0",
|
14
14
|
]
|
15
15
|
[[project.authors]]
|
16
16
|
name = "Jupyter Development Team"
|
@@ -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.2
|
7
|
+
version = "0.3.2"
|
8
8
|
description = "An FPS plugin for the file ID API"
|
9
9
|
keywords = ["jupyter", "server", "fastapi", "plugins"]
|
10
10
|
requires-python = ">=3.9"
|
11
11
|
dependencies = [
|
12
|
-
"watchfiles >=1.0.4,<2",
|
13
12
|
"sqlite-anyio >=0.2.0,<0.3.0",
|
14
13
|
"anyio>=3.6.2,<5",
|
15
|
-
"jupyverse-api >=0.
|
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"}
|
@@ -4,12 +4,12 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "fps_frontend"
|
7
|
-
version = "0.9.
|
7
|
+
version = "0.9.1"
|
8
8
|
description = "An FPS plugin for the frontend related configuration"
|
9
9
|
keywords = ["jupyter", "server", "fastapi", "plugins"]
|
10
10
|
requires-python = ">=3.9"
|
11
11
|
dependencies = [
|
12
|
-
"jupyverse-api >=0.
|
12
|
+
"jupyverse-api >=0.11.0,<0.12.0",
|
13
13
|
]
|
14
14
|
|
15
15
|
[[project.authors]]
|
@@ -4,13 +4,13 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "fps_jupyterlab"
|
7
|
-
version = "0.9.
|
7
|
+
version = "0.9.1"
|
8
8
|
description = "An FPS plugin for the JupyterLab API"
|
9
9
|
keywords = [ "jupyter", "server", "fastapi", "plugins" ]
|
10
10
|
requires-python = ">=3.9"
|
11
11
|
dependencies = [
|
12
12
|
"jupyterlab-js >=4.4.2,<5",
|
13
|
-
"jupyverse-api >=0.
|
13
|
+
"jupyverse-api >=0.11.0,<0.12.0",
|
14
14
|
]
|
15
15
|
[[project.authors]]
|
16
16
|
name = "Jupyter Development Team"
|
@@ -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.
|
@@ -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.2"
|
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.
|
12
|
+
"jupyverse-api >=0.11.0,<0.12.0",
|
13
13
|
"anyio",
|
14
14
|
"pyzmq",
|
15
15
|
"zmq-anyio >=0.3.1,<0.4.0",
|