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:

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.3.0.tar.gz (197.5 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.3.0-py3-none-any.whl (215.8 kB view details)

Uploaded Python 3

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

Hashes for pyjs_examples-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5b8d0db2f290280a5c9013496697ea170b27c27ad638172a0885faddcd375245
MD5 e28abafe5665244813cb4440613dc18d
BLAKE2b-256 c16c851d4acc11c30e7b1bed95d60d1a8e6677a0e0d32f5fa1a263b398b55452

See more details on using hashes here.

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

Hashes for pyjs_examples-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a6601007e07ec0753dd02353518437d7f1334002ee93d0100a35f688667132f
MD5 478b642a3976c57a7af59a302de141e3
BLAKE2b-256 cbddd2c78f9c5f9dbe570c3ea46e3a18014bb6ffbf21874716cf74a21836a4ba

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.0

2 files

This release

0.3.0 This release

2 files

0.0.2

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