diff --git a/.gitignore b/.gitignore index 39de105b0..474e837b6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ # because they are built by the plugin builder. node_modules +.DS_Store .vscode/* !.vscode/settings.json !.vscode/tasks.json diff --git a/package-lock.json b/package-lock.json index 74bad86a4..7d6b89063 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2032,7 +2032,6 @@ "version": "1.20240517.518", "resolved": "https://registry.npmjs.org/@deephaven-enterprise/jsapi-coreplus-types/-/jsapi-coreplus-types-1.20240517.518.tgz", "integrity": "sha512-dHFGYpeHufO7HrsVScI3b0Vmzu4WQs8d0eW89YBX47tjzTC5E0Oq8y7d/aT1c24HfllWF6iDGZ5hCjNOgw0PTw==", - "dev": true, "dependencies": { "@deephaven/jsapi-types": "^1.0.0-dev0.39.2" } @@ -2040,8 +2039,7 @@ "node_modules/@deephaven-enterprise/jsapi-coreplus-types/node_modules/@deephaven/jsapi-types": { "version": "1.0.0-dev0.40.0", "resolved": "https://registry.npmjs.org/@deephaven/jsapi-types/-/jsapi-types-1.0.0-dev0.40.0.tgz", - "integrity": "sha512-jVRZEe3gDms3NguTS/tGa8Mo9zJyoKeR+8jbdctd3ilRJEyOZsVCnJxN7aVgfSNSoX77taLEKH4Q8c18N5c6xA==", - "dev": true + "integrity": "sha512-jVRZEe3gDms3NguTS/tGa8Mo9zJyoKeR+8jbdctd3ilRJEyOZsVCnJxN7aVgfSNSoX77taLEKH4Q8c18N5c6xA==" }, "node_modules/@deephaven/auth-plugins": { "version": "0.40.4", @@ -4207,6 +4205,10 @@ "resolved": "plugins/plotly-express/src/js", "link": true }, + "node_modules/@deephaven/js-plugin-python-remote-file-source": { + "resolved": "plugins/python-remote-file-source/src/js", + "link": true + }, "node_modules/@deephaven/js-plugin-simple-pivot": { "resolved": "plugins/simple-pivot/src/js", "link": true @@ -34375,6 +34377,753 @@ "url": "https://github.com/sponsors/wooorm" } }, + "plugins/python-remote-file-source/src/js": { + "name": "@deephaven/js-plugin-python-remote-file-source", + "version": "0.0.1", + "license": "Apache-2.0", + "dependencies": { + "@deephaven/components": "^0.85.0", + "@deephaven/dashboard": "^0.85.0", + "@deephaven/icons": "^0.85.0", + "@deephaven/jsapi-bootstrap": "^0.85.0", + "@deephaven/jsapi-types": "1.0.0-dev0.35.2", + "@deephaven/log": "^0.85.0", + "@deephaven/plugin": "^0.85.0", + "@fortawesome/react-fontawesome": "^0.2.0", + "nanoid": "^5.1.5" + }, + "devDependencies": { + "@deephaven/tsconfig": "^0.72.0", + "@types/react": "^17.0.2", + "@types/react-dom": "^17.0.2", + "@vitejs/plugin-react-swc": "^3.0.0", + "react": "^17.0.2", + "typescript": "^5.9.3", + "vite": "^5.4.6" + }, + "peerDependencies": { + "react": "^17.0.2", + "react-dom": "^17.0.2" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/components": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/components/-/components-0.85.35.tgz", + "integrity": "sha512-KDPy/yU3r/45xLzM4E7PG5bSA7ufPoP29sDDWfajDj/v9LLNJpFSVoeMT9PqgI+9KEWdkZTAY4VfL2FDkCfaTg==", + "dependencies": { + "@adobe/react-spectrum": "3.38.0", + "@deephaven/icons": "^0.85.0", + "@deephaven/log": "^0.85.19", + "@deephaven/react-hooks": "^0.85.35", + "@deephaven/utils": "^0.85.35", + "@fortawesome/fontawesome-svg-core": "^6.2.1", + "@fortawesome/react-fontawesome": "^0.2.0", + "@internationalized/date": "^3.5.5", + "@react-spectrum/theme-default": "^3.5.1", + "@react-spectrum/toast": "^3.0.0-beta.16", + "@react-spectrum/utils": "^3.11.5", + "@react-types/radio": "^3.8.1", + "@react-types/shared": "^3.22.1", + "@react-types/textfield": "^3.9.1", + "bootstrap": "4.6.2", + "classnames": "^2.3.1", + "event-target-shim": "^6.0.2", + "lodash.clamp": "^4.0.3", + "lodash.debounce": "^4.0.8", + "lodash.flatten": "^4.4.0", + "memoizee": "^0.4.15", + "nanoid": "^5.0.7", + "popper.js": "^1.16.1", + "prop-types": "^15.7.2", + "react-beautiful-dnd": "^13.1.0", + "react-reverse-portal": "^2.3.0", + "react-transition-group": "^4.4.2", + "react-virtualized-auto-sizer": "1.0.6", + "react-window": "^1.8.6" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/components/node_modules/@adobe/react-spectrum": { + "version": "3.38.0", + "resolved": "https://registry.npmjs.org/@adobe/react-spectrum/-/react-spectrum-3.38.0.tgz", + "integrity": "sha512-0/zFmTz/sKf8rvB8EHMuWIE5miY1gSAvTr5q4fPIiQJQwMAlQyXfH3oy++/MsiC30HyT3Mp93scxX2F1ErKL4g==", + "dependencies": { + "@internationalized/string": "^3.2.5", + "@react-aria/i18n": "^3.12.4", + "@react-aria/ssr": "^3.9.7", + "@react-aria/utils": "^3.26.0", + "@react-aria/visually-hidden": "^3.8.18", + "@react-spectrum/accordion": "^3.0.0", + "@react-spectrum/actionbar": "^3.6.2", + "@react-spectrum/actiongroup": "^3.10.10", + "@react-spectrum/avatar": "^3.0.17", + "@react-spectrum/badge": "^3.1.18", + "@react-spectrum/breadcrumbs": "^3.9.12", + "@react-spectrum/button": "^3.16.9", + "@react-spectrum/buttongroup": "^3.6.17", + "@react-spectrum/calendar": "^3.5.0", + "@react-spectrum/checkbox": "^3.9.11", + "@react-spectrum/color": "^3.0.2", + "@react-spectrum/combobox": "^3.14.0", + "@react-spectrum/contextualhelp": "^3.6.16", + "@react-spectrum/datepicker": "^3.11.0", + "@react-spectrum/dialog": "^3.8.16", + "@react-spectrum/divider": "^3.5.18", + "@react-spectrum/dnd": "^3.5.0", + "@react-spectrum/dropzone": "^3.0.6", + "@react-spectrum/filetrigger": "^3.0.6", + "@react-spectrum/form": "^3.7.10", + "@react-spectrum/icon": "^3.8.0", + "@react-spectrum/illustratedmessage": "^3.5.5", + "@react-spectrum/image": "^3.5.6", + "@react-spectrum/inlinealert": "^3.2.10", + "@react-spectrum/labeledvalue": "^3.1.18", + "@react-spectrum/layout": "^3.6.10", + "@react-spectrum/link": "^3.6.12", + "@react-spectrum/list": "^3.9.0", + "@react-spectrum/listbox": "^3.14.0", + "@react-spectrum/menu": "^3.21.0", + "@react-spectrum/meter": "^3.5.5", + "@react-spectrum/numberfield": "^3.9.8", + "@react-spectrum/overlays": "^5.7.0", + "@react-spectrum/picker": "^3.15.4", + "@react-spectrum/progress": "^3.7.11", + "@react-spectrum/provider": "^3.10.0", + "@react-spectrum/radio": "^3.7.11", + "@react-spectrum/searchfield": "^3.8.11", + "@react-spectrum/slider": "^3.7.0", + "@react-spectrum/statuslight": "^3.5.17", + "@react-spectrum/switch": "^3.5.10", + "@react-spectrum/table": "^3.15.0", + "@react-spectrum/tabs": "^3.8.15", + "@react-spectrum/tag": "^3.2.11", + "@react-spectrum/text": "^3.5.10", + "@react-spectrum/textfield": "^3.12.7", + "@react-spectrum/theme-dark": "^3.5.14", + "@react-spectrum/theme-default": "^3.5.14", + "@react-spectrum/theme-light": "^3.4.14", + "@react-spectrum/tooltip": "^3.7.0", + "@react-spectrum/view": "^3.6.14", + "@react-spectrum/well": "^3.4.18", + "@react-stately/collections": "^3.12.0", + "@react-stately/data": "^3.12.0", + "@react-types/shared": "^3.26.0", + "client-only": "^0.0.1" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1", + "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/components/node_modules/@deephaven/react-hooks": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/react-hooks/-/react-hooks-0.85.35.tgz", + "integrity": "sha512-eOip5/TJMw1Yc8dKc54RlA6fesvgUZfwrwE0BWOerQTeRRVHFX4f1oRbAARpOEEsasWeVwpQlO20/wdShj71eg==", + "dependencies": { + "@adobe/react-spectrum": "3.38.0", + "@deephaven/log": "^0.85.19", + "@deephaven/utils": "^0.85.35", + "lodash.debounce": "^4.0.8", + "lodash.throttle": "^4.1.1", + "nanoid": "^5.0.7" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/dashboard": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/dashboard/-/dashboard-0.85.35.tgz", + "integrity": "sha512-yN4LVp8z/Lv/Di5Ui8NV/rSqGOdNplJ1i8nCPi2auO9mPkD5K7mdhdjYddc61cAoc/1xXiZ61jpjggylzLAmSQ==", + "dependencies": { + "@deephaven/components": "^0.85.35", + "@deephaven/golden-layout": "^0.85.35", + "@deephaven/log": "^0.85.19", + "@deephaven/react-hooks": "^0.85.35", + "@deephaven/redux": "^0.85.35", + "@deephaven/utils": "^0.85.35", + "fast-deep-equal": "^3.1.3", + "lodash.ismatch": "^4.1.1", + "lodash.throttle": "^4.1.1", + "nanoid": "^5.0.7", + "prop-types": "^15.7.2" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0", + "react-is": ">=16.8.0", + "react-redux": "^7.2.4" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/dashboard/node_modules/@deephaven/golden-layout": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/golden-layout/-/golden-layout-0.85.35.tgz", + "integrity": "sha512-oIF3gqfK2SVV5U/6R1Pcb/NK5XWQ5WjdFXiq+As2RGHVWO/YveaEZhY9P5/JYu0cjHETRh+mcoa8J2Sd6YpaMg==", + "dependencies": { + "@deephaven/components": "^0.85.35", + "jquery": "^3.6.0", + "nanoid": "^5.0.7" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/dashboard/node_modules/@deephaven/react-hooks": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/react-hooks/-/react-hooks-0.85.35.tgz", + "integrity": "sha512-eOip5/TJMw1Yc8dKc54RlA6fesvgUZfwrwE0BWOerQTeRRVHFX4f1oRbAARpOEEsasWeVwpQlO20/wdShj71eg==", + "dependencies": { + "@adobe/react-spectrum": "3.38.0", + "@deephaven/log": "^0.85.19", + "@deephaven/utils": "^0.85.35", + "lodash.debounce": "^4.0.8", + "lodash.throttle": "^4.1.1", + "nanoid": "^5.0.7" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/dashboard/node_modules/@deephaven/react-hooks/node_modules/@adobe/react-spectrum": { + "version": "3.38.0", + "resolved": "https://registry.npmjs.org/@adobe/react-spectrum/-/react-spectrum-3.38.0.tgz", + "integrity": "sha512-0/zFmTz/sKf8rvB8EHMuWIE5miY1gSAvTr5q4fPIiQJQwMAlQyXfH3oy++/MsiC30HyT3Mp93scxX2F1ErKL4g==", + "dependencies": { + "@internationalized/string": "^3.2.5", + "@react-aria/i18n": "^3.12.4", + "@react-aria/ssr": "^3.9.7", + "@react-aria/utils": "^3.26.0", + "@react-aria/visually-hidden": "^3.8.18", + "@react-spectrum/accordion": "^3.0.0", + "@react-spectrum/actionbar": "^3.6.2", + "@react-spectrum/actiongroup": "^3.10.10", + "@react-spectrum/avatar": "^3.0.17", + "@react-spectrum/badge": "^3.1.18", + "@react-spectrum/breadcrumbs": "^3.9.12", + "@react-spectrum/button": "^3.16.9", + "@react-spectrum/buttongroup": "^3.6.17", + "@react-spectrum/calendar": "^3.5.0", + "@react-spectrum/checkbox": "^3.9.11", + "@react-spectrum/color": "^3.0.2", + "@react-spectrum/combobox": "^3.14.0", + "@react-spectrum/contextualhelp": "^3.6.16", + "@react-spectrum/datepicker": "^3.11.0", + "@react-spectrum/dialog": "^3.8.16", + "@react-spectrum/divider": "^3.5.18", + "@react-spectrum/dnd": "^3.5.0", + "@react-spectrum/dropzone": "^3.0.6", + "@react-spectrum/filetrigger": "^3.0.6", + "@react-spectrum/form": "^3.7.10", + "@react-spectrum/icon": "^3.8.0", + "@react-spectrum/illustratedmessage": "^3.5.5", + "@react-spectrum/image": "^3.5.6", + "@react-spectrum/inlinealert": "^3.2.10", + "@react-spectrum/labeledvalue": "^3.1.18", + "@react-spectrum/layout": "^3.6.10", + "@react-spectrum/link": "^3.6.12", + "@react-spectrum/list": "^3.9.0", + "@react-spectrum/listbox": "^3.14.0", + "@react-spectrum/menu": "^3.21.0", + "@react-spectrum/meter": "^3.5.5", + "@react-spectrum/numberfield": "^3.9.8", + "@react-spectrum/overlays": "^5.7.0", + "@react-spectrum/picker": "^3.15.4", + "@react-spectrum/progress": "^3.7.11", + "@react-spectrum/provider": "^3.10.0", + "@react-spectrum/radio": "^3.7.11", + "@react-spectrum/searchfield": "^3.8.11", + "@react-spectrum/slider": "^3.7.0", + "@react-spectrum/statuslight": "^3.5.17", + "@react-spectrum/switch": "^3.5.10", + "@react-spectrum/table": "^3.15.0", + "@react-spectrum/tabs": "^3.8.15", + "@react-spectrum/tag": "^3.2.11", + "@react-spectrum/text": "^3.5.10", + "@react-spectrum/textfield": "^3.12.7", + "@react-spectrum/theme-dark": "^3.5.14", + "@react-spectrum/theme-default": "^3.5.14", + "@react-spectrum/theme-light": "^3.4.14", + "@react-spectrum/tooltip": "^3.7.0", + "@react-spectrum/view": "^3.6.14", + "@react-spectrum/well": "^3.4.18", + "@react-stately/collections": "^3.12.0", + "@react-stately/data": "^3.12.0", + "@react-types/shared": "^3.26.0", + "client-only": "^0.0.1" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1", + "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/icons": { + "version": "0.85.0", + "resolved": "https://registry.npmjs.org/@deephaven/icons/-/icons-0.85.0.tgz", + "integrity": "sha512-8G77T/RPLs+SRdxWJJmOAFV0cS14U63L7hwJ8aqhMQmQkNqTqeDKrPXugXpOGN4iw3rkN05UPgV6ypS9XtbEgA==", + "dependencies": { + "@fortawesome/fontawesome-common-types": "^6.1.1" + }, + "peerDependencies": { + "@fortawesome/fontawesome-svg-core": "^6.2.1", + "@fortawesome/react-fontawesome": "^0.2.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/jsapi-bootstrap": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/jsapi-bootstrap/-/jsapi-bootstrap-0.85.35.tgz", + "integrity": "sha512-hVXMVuWNecore/AJHZdlZQrubtq60NFZ+CdWQQaUVMu5Pf1nCxFAPJ7YVzhTYyg6Pwl2KbfPYZCX4RkoN8CaYQ==", + "dependencies": { + "@deephaven/components": "^0.85.35", + "@deephaven/jsapi-types": "^1.0.0-dev0.39.4", + "@deephaven/log": "^0.85.19", + "@deephaven/react-hooks": "^0.85.35", + "@deephaven/utils": "^0.85.35" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/jsapi-bootstrap/node_modules/@deephaven/jsapi-types": { + "version": "1.0.0-dev0.40.3", + "resolved": "https://registry.npmjs.org/@deephaven/jsapi-types/-/jsapi-types-1.0.0-dev0.40.3.tgz", + "integrity": "sha512-gHNpFuxfYPrbceGSiri9kaq1xUWMZIB/PCufAGP8c3JV/UTe4UJZla1MHG/T4OoASZqAPBLf22ryHDlVxEjVyA==" + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/jsapi-bootstrap/node_modules/@deephaven/react-hooks": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/react-hooks/-/react-hooks-0.85.35.tgz", + "integrity": "sha512-eOip5/TJMw1Yc8dKc54RlA6fesvgUZfwrwE0BWOerQTeRRVHFX4f1oRbAARpOEEsasWeVwpQlO20/wdShj71eg==", + "dependencies": { + "@adobe/react-spectrum": "3.38.0", + "@deephaven/log": "^0.85.19", + "@deephaven/utils": "^0.85.35", + "lodash.debounce": "^4.0.8", + "lodash.throttle": "^4.1.1", + "nanoid": "^5.0.7" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/jsapi-bootstrap/node_modules/@deephaven/react-hooks/node_modules/@adobe/react-spectrum": { + "version": "3.38.0", + "resolved": "https://registry.npmjs.org/@adobe/react-spectrum/-/react-spectrum-3.38.0.tgz", + "integrity": "sha512-0/zFmTz/sKf8rvB8EHMuWIE5miY1gSAvTr5q4fPIiQJQwMAlQyXfH3oy++/MsiC30HyT3Mp93scxX2F1ErKL4g==", + "dependencies": { + "@internationalized/string": "^3.2.5", + "@react-aria/i18n": "^3.12.4", + "@react-aria/ssr": "^3.9.7", + "@react-aria/utils": "^3.26.0", + "@react-aria/visually-hidden": "^3.8.18", + "@react-spectrum/accordion": "^3.0.0", + "@react-spectrum/actionbar": "^3.6.2", + "@react-spectrum/actiongroup": "^3.10.10", + "@react-spectrum/avatar": "^3.0.17", + "@react-spectrum/badge": "^3.1.18", + "@react-spectrum/breadcrumbs": "^3.9.12", + "@react-spectrum/button": "^3.16.9", + "@react-spectrum/buttongroup": "^3.6.17", + "@react-spectrum/calendar": "^3.5.0", + "@react-spectrum/checkbox": "^3.9.11", + "@react-spectrum/color": "^3.0.2", + "@react-spectrum/combobox": "^3.14.0", + "@react-spectrum/contextualhelp": "^3.6.16", + "@react-spectrum/datepicker": "^3.11.0", + "@react-spectrum/dialog": "^3.8.16", + "@react-spectrum/divider": "^3.5.18", + "@react-spectrum/dnd": "^3.5.0", + "@react-spectrum/dropzone": "^3.0.6", + "@react-spectrum/filetrigger": "^3.0.6", + "@react-spectrum/form": "^3.7.10", + "@react-spectrum/icon": "^3.8.0", + "@react-spectrum/illustratedmessage": "^3.5.5", + "@react-spectrum/image": "^3.5.6", + "@react-spectrum/inlinealert": "^3.2.10", + "@react-spectrum/labeledvalue": "^3.1.18", + "@react-spectrum/layout": "^3.6.10", + "@react-spectrum/link": "^3.6.12", + "@react-spectrum/list": "^3.9.0", + "@react-spectrum/listbox": "^3.14.0", + "@react-spectrum/menu": "^3.21.0", + "@react-spectrum/meter": "^3.5.5", + "@react-spectrum/numberfield": "^3.9.8", + "@react-spectrum/overlays": "^5.7.0", + "@react-spectrum/picker": "^3.15.4", + "@react-spectrum/progress": "^3.7.11", + "@react-spectrum/provider": "^3.10.0", + "@react-spectrum/radio": "^3.7.11", + "@react-spectrum/searchfield": "^3.8.11", + "@react-spectrum/slider": "^3.7.0", + "@react-spectrum/statuslight": "^3.5.17", + "@react-spectrum/switch": "^3.5.10", + "@react-spectrum/table": "^3.15.0", + "@react-spectrum/tabs": "^3.8.15", + "@react-spectrum/tag": "^3.2.11", + "@react-spectrum/text": "^3.5.10", + "@react-spectrum/textfield": "^3.12.7", + "@react-spectrum/theme-dark": "^3.5.14", + "@react-spectrum/theme-default": "^3.5.14", + "@react-spectrum/theme-light": "^3.4.14", + "@react-spectrum/tooltip": "^3.7.0", + "@react-spectrum/view": "^3.6.14", + "@react-spectrum/well": "^3.4.18", + "@react-stately/collections": "^3.12.0", + "@react-stately/data": "^3.12.0", + "@react-types/shared": "^3.26.0", + "client-only": "^0.0.1" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1", + "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/jsapi-types": { + "version": "1.0.0-dev0.35.2", + "resolved": "https://registry.npmjs.org/@deephaven/jsapi-types/-/jsapi-types-1.0.0-dev0.35.2.tgz", + "integrity": "sha512-VM1WAps/+KEXdxIiaEGutcjgaf5p1LNf6AA+Hv7sTIaENYYJpndZqD6bGFcuuiUVTYDlnFF0hohN4l6lOsjcQw==" + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/jsapi-utils": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/jsapi-utils/-/jsapi-utils-0.85.35.tgz", + "integrity": "sha512-yTWk7Dp8qL43oDSuNwDldl7e22IZsSBD/o+T6sRfjnYeWx2uhWTAQLShzOdLBIbf32MnvJT8gb7V24TV/4sOeA==", + "dependencies": { + "@deephaven/filters": "^0.85.0", + "@deephaven/jsapi-types": "^1.0.0-dev0.39.4", + "@deephaven/log": "^0.85.19", + "@deephaven/utils": "^0.85.35", + "lodash.clamp": "^4.0.3", + "nanoid": "^5.0.7" + }, + "engines": { + "node": ">=16" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/jsapi-utils/node_modules/@deephaven/jsapi-types": { + "version": "1.0.0-dev0.40.3", + "resolved": "https://registry.npmjs.org/@deephaven/jsapi-types/-/jsapi-types-1.0.0-dev0.40.3.tgz", + "integrity": "sha512-gHNpFuxfYPrbceGSiri9kaq1xUWMZIB/PCufAGP8c3JV/UTe4UJZla1MHG/T4OoASZqAPBLf22ryHDlVxEjVyA==" + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/log": { + "version": "0.85.19", + "resolved": "https://registry.npmjs.org/@deephaven/log/-/log-0.85.19.tgz", + "integrity": "sha512-z1maZojpcKxIWGkvq9ZSD1P+92LY1qZMGDjyeb84/mn+krVVFN1LTsmVCNOfA0S73s6+1UdzTch0AE4vo3EEGA==", + "dependencies": { + "event-target-shim": "^6.0.2", + "jszip": "^3.10.1" + }, + "engines": { + "node": ">=16" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/plugin": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/plugin/-/plugin-0.85.35.tgz", + "integrity": "sha512-h2N6xompKhrxAJGwRieH35oJokyUo920wRBx2GMELMLcSfYVZ5iIEnbqUuXTs3UbSWUgd4tC4NS2xYBu4WAbLg==", + "dependencies": { + "@deephaven/components": "^0.85.35", + "@deephaven/golden-layout": "^0.85.35", + "@deephaven/icons": "^0.85.0", + "@deephaven/iris-grid": "^0.85.35", + "@deephaven/jsapi-types": "^1.0.0-dev0.39.4", + "@deephaven/log": "^0.85.19", + "@deephaven/react-hooks": "^0.85.35", + "@fortawesome/fontawesome-common-types": "^6.1.1", + "@fortawesome/react-fontawesome": "^0.2.0", + "nanoid": "^5.0.7" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/plugin/node_modules/@deephaven/golden-layout": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/golden-layout/-/golden-layout-0.85.35.tgz", + "integrity": "sha512-oIF3gqfK2SVV5U/6R1Pcb/NK5XWQ5WjdFXiq+As2RGHVWO/YveaEZhY9P5/JYu0cjHETRh+mcoa8J2Sd6YpaMg==", + "dependencies": { + "@deephaven/components": "^0.85.35", + "jquery": "^3.6.0", + "nanoid": "^5.0.7" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/plugin/node_modules/@deephaven/iris-grid": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/iris-grid/-/iris-grid-0.85.35.tgz", + "integrity": "sha512-du2nFvGWEMrAsJV0e4nQyD1+sRAZYB1UdE33j8+gi0CgHnYIoOsuGMKAz4i1u6OHKK0tpTK0GLFB/tyHbwnVFQ==", + "dependencies": { + "@deephaven/components": "^0.85.35", + "@deephaven/console": "^0.85.35", + "@deephaven/filters": "^0.85.0", + "@deephaven/grid": "^0.85.35", + "@deephaven/icons": "^0.85.0", + "@deephaven/jsapi-components": "^0.85.35", + "@deephaven/jsapi-types": "^1.0.0-dev0.39.4", + "@deephaven/jsapi-utils": "^0.85.35", + "@deephaven/log": "^0.85.19", + "@deephaven/react-hooks": "^0.85.35", + "@deephaven/storage": "^0.85.19", + "@deephaven/utils": "^0.85.35", + "@dnd-kit/core": "^6.1.0", + "@dnd-kit/sortable": "^7.0.2", + "@dnd-kit/utilities": "^3.2.2", + "@fortawesome/react-fontawesome": "^0.2.0", + "classnames": "^2.3.1", + "fast-deep-equal": "^3.1.3", + "lodash.clamp": "^4.0.3", + "lodash.debounce": "^4.0.8", + "lodash.throttle": "^4.1.1", + "memoize-one": "^5.1.1", + "memoizee": "^0.4.15", + "monaco-editor": "^0.41.0", + "nanoid": "^5.0.7", + "prop-types": "^15.7.2", + "react-beautiful-dnd": "^13.1.0", + "react-transition-group": "^4.4.2" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/plugin/node_modules/@deephaven/iris-grid/node_modules/@deephaven/console": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/console/-/console-0.85.35.tgz", + "integrity": "sha512-sqPSxYbcg2EjJ+CyGrgeI7pfYmOjbGSifQaW0CD16z1isrD+o5EaIR0y4dwg5JSdimGZppXlWs5GiQikpGifdQ==", + "dependencies": { + "@deephaven/chart": "^0.85.35", + "@deephaven/components": "^0.85.35", + "@deephaven/icons": "^0.85.0", + "@deephaven/jsapi-bootstrap": "^0.85.35", + "@deephaven/jsapi-types": "^1.0.0-dev0.39.4", + "@deephaven/jsapi-utils": "^0.85.35", + "@deephaven/log": "^0.85.19", + "@deephaven/react-hooks": "^0.85.35", + "@deephaven/storage": "^0.85.19", + "@deephaven/utils": "^0.85.35", + "@fortawesome/react-fontawesome": "^0.2.0", + "classnames": "^2.3.1", + "linkifyjs": "^4.1.0", + "lodash.debounce": "^4.0.8", + "lodash.throttle": "^4.1.1", + "memoize-one": "^5.1.1", + "memoizee": "^0.4.15", + "monaco-editor": "^0.41.0", + "nanoid": "^5.0.7", + "papaparse": "5.3.2", + "popper.js": "^1.16.1", + "prop-types": "^15.7.2", + "shell-quote": "^1.7.2" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/plugin/node_modules/@deephaven/iris-grid/node_modules/@deephaven/grid": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/grid/-/grid-0.85.35.tgz", + "integrity": "sha512-dRcxrAAlWqhB4PWQTfxaJCrtiAOX21v1Po12p0j7VDQXkwdBMkkkL3JLr3wT1ETlmWFkh8R9PyHUXAG4P8pZCA==", + "dependencies": { + "@deephaven/utils": "^0.85.35", + "classnames": "^2.3.1", + "color-convert": "^2.0.1", + "event-target-shim": "^6.0.2", + "linkifyjs": "^4.1.0", + "lodash.clamp": "^4.0.3", + "memoize-one": "^5.1.1", + "memoizee": "^0.4.15", + "prop-types": "^15.7.2" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/plugin/node_modules/@deephaven/iris-grid/node_modules/@deephaven/jsapi-components": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/jsapi-components/-/jsapi-components-0.85.35.tgz", + "integrity": "sha512-PebAvfV8YHrUowcl8ZnSwWsDzgI8/bc4T36sCeeyNaSQ089+BwcPwFPm9PgTpe8TDmg9tYJRdyYHZexAbb7aSA==", + "dependencies": { + "@deephaven/components": "^0.85.35", + "@deephaven/jsapi-bootstrap": "^0.85.35", + "@deephaven/jsapi-types": "^1.0.0-dev0.39.4", + "@deephaven/jsapi-utils": "^0.85.35", + "@deephaven/log": "^0.85.19", + "@deephaven/react-hooks": "^0.85.35", + "@deephaven/utils": "^0.85.35", + "@types/js-cookie": "^3.0.3", + "classnames": "^2.3.2", + "js-cookie": "^3.0.5", + "lodash.debounce": "^4.0.8", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/plugin/node_modules/@deephaven/iris-grid/node_modules/@deephaven/storage": { + "version": "0.85.19", + "resolved": "https://registry.npmjs.org/@deephaven/storage/-/storage-0.85.19.tgz", + "integrity": "sha512-rDLcoqYv3WD8KO8/xE0Hy+zv/wJ0lhlmiJInCxsSXkcPOnD5IC5YWAK/Ov+/57+JH/r9kHmZt/JmuRKAmpv0Ow==", + "dependencies": { + "@deephaven/filters": "^0.85.0", + "@deephaven/log": "^0.85.19", + "lodash.throttle": "^4.1.1" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/plugin/node_modules/@deephaven/jsapi-types": { + "version": "1.0.0-dev0.40.3", + "resolved": "https://registry.npmjs.org/@deephaven/jsapi-types/-/jsapi-types-1.0.0-dev0.40.3.tgz", + "integrity": "sha512-gHNpFuxfYPrbceGSiri9kaq1xUWMZIB/PCufAGP8c3JV/UTe4UJZla1MHG/T4OoASZqAPBLf22ryHDlVxEjVyA==" + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/plugin/node_modules/@deephaven/react-hooks": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/react-hooks/-/react-hooks-0.85.35.tgz", + "integrity": "sha512-eOip5/TJMw1Yc8dKc54RlA6fesvgUZfwrwE0BWOerQTeRRVHFX4f1oRbAARpOEEsasWeVwpQlO20/wdShj71eg==", + "dependencies": { + "@adobe/react-spectrum": "3.38.0", + "@deephaven/log": "^0.85.19", + "@deephaven/utils": "^0.85.35", + "lodash.debounce": "^4.0.8", + "lodash.throttle": "^4.1.1", + "nanoid": "^5.0.7" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/plugin/node_modules/@deephaven/react-hooks/node_modules/@adobe/react-spectrum": { + "version": "3.38.0", + "resolved": "https://registry.npmjs.org/@adobe/react-spectrum/-/react-spectrum-3.38.0.tgz", + "integrity": "sha512-0/zFmTz/sKf8rvB8EHMuWIE5miY1gSAvTr5q4fPIiQJQwMAlQyXfH3oy++/MsiC30HyT3Mp93scxX2F1ErKL4g==", + "dependencies": { + "@internationalized/string": "^3.2.5", + "@react-aria/i18n": "^3.12.4", + "@react-aria/ssr": "^3.9.7", + "@react-aria/utils": "^3.26.0", + "@react-aria/visually-hidden": "^3.8.18", + "@react-spectrum/accordion": "^3.0.0", + "@react-spectrum/actionbar": "^3.6.2", + "@react-spectrum/actiongroup": "^3.10.10", + "@react-spectrum/avatar": "^3.0.17", + "@react-spectrum/badge": "^3.1.18", + "@react-spectrum/breadcrumbs": "^3.9.12", + "@react-spectrum/button": "^3.16.9", + "@react-spectrum/buttongroup": "^3.6.17", + "@react-spectrum/calendar": "^3.5.0", + "@react-spectrum/checkbox": "^3.9.11", + "@react-spectrum/color": "^3.0.2", + "@react-spectrum/combobox": "^3.14.0", + "@react-spectrum/contextualhelp": "^3.6.16", + "@react-spectrum/datepicker": "^3.11.0", + "@react-spectrum/dialog": "^3.8.16", + "@react-spectrum/divider": "^3.5.18", + "@react-spectrum/dnd": "^3.5.0", + "@react-spectrum/dropzone": "^3.0.6", + "@react-spectrum/filetrigger": "^3.0.6", + "@react-spectrum/form": "^3.7.10", + "@react-spectrum/icon": "^3.8.0", + "@react-spectrum/illustratedmessage": "^3.5.5", + "@react-spectrum/image": "^3.5.6", + "@react-spectrum/inlinealert": "^3.2.10", + "@react-spectrum/labeledvalue": "^3.1.18", + "@react-spectrum/layout": "^3.6.10", + "@react-spectrum/link": "^3.6.12", + "@react-spectrum/list": "^3.9.0", + "@react-spectrum/listbox": "^3.14.0", + "@react-spectrum/menu": "^3.21.0", + "@react-spectrum/meter": "^3.5.5", + "@react-spectrum/numberfield": "^3.9.8", + "@react-spectrum/overlays": "^5.7.0", + "@react-spectrum/picker": "^3.15.4", + "@react-spectrum/progress": "^3.7.11", + "@react-spectrum/provider": "^3.10.0", + "@react-spectrum/radio": "^3.7.11", + "@react-spectrum/searchfield": "^3.8.11", + "@react-spectrum/slider": "^3.7.0", + "@react-spectrum/statuslight": "^3.5.17", + "@react-spectrum/switch": "^3.5.10", + "@react-spectrum/table": "^3.15.0", + "@react-spectrum/tabs": "^3.8.15", + "@react-spectrum/tag": "^3.2.11", + "@react-spectrum/text": "^3.5.10", + "@react-spectrum/textfield": "^3.12.7", + "@react-spectrum/theme-dark": "^3.5.14", + "@react-spectrum/theme-default": "^3.5.14", + "@react-spectrum/theme-light": "^3.4.14", + "@react-spectrum/tooltip": "^3.7.0", + "@react-spectrum/view": "^3.6.14", + "@react-spectrum/well": "^3.4.18", + "@react-stately/collections": "^3.12.0", + "@react-stately/data": "^3.12.0", + "@react-types/shared": "^3.26.0", + "client-only": "^0.0.1" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1", + "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/@deephaven/utils": { + "version": "0.85.35", + "resolved": "https://registry.npmjs.org/@deephaven/utils/-/utils-0.85.35.tgz", + "integrity": "sha512-C/0Wb3dS5PZOAMHv+B0QDxn7LSyH9gzGiztM6cuCx9ZLm7kVXMkGoqHlUhKpSv6cl7qLVOCFaPPa4eyp3WdGjg==", + "engines": { + "node": ">=16" + } + }, + "plugins/python-remote-file-source/src/js/node_modules/monaco-editor": { + "version": "0.41.0", + "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.41.0.tgz", + "integrity": "sha512-1o4olnZJsiLmv5pwLEAmzHTE/5geLKQ07BrGxlF4Ri/AXAc2yyDGZwHjiTqD8D/ROKUZmwMA28A+yEowLNOEcA==" + }, "plugins/simple-pivot/src/js": { "name": "@deephaven/js-plugin-simple-pivot", "version": "0.0.3-dev.2", diff --git a/package.json b/package.json index aaa726269..05c870ba3 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "test": "jest --watch --changedSince origin/main", "test:unit": "jest --config jest.config.unit.cjs", "test:lint": "jest --config jest.config.lint.cjs", + "test:remote-file-source": "./tools/test_remote_file_source.sh", "test:ci": "run-p test:ci:*", "test:ci:unit": "jest --config jest.config.unit.cjs --ci --cacheDirectory $PWD/.jest-cache", "test:ci:lint": "jest --config jest.config.lint.cjs --ci --cacheDirectory $PWD/.jest-cache", diff --git a/plugins/python-remote-file-source/.gitignore b/plugins/python-remote-file-source/.gitignore new file mode 100644 index 000000000..4da5acac4 --- /dev/null +++ b/plugins/python-remote-file-source/.gitignore @@ -0,0 +1,9 @@ +build/ +dist/ +.venv/ +/venv +*.egg-info/ +.idea +.DS_store +__pycache__/ +node_modules \ No newline at end of file diff --git a/plugins/python-remote-file-source/LICENSE b/plugins/python-remote-file-source/LICENSE new file mode 100644 index 000000000..d64569567 --- /dev/null +++ b/plugins/python-remote-file-source/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/plugins/python-remote-file-source/README.md b/plugins/python-remote-file-source/README.md new file mode 100644 index 000000000..beb9204ec --- /dev/null +++ b/plugins/python-remote-file-source/README.md @@ -0,0 +1,178 @@ +# Deephaven Python Remote File Source Plugin + +A Deephaven bi-directional plugin to allow sourcing Python imports from a remote file source. It consists of a Python plugin installed and then instantiated in a Deephaven Core / Core+ worker. When a client connects to the plugin, a custom Python `sys.meta_path` finder and loader are registered that will send messages to the client to request content for loading modules. + +## Plugin Messages +Bi-directional communication between the server plugin and a client uses JSON-RPC. + +### JSON-RPC Messages + +The plugin uses the following JSON-RPC v2 messages for communication between the Python server and the client: + +#### Request: `request_plugin_info` +**Direction:** Client → Server + +Returns a list of top-level module names available for remote import. + +**Example:** +```json +{ + "jsonrpc": "2.0", + "id": "", + "method": "request_plugin_info", + "params": {} +} +``` + +**Response:** +```json +{ + "jsonrpc": "2.0", + "id": "", + "result": { + "full_names": ["module1", "module2", ...] + } +} +``` + +#### Request: `set_connection_id` +**Direction:** Client → Server + +Sets the connection id on the MessageStream and tells the MessageStream it can register a `RemoteMetaPathFinder` to source Python imports for scripts run with a matching execution context connection id. + +**Example:** +```json +{ + "jsonrpc": "2.0", + "id": "", + "method": "set_connection_id", + "params": {"id": ""} +} +``` + +**Response:** +```json +{ + "jsonrpc": "2.0", + "id": "", + "result": null +} +``` + +#### Request: `fetch_module` +**Direction:** Server → Client + +Requests the source code and file path for a Python module from the client. Used by the server to fetch remote modules for import. + +**Example:** +```json +{ + "jsonrpc": "2.0", + "id": "", + "method": "fetch_module", + "params": {"module_name": "some.module.name"} +} +``` + +**Response:** +```json +{ + "jsonrpc": "2.0", + "id": "", + "result": { + "filepath": "/path/to/module.py", + "source": "" + } +} +``` +If the module spec is not found `result` will be `None`. The `filepath` property will contain a filesystem path or `