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

Commit378e3ef

Browse files
authored
Merge pull requestpyscript#72 from msaroufim/docs
README and getting started updates
2 parents4de2a30 +f16b1d8 commit378e3ef

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

‎GETTING-STARTED.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ pyscript.write('pi', f'π is approximately {pi:.3f}')
114114

115115
In addition to the[Python Standard Library](https://docs.python.org/3/library/) and
116116
the`pyscript` module, many 3rd-party OSS packages will work out-of-the-box with PyScript.
117+
118+
In order to use them you will need to delcare the dependencies using the`<py-env>` in the
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+
```
126+
127+
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. If there's enough popular demand the pyodide team will likely work on supporting your package, regardless things will likely move faster if you make the PR and consult with the team to get unblocked.
128+
117129
In order to use them you will need to declare the dependencies using the`<py-env>` in the
118130
HTML head.
119131

@@ -197,4 +209,5 @@ fig
197209
</py-script>
198210
</body>
199211
</html>
200-
```
212+
```
213+

‎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 integrates with the way the DOM works in the browser and allows users to add logic, in Python, in a way that feels 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 nodejs 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
##Resources

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp