Skip to main content

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:

Example Command
Calculator python -m pyjs_examples.calculator
Chatroom python -m pyjs_examples.chatroom
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

pyjs_examples-0.0.2.tar.gz (179.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyjs_examples-0.0.2-py3-none-any.whl (194.2 kB view details)

Uploaded Python 3

File details

Details for the file pyjs_examples-0.0.2.tar.gz.

File metadata

  • Download URL: pyjs_examples-0.0.2.tar.gz
  • Upload date:
  • Size: 179.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for pyjs_examples-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0ad7537edcf75f589cfd61b69eb85afd86d75fd3a0aab3d3f605bebec6a99779
MD5 245e8665434206c34ea9b6f36e97b851
BLAKE2b-256 a63ef88db164409f90f1d3c03417a617d68d7047db3329817522ad20af2c9f2a

See more details on using hashes here.

File details

Details for the file pyjs_examples-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyjs_examples-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 194.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for pyjs_examples-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8d85ec7776ec82a7e0016dbe747f43d5b82b73f3e55300cb6452b6760a9ed031
MD5 da7188ffad266786596a6225806b9959
BLAKE2b-256 789aa5d2e529abc2902d217aeb58a668970007deeb6433187ad25d2d93bde0f5

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.0

2 files

0.3.0

2 files

This release

0.0.2 This release

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page