PyJS Examples
This directory is the source tree for the separately installable
pyjs-examples distribution. Setuptools maps this directory to the
pyjs_examples import package, so the examples remain easy to browse in the
repository while installing as an ordinary top-level package.
From the repository root, install the core and examples from a source checkout:
uv sync
An installed PyJS release provides the same package through the examples
extra:
python -m pip install "pyjs[examples]"
Run each complete application with the command shown:
- Calculator:
python -m pyjs_examples.calculator - Chatroom:
python -m pyjs_examples.chatroom - Django issue tracker:
python -m pyjs_examples.issue_tracker - Kanban board:
python -m pyjs_examples.kanban - Navigation workspace:
python -m pyjs_examples.navigation - NativeScript Counter:
python -m pyjs_examples.nativescript_counter - Space Invaders:
python -m pyjs_examples.space_invaders - TodoMVC:
python -m pyjs_examples.todomvc - Component workspace:
python -m pyjs_examples.workspace - Component catalog:
python -m pyjs_examples.catalog
List or copy examples using the core scaffolding command:
pyjs template
pyjs template pyjs_examples.calculator
pyjs create my-calculator --template pyjs_examples.calculator
pyjs create --single-file my_counter.py --template pyjs_examples.counter
The distribution registers modules and packages through the pyjs.templates
entry-point group. PyJS infers file and directory templates from normal Python
module structure instead of hardcoding a catalog.
The focused samples are small, executable sources intended for
documentation excerpts and pyjs create PROJECT --template NAME. The initial
catalog includes pyjs_examples.samples.state_counter and
pyjs_examples.samples.ui_dialog.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyjs_examples-0.3.0.tar.gz.
File metadata
- Download URL: pyjs_examples-0.3.0.tar.gz
- Upload date:
- Size: 197.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b8d0db2f290280a5c9013496697ea170b27c27ad638172a0885faddcd375245
|
|
| MD5 |
e28abafe5665244813cb4440613dc18d
|
|
| BLAKE2b-256 |
c16c851d4acc11c30e7b1bed95d60d1a8e6677a0e0d32f5fa1a263b398b55452
|
File details
Details for the file pyjs_examples-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pyjs_examples-0.3.0-py3-none-any.whl
- Upload date:
- Size: 215.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a6601007e07ec0753dd02353518437d7f1334002ee93d0100a35f688667132f
|
|
| MD5 |
478b642a3976c57a7af59a302de141e3
|
|
| BLAKE2b-256 |
cbddd2c78f9c5f9dbe570c3ea46e3a18014bb6ffbf21874716cf74a21836a4ba
|