Set up a PyScript web app by running one command.
Project description
Creating an App
-
You'll need to have Python 3.6 or later version on local development machine.
-
To run PyScript, Internet connection is required because of using 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
Run the App in local browser
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).
What is PyScript
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.
Reference
create-next-app (Next.js)
License
This project is Apache-2.0 licensed. This software is powered by PyScript software.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for create-pyscript-app-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4365cfd623b7babb177f573f7081853c097496a64ec1e3022bfa8e805b7177a9 |
|
MD5 | 3245160f207d0a96bc296ab1a3b2077d |
|
BLAKE2b-256 | 6a55aa6a5fcd5774ead9facfadc0f256d1effa347c5691743ffb714d5c4ba9a2 |
Hashes for create_pyscript_app-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b7daf8cd5b3818d612ab5adfc6b54f727860c84726223007877184a074b5aca |
|
MD5 | d34a2b589c435e88c816b1b66a01db98 |
|
BLAKE2b-256 | 1e75c4c1bc164bbb2dae93faf7dc6d216416e77572d8a83deb8dc16403510e16 |