@stlite/desktop 0.60.1 → 0.60.3

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.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <img src="./docs/images/stlite-desktop-banner-pathified.svg" style="background: white;" >
4
4
 
5
- Convert your [Streamlit](https://streamlit.io/) application into a desktop app with [stlite](https://github.com/whitphx/stlite) runtime, a [Pyodide](https://pyodide.org/)-based Wasm-port of Streamlit.
5
+ Convert your [Streamlit](https://streamlit.io/) application into a desktop app with [Stlite](https://github.com/whitphx/stlite) runtime, a [Pyodide](https://pyodide.org/)-based Wasm-port of Streamlit.
6
6
 
7
7
  ## How to create a Streamlit desktop app
8
8
 
@@ -26,7 +26,7 @@ Convert your [Streamlit](https://streamlit.io/) application into a desktop app w
26
26
  }
27
27
  },
28
28
  "devDependencies": {
29
- "@stlite/desktop": "^0.57.0",
29
+ "@stlite/desktop": "^0.60.2",
30
30
  "cross-env": "^7.0.3",
31
31
  "electron": "30.0.8",
32
32
  "electron-builder": "^24.13.3"
@@ -127,8 +127,8 @@ If you want to hide the toolbar, hamburger menu, and footer, add the following t
127
127
 
128
128
  ### File system
129
129
 
130
- _stlite_ runs your Python code on [Pyodide](https://pyodide.org/), a CPython runtime compiled to Wasm, and Pyodide's backend, Emscripten, provides a virtual file system.
131
- When _stlite_ runs your app, it mounts the source files onto the virtual file system, and what your Python code can access (e.g. `open("/path/to/something")`) is files and directories on the virtual file system.
130
+ _Stlite_ runs your Python code on [Pyodide](https://pyodide.org/), a CPython runtime compiled to Wasm, and Pyodide's backend, Emscripten, provides a virtual file system.
131
+ When _Stlite_ runs your app, it mounts the source files onto the virtual file system, and what your Python code can access (e.g. `open("/path/to/something")`) is files and directories on the virtual file system.
132
132
 
133
133
  The default file system ([`MEMFS`](https://emscripten.org/docs/api_reference/Filesystem-API.html#memfs)) is ephemeral, so the files saved in the directories are lost when the app is restarted. If you want to persist the files across the app restarts, you can use the IndexedDB-based file system ([`IDBFS`](https://emscripten.org/docs/api_reference/Filesystem-API.html#filesystem-api-idbfs)) or mount directories on the host OS file system to directories on the virtual file system.
134
134
 
@@ -182,9 +182,9 @@ In the example below, `"."` on the host OS file system is mounted to the `/mnt`
182
182
  `@stlite/desktop` runs your app on [Electron](https://www.electronjs.org/) as a desktop app.
183
183
  Electron apps have two processes: the main process which is a Node.js process running in the background, and the renderer process which is a Chromium (browser) process running the app's UI.
184
184
 
185
- By default, _stlite_ executes your Python code on Pyodide running in a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) dispatched by the renderer process, and the renderer process is a browser process so it's sandboxed from the host OS.
185
+ By default, _Stlite_ executes your Python code on Pyodide running in a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) dispatched by the renderer process, and the renderer process is a browser process so it's sandboxed from the host OS.
186
186
 
187
- When you set the `stlite.desktop.nodeJsWorker` field in your `package.json` to `true`, _stlite_ dispatches the worker as a [NodeJS worker](https://nodejs.org/api/worker_threads.html) that runs in the main process, which is not sandboxed, so you can mount the host OS file system to the virtual file system as described in the previous section.
187
+ When you set the `stlite.desktop.nodeJsWorker` field in your `package.json` to `true`, _Stlite_ dispatches the worker as a [NodeJS worker](https://nodejs.org/api/worker_threads.html) that runs in the main process, which is not sandboxed, so you can mount the host OS file system to the virtual file system as described in the previous section.
188
188
 
189
189
  ```json
190
190
  {
@@ -115,10 +115,10 @@
115
115
  "static/media/KaTeX_Main-Italic.woff2": "/static/media/KaTeX_Main-Italic.fe2176f79edaa716e621.woff2",
116
116
  "static/media/KaTeX_Main-BoldItalic.woff2": "/static/media/KaTeX_Main-BoldItalic.20f389c4120be058d80a.woff2",
117
117
  "static/media/KaTeX_Script-Regular.ttf": "/static/media/KaTeX_Script-Regular.fc9ba5249878cd8f8d88.ttf",
118
+ "pypi/stlite_server-0.1.0-py3-none-any.whl": "/pypi/stlite_server-0.1.0-py3-none-any.whl",
118
119
  "static/media/KaTeX_Math-Italic.woff2": "/static/media/KaTeX_Math-Italic.6d3d25f4820d0da8f01f.woff2",
119
120
  "static/media/KaTeX_Math-BoldItalic.woff2": "/static/media/KaTeX_Math-BoldItalic.dcbcbd93bac0470b462d.woff2",
120
121
  "static/media/KaTeX_Typewriter-Regular.woff": "/static/media/KaTeX_Typewriter-Regular.4c6b94fd1d07f8beff7c.woff",
121
- "pypi/stlite_server-0.1.0-py3-none-any.whl": "/pypi/stlite_server-0.1.0-py3-none-any.whl",
122
122
  "static/media/KaTeX_SansSerif-Bold.woff": "/static/media/KaTeX_SansSerif-Bold.b9cd458ac6d5889ff9c3.woff",
123
123
  "static/media/KaTeX_SansSerif-Italic.woff": "/static/media/KaTeX_SansSerif-Italic.8d593cfaa96238d5e2f8.woff",
124
124
  "static/media/KaTeX_Typewriter-Regular.woff2": "/static/media/KaTeX_Typewriter-Regular.c295e7f71970f03c0549.woff2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stlite/desktop",
3
- "version": "0.60.1",
3
+ "version": "0.60.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -70,9 +70,9 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@craco/craco": "^7.0.0",
73
- "@stlite/common": "^0.60.1",
74
- "@stlite/common-react": "^0.60.1",
75
- "@stlite/kernel": "^0.60.1",
73
+ "@stlite/common": "^0.60.3",
74
+ "@stlite/common-react": "^0.60.3",
75
+ "@stlite/kernel": "^0.60.3",
76
76
  "@streamlit/app": "1.36.0",
77
77
  "@testing-library/react": "^14.1.2",
78
78
  "@testing-library/user-event": "^14.0.0",
@@ -82,7 +82,7 @@
82
82
  "@types/react-dom": "^17.0.5",
83
83
  "@types/yargs": "^17.0.32",
84
84
  "electron": "30.0.8",
85
- "electron-builder": "^24.9.1",
85
+ "electron-builder": "^24.13.2",
86
86
  "electron-reload": "^2.0.0-alpha.1",
87
87
  "esbuild": "^0.20.0",
88
88
  "glob": "^10.3.12",