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:

python -m pip install -e . -e ./examples

An installed PyJS release provides the same package through the examples extra:

python -m pip install "pyjs[examples]"

Run any complete application as a module:

Example Command
Calculator python -m pyjs_examples.calculator
Chatroom python -m pyjs_examples.chatroom
Kanban board python -m pyjs_examples.kanban
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.1.tar.gz (169.3 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.1-py3-none-any.whl (182.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyjs_examples-0.0.1.tar.gz
  • Upload date:
  • Size: 169.3 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.1.tar.gz
Algorithm Hash digest
SHA256 6240aaeeaea24b39913b9475f61bcb520ee0274427bda5e061b658655217d18e
MD5 cdd225e259b87b41caccbf576b23a6e1
BLAKE2b-256 254889067bdbbcdc40bf991dbe0e47f255f723cc7fbc6fa35b4bf3503ec88229

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyjs_examples-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 182.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e58df9f0ee2c78609fd8865674767abba0f46ea7991a34ccc7e559a1d2fc03af
MD5 b8a64cb2f4b428c68d2610676b949323
BLAKE2b-256 c716b800791aaa7a694a9de9b95dfc4299d70d8ae38a5d9195e28ad9e0548152

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.0

2 files

0.3.0

2 files

0.0.2

2 files

This release

0.0.1 This release

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