Skip to main content

dialoghelper

Usage

Installation

Install from pypi

$ pip install dialoghelper

Documentation

Documentation can be found hosted on this GitHub repository’s pages.

Dialog identity and filenames

In a gateway kernel, dialoghelper reaches rustygate through a rustygate comm, so it needs no URL or token. Outside one, it sends plain HTTP to RUSTYGATE_URL. Current-session reads, edits and execution use dh_settings['kid'], initialized from RUSTYGATE_KERNEL_ID. The gateway owns the notebook binding, and renames and restarts keep the kernel id. When the gateway renames the notebook, it tells the kernel, which updates its cwd and dh_settings['path']. find_dname() returns the notebook’s current name. Explicit dname arguments name notebooks by path.

Dialog names include .ipynb; find_dname adds it to an input that lacks it, and a trailing slash names a folder instead. Inputs such as lesson.ipynb resolve relative to the current dialog’s folder. A leading slash, as in /project/lesson.ipynb, addresses the gateway root rather than the disk root. find_dname returns gateway-root-relative filenames without a leading slash. list_dialogs retains notebook extensions and marks folders with a trailing slash.

realpath() returns the gateway’s on-disk root. realpath('') and list_dialogs() default to the current notebook’s folder. Relative subpaths use that folder even after a notebook rename, not the kernel’s mutable cwd. A leading slash uses the gateway root. realpath accepts prospective paths without creating them, and works them out in the kernel without a gateway call. .. can move up within the root, and a path that resolves outside it raises ValueError. Notebook-relative paths require a bound kernel.

Folder-local skills

Solveit activates pyskills from the dialog’s opening folder before loading its tool layer. Put a public .py module or package in a _pyskills/ directory there or in an ancestor. Give it a module docstring. list_pyskills() discovers it and ordinary imports load it without an install or entry-point declaration. The nearest local folder wins. Changing cwd or moving a live dialog does not change the selected scope; restart its kernel to use the new location. Function permissions remain separate from discovery.

Development

The source notebooks contain the API explanations and examples. Their dialog operations require a disposable Solveit dialog. Rustygate’s suite tests message selection, conversion, import and mutation behavior.

Metadata

Release files for dialoghelper 0.2.52

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

Source distribution (sdist)

Source distribution for dialoghelper 0.2.52
File Size Uploaded Provenance Actions
dialoghelper-0.2.52.tar.gz 33.9 kB Without provenance Details for dialoghelper-0.2.52.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dialoghelper 0.2.52
File Interpreter ABI Platform Actions
dialoghelper-0.2.52-py3-none-any.whl Python 3 none any Details for dialoghelper-0.2.52-py3-none-any.whl

Total release size: 69.9 kB

Release files / dialoghelper-0.2.52.tar.gz

Download URL dialoghelper-0.2.52.tar.gz
Size 33.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a97eaa97698cfc382c22cc68fcebc517dba4caf6cba3c3b06cd5cc165aef4f00
BLAKE2b-256 checksum
How to use checksums
1fc6ff19daa2e0e884007493a99da0687c3e11432b007217f8d6665699e102f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / dialoghelper-0.2.52-py3-none-any.whl

Download URL dialoghelper-0.2.52-py3-none-any.whl
Size 36.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38e871b4ed521f6b19efb75b6784f6b6ff8721cc2a1d26666f86f5043128d53f
BLAKE2b-256 checksum
How to use checksums
390cb096bb1699b2e1f5ebe96669dafa47e795525615e3ebfc2f1a662f82b793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for dialoghelper 0.2.52

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.2.52 This release

2 release files No 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