Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd55ac92

Browse files
committed
README and getting started updates
1 parent1f2c242 commitd55ac92

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

‎GETTING-STARTED.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,13 @@ pyscript.write('pi', f'π is approximately {pi:.3f}')
116116
In addition to the[Python Standard Library](https://docs.python.org/3/library/) and
117117
the`pyscript` module, many 3rd-party OSS packages will work out-of-the-box with PyScript.
118118
In order to use them you will need to delcare the dependencies using the`<py-env>` in the
119-
HTML head.
119+
HTML head. You can also link to`.whl` files directly on disk like in our[toga example](https://github.com/pyscript/pyscript/blob/main/pyscriptjs/examples/toga/freedom.html)
120+
121+
```
122+
<py-env>
123+
- './static/wheels/travertino-0.1.3-py3-none-any.whl'
124+
</py-env>
125+
```
120126

121127
For example, NumPy and Matplotlib are available. Notice here we're using`<py-script output="plot">`
122128
as a shortcut, which takes the expression on the last line of the script and runs`pyscript.write('plot', fig)`.
@@ -149,4 +155,6 @@ fig
149155
</py-script>
150156
</body>
151157
</html>
152-
```
158+
```
159+
160+
If your`.whl` is not a pure Python wheel then open a PR or issue with[pyodide](https://github.com/pyodide/pyodide) to get it added herehttps://github.com/pyodide/pyodide/tree/main/packages

‎README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
###tl;dr
66
PyScript is a Pythonic alternative to Scratch, JSFiddle or other "easy to use" programming frameworks, making the web a friendly, hackable, place where anyone can author interesting and interactive applications.
77

8-
To demonstrate pyscript, see[the pyscript folder](pyscriptjs/README.md).
8+
To get started see[GETTING-STARTED][GETTING-STARTED.md]
9+
10+
For examples see[the pyscript folder](pyscriptjs/README.md).
911

1012
###Longer Version
1113
PyScript is a meta project that aims to combine multiple open technologies to create a framework for users to use Python (and other languages) to create sophisticated applications in the browser. It highly integrate with the way the DOM works in the browser and allows users to add logic, in Python, in a way that feel natural to web as well as Python developers.
@@ -28,9 +30,9 @@ Check out the `/examples` folder for more examples on how to use it, all you nee
2830

2931
To contribute:
3032

31-
* clone the repo
33+
* clone the repo`git clone https://github.com/pyscript/pyscript`
3234
* cd into the main project folder with`cd pyscriptjs`
33-
* install the dependencies with`npm install`
35+
* install the dependencies with`npm install` - make sure to use npm version >= 16
3436
* run`npm run dev` to build and run the dev server. This will also watch for changes and rebuild when a file is saved
3537

3638
##Notes

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp