Skip to content

Commit e741649

Browse files
author
Ted Patrick
committed
docs
1 parent 237497a commit e741649

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

+32
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
11
# pyscript-local-runtime
2+
3+
This downloads PyScript and all runtime dependencies locally.
4+
5+
Download Runtime...
6+
```shell
7+
cd runtime
8+
source setup.sh
9+
```
10+
11+
Combined with a `<py-config>` as follows:
12+
```html
13+
<py-config>
14+
[[runtimes]]
15+
src = "runtime/pyodide.js"
16+
name = "pyodide-0.21.3"
17+
lang = "python"
18+
</py-config>
19+
```
20+
21+
And PyScript loaded locally like so:
22+
```html
23+
<link rel="stylesheet" href="runtime/pyscript.css" />
24+
<script defer src="runtime/pyscript.js"></script>
25+
```
26+
27+
Everything you need is now local. Perfect for Extensions, Offline, Environments where the Internet is not available.
28+
29+
Credits to https://github.com/PFython/ChromeAWSOM for the question.
30+
31+
Regards,
32+
33+
Ted :)

0 commit comments

Comments
 (0)