Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hoodmane/pyscript-local-runtime
A quick and dirty attempt to make pyscript work from localhost
https://github.com/hoodmane/pyscript-local-runtime
Last synced: 1 day ago
JSON representation
A quick and dirty attempt to make pyscript work from localhost
- Host: GitHub
- URL: https://github.com/hoodmane/pyscript-local-runtime
- Owner: hoodmane
- Created: 2023-03-14T21:47:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T14:24:56.000Z (almost 2 years ago)
- Last Synced: 2024-11-24T15:15:50.162Z (2 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This heavily WIP script puts all of the Pyodide assets that a pyscript
`index.html` file needs into a `runtime` folder. If `index.html` is next to the
runtime folder, then you can put
```toml
[[interpreters]]
src = "runtime/pyodide.js"
name = "pyodide-0.21.3"
lang = "python"
```
in your `` and all of the Pyodide assets will be loaded from the runtime folder.To run:
```shell
cd path/to/pyscript-project-folder
wget https://github.com/pyodide/pyodide/releases/download/0.22.1/pyodide-core-0.22.1.tar.bz2
tar -xf ./pyodide-core-0.22.1.tar.bz2
mv pyodide runtime
npx path/to/pyscript-local/
```