Skip to main content

gramlot-examples

The common example pages of Gramlot, the gallery page that presents them, and its catalogue. Published as a package that depends only on the Gramlot core:

pip install gramlot-examples
npm install @gramlot/gramlot-examples

PyPI npm

Current release: 0.3.32.

Clone the examples to keep an editable copy. Install Python 3.11 or newer, Git and Node.js 22 or newer with npm, then run (macOS/Linux):

git clone https://github.com/gramlot-org/gramlot-examples.git
cd gramlot-examples
python3 -m venv .venv
source .venv/bin/activate
npm install --package-lock=false
npm run build
python -m pip install -e . "gramlot-py-server[uvicorn]"
gramlot uvicorn gallery --remote-edit

On Windows, use python -m venv .venv and activate the environment with .venv\Scripts\activate in Command Prompt; the remaining commands are the same.

Open the local address printed by the command. In an example's Code tab, edit the Python source and select Save; the local source file is updated and the preview reloads. --remote-edit also permits saving in the IDE's temporary sample workspace, which is reset when the gallery stops. Use this option only on your own trusted local server; the public gallery is read-only. Without the option, example sources remain read-only.

Database examples may require additional services and configuration.

Documentation and learning sequence include every lesson, its Python and JavaScript source, and the gallery guide. To run the examples, choose the Python server, Node.js/Bun server or serverless exporter.

The repositories of the family are described in The Gramlot family (GC-055).

Updating

Choose packaged or source-checkout updates. A Python gallery installed from source also needs its JavaScript bundles rebuilt; updating Python files alone does not update the footer inspector.

Pages

src/gramlot_examples/pages/ holds five families. Each example is a Python page and its JavaScript equivalent, with a same-name README:

  • html_svg/: thirteen HTML and SVG pages, without binding (e01–e13);

  • binding/: eleven pages whose DOM follows the Data (b01–b11);

  • controllers/: twenty-three pages with formulas, controllers, named logic, events, the end-to-end story, dataRpc calls to the endpoints of the page, remote fragments and dataRemote values (c01–c23). Later lessons introduce topics, authored references, native ask, parent/child messages, plain HTML buttons and delayed Gramlot clicks. The package requires the current core release; each lesson states which features it uses.

  • components/: thirty-four lessons for inputs, labelbox, formlet, group copy, command buttons and field validation (w01–w25), with compact controls.

  • layout/: eight container lessons (l01–l08), with live splitters, drawers, nested layouts, selection and closing events, fourteen tab presentations, a guided drawer tour and a lazy carousel with retained live previews.

Each NN_name.js exports Page, and Logic when the page names client methods; the Python page NN_name.py takes that Logic from the module beside it.

The gallery page lists the families and opens each example beside its README and source. build_gallery (Python) and buildGallery (JavaScript) return its routes and static assets; each environment (gramlot-py-server, gramlot-js-server) serves the gallery with its own server and can add its own catalogue. Guide: GE-010.

npm install --no-package-lock
npm run build
npm test
python -m pytest -q tests

Repository map (GE-005).

Metadata

Release files for gramlot-examples 0.3.32

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gramlot-examples 0.3.32
File Size Uploaded Provenance Actions
gramlot_examples-0.3.32.tar.gz 19.4 MB With provenance Details for gramlot_examples-0.3.32.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gramlot-examples 0.3.32
File Interpreter ABI Platform Actions
gramlot_examples-0.3.32-py3-none-any.whl Python 3 none any Details for gramlot_examples-0.3.32-py3-none-any.whl

Total release size: 39.1 MB

Release files / gramlot_examples-0.3.32.tar.gz

Download URL gramlot_examples-0.3.32.tar.gz
Size 19.4 MB
Tags Source
SHA-256 checksum
How to use checksums
5148a9fabcce6808af814c1a06667e8b1ffc2ce802c149d9592d6b9a8f3e5bab
BLAKE2b-256 checksum
How to use checksums
fd03227cfd1c8db6e5999631431fa15e2e2064617731a0793bafe437fe85788b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / gramlot_examples-0.3.32-py3-none-any.whl

Download URL gramlot_examples-0.3.32-py3-none-any.whl
Size 19.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c17783475abd51de27e4a5ff72b9bd5e4164740ce08d84ce9cb2310ff6eb5b4b
BLAKE2b-256 checksum
How to use checksums
36f0e2f672fe50caf9cb701cf970c67ded2b78b6a98dcfb205185edb589efcaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for gramlot-examples 0.3.32

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gramlot_examples-0.3.32.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.32 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page