Convert json-schema to QWidgets
Project description
pyqtschema
pyqtschema
allows the generation of a graphical representation of a jsonschema. A given
schema is translated to QWidgets.
Installation
As usual:
-
install the pypi version
pip install pyqtschema
-
or clone the repository
pip install git+https://github.com/amsico/pyqtschema.git
Usage
Use the WidgetBuilder
in applications or run the module to visualize a schema:
python -m pyqtschema ./path/to/your/scheam.json
Examples
Several examples are available in the examples folder. The examples use pydantic to generate schemas easily.
Background
pyqtschema
is inspired by qt-jsonschema-form. Due to the author's
lack of time and the missing
anyOf-support
, this project was started.
Changelog
Version 0.2.0 (2023-05-05)
- use QtPy instead of
PyQt5
Version 0.1.9 (2022-07-12)
- FIX: default calculation for simple AllOf-cases
- New example for ui_schema usage
- New example for simple AllOf case
Version 0.1.8 (2022-07-04)
- state-setter in EnumWidget supports Enum-objects
- FIX: is_valid_data function in Schema returned wrong results
- FIX: AnyOf-Widget was not working properly with several types of the same type (issue #13)
- add first testing for EnumWidget
- renamed some examples
Version 0.1.7 (2022-02-11)
- improve the readme-file
- add simple load/save functionality to the application
- add changelog to project-description
- add workaround for pydantic-allOf schema
Version 0.1.6 (2022-02-10)
- improve anyOf support:
- setting a state may modify the combo-box (if entry was changed)
- improve default-support
Version 0.1.5 (2022-02-09)
- improve path/directory-support
Version 0.1.4 (2022-02-04)
- improve visibility of widgets (relevant widgets scale)
- add
parent
parameter to create_widget in builder - pass parent to QWidgets to avoid flickering during the initialization
Version 0.1.3 (2022-02-03)
- support
ui:hidden
in ui_schema (hide an unwanted widget; default is False) - support
ui:disabled
in ui_schema (disable an unwanted widget; default is False) - support parent parameter in create_form-function (Issue #6)
Version 0.1.2 (2022-02-02)
- first official release on pypi: https://pypi.org/project/pyqtschema/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyqtschema-0.2.0.tar.gz
.
File metadata
- Download URL: pyqtschema-0.2.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 103cbb257f5c6a77d003b22ae773645a6b9908b084e07062e74ba27ad00250be |
|
MD5 | 100d24bb6970879bd801e05344d11927 |
|
BLAKE2b-256 | 1449970b7aadb05a5573863238f7d8d7c06210cbe8bd560c3de81a6e9776c6eb |
File details
Details for the file pyqtschema-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: pyqtschema-0.2.0-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad4f10557b7a913a3260a1fedb70bd66124a7974bbdab89d66cd2728e5161ae3 |
|
MD5 | 3e672ae4ec730e1529d4e96b0893071d |
|
BLAKE2b-256 | 63c1f19797ed0952cc26cde5ed81c3cacfaf25741e17bd9148122ceca81d13db |