Skip to main content

json-config-qt

Tests Code Quality

A Qt (PySide6) editor for the layers of a json-config LayeredConfig: a tree view with typed values, undo and redo per layer, and saving of each layer's own file.

Install

pip install sowwic-json-config-qt

Requires Python 3.14+. It imports as json_config_qt.

Usage

Spawn the editor as a floating dialog from a host app by handing it a LayeredConfig:

from json_config_qt.editor_dialog import ConfigEditorDialog

dialog = ConfigEditorDialog.show_for(config, parent=main_window)  # one dialog per config
dialog.saved.connect(on_layer_saved)  # config.values is already refreshed

Or embed json_config_qt.editor_widget.ConfigEditorWidget directly. It has no menus; its public actions (save_action, save_all_action, new_layer_action, undo_action, redo_action, ...) can be placed in the host's own UI, and shortcuts only apply while the editor has focus. Call confirm_discard() from the host's close handling to get the unsaved-changes prompt.

The layer list comes from config.layers; edits apply to each layer's own data and are written with layer_manager.save(), after which config.resolve() refreshes config.values.

Debug launcher: uv run python -m json_config_qt.main base.json user.json (later files override earlier ones).

See the documentation for the value types, the context menu, how saving works and the architecture.

Development

uv sync            # install the project and dev dependencies
make check         # lint + tests
make help          # list all targets, including pypi-publish

Releasing

  1. Add a v<version> entry to CHANGELOG.rst, update VERSION (make update-version) and commit on main.
  2. make release VERSION=<version> tags, pushes (triggering the GitHub release workflow) and back-merges into develop.
  3. make pypi-publish-dev / make pypi-publish upload to TestPyPI / PyPI (see the developer guide).

Metadata

Release files for sowwic-json-config-qt 1.0.1

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

Source distribution (sdist)

Source distribution for sowwic-json-config-qt 1.0.1
File Size Uploaded Provenance Actions
sowwic_json_config_qt-1.0.1.tar.gz 19.1 kB Without provenance Details for sowwic_json_config_qt-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sowwic-json-config-qt 1.0.1
File Interpreter ABI Platform Actions
sowwic_json_config_qt-1.0.1-py3-none-any.whl Python 3 none any Details for sowwic_json_config_qt-1.0.1-py3-none-any.whl

Total release size: 42.2 kB

Release files / sowwic_json_config_qt-1.0.1.tar.gz

Download URL sowwic_json_config_qt-1.0.1.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
93f14f0debbe8295c23701cb93f0cb82074e6a9bf45147c29a7c2fe2cd146282
BLAKE2b-256 checksum
How to use checksums
a84466ad5f61effb37c6f9ba947504fd52b0a6b5a34295067d07516ad3c74649
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / sowwic_json_config_qt-1.0.1-py3-none-any.whl

Download URL sowwic_json_config_qt-1.0.1-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5ea3c84e47e15963141aff5cd071a66ea5f57aa4964a859611d0d43ff5fcdb2
BLAKE2b-256 checksum
How to use checksums
db1a41ad61798e003db906ae3bb9d414015b63e0161f31d6b27c5daa97b6e71b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for sowwic-json-config-qt 1.0.1

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

1.0.1 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