Skip to main content

Set up a PyScript web app by running one command.

Project description

create-pyscript-app

Create PyScript web app project.

License Version Python Version


pip install create-pyscript-app


you can see the preview site HERE


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 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

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

PyScript

Create React App

create-next-app (Next.js)

License

This project is Apache-2.0 licensed. This software is powered by PyScript software.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

create-pyscript-app-0.0.3.tar.gz (44.5 kB view details)

Uploaded Source

Built Distribution

create_pyscript_app-0.0.3-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

Details for the file create-pyscript-app-0.0.3.tar.gz.

File metadata

  • Download URL: create-pyscript-app-0.0.3.tar.gz
  • Upload date:
  • Size: 44.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.6

File hashes

Hashes for create-pyscript-app-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6c40b6e5bc64d4c0ab13836c4a1bd43ffc9c99a18d04cfbba5e2b39c03d17f25
MD5 31a63fcbd8af4aaec679d5f180ecba9f
BLAKE2b-256 03600efe1a85eb3056589d53ce04566ce21423a353e38fbff5aa01f9f674aef8

See more details on using hashes here.

File details

Details for the file create_pyscript_app-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for create_pyscript_app-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eff894183e9bbef1c537e63d1f7046e1a7fcf78f381f9f6a0e1ccfd04e41b289
MD5 9325ddd335e3bb252b817b28afa78796
BLAKE2b-256 8032e8e52b5f6b5f4ad02946ee1613bd87d5fe18249373595070e38f96daa51d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page