you can see the preview site HERE
-
You'll need to have Python 3.6 or later version on local development machine.
-
To run PyScript, Internet connection is required because it use assets served on https://pyscript.net. If you want to download the source and build it yourself, follow the instructions in the PyScript README.md file.
To create a new app, first install package with pip:
pip install create-pyscript-app
and run following command with project directory name(in this example, my-app):
python -m create-pyscript-app my-app
It will create a directory called my-app
inside the current folder.
Inside that directory, it will generate the initial project structure:
my-app
├── index.html
├── index.css
├── app.py
└── favicon.ico
Once the installation is done, you can open your project foler:
cd my-app
and open local http server with run following command:
python -m http.server
check the following message about port (default :8000) and open url "http://localhost:8000/" in browser (Chrome recommended).
Python + JavaScript
Python in the browser
PyScript is a framework that allows users to create rich Python applications in the browser using HTML's interface and the power of Pyodide, WASM, and modern web technologies.
create-next-app (Next.js)
This project is Apache-2.0 licensed. This software is powered by PyScript software.