Skip to main content

Dynamic GUI Generator from JSON Schema

Project description

KoreUI Logo

KoreUI

Dynamic GUI Generator from JSON Schema
Build fully-functional PySide6 interfaces from JSON Schema — including complex features like if/then/else, allOf, dynamic arrays, and real-time validation.


🚀 Features

  • 📄 Full support for JSON Schema Draft 2020-12*
  • 🧩 Handles if / then / else, allOf, anyOf, oneOf, $ref, and more
  • 🧠 Live conditionals — forms change in real-time based on inputs
  • 🛠️ Built-in validation with contextual error messages
  • 🧪 Ideal for form builders, config tools, admin panels, or low-code platforms
*Soon. Denser schemas may or may not fail- this is being looked into.

📦 Installation

Run the following:

pip install koreui

Requirements:

  • Python 3.10+
  • PySide6

📦 Installation

pip install koreui

Requirements:

  • Python 3.10+
  • PySide6

🧑‍💻 Usage

  1. Create a JSON schema file (e.g., schema.json):
{
    "title": "User Profile",
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "title": "Full Name"
        }
    }
}
  1. Use KoreUI in your Python code:
from PySide6.QtWidgets import QApplication
from koreui import JsonSchemaForm, load_schema

# Create Qt application
app = QApplication([])

# Load schema and create form
schema = load_schema('schema.json')
form = JsonSchemaForm(schema)

# Show form and run application
form.show()
app.exec()
  1. Get form data:
# After form is filled out
data = form.get_form_data()
print(data)  # Dictionary with form values

🧱 Architecture

  • src/koreui.py – Core schema resolver, validator, and widget logic
  • src/loader.py – A helper script to load a Schema from a JSON
  • app.py – App entry point
  • example_schema.json – Example JSON Schema used to render a dynamic form

📝 License

GNU Affero General Public License v3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

koreui-0.2.1.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

koreui-0.2.1-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

Details for the file koreui-0.2.1.tar.gz.

File metadata

  • Download URL: koreui-0.2.1.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for koreui-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e08a4ca139107edf711dac4d213c7c951143ccaec51f44e5943680d9b7e9dba5
MD5 49aa0e58797d62ba254a146909df3391
BLAKE2b-256 23a4565882e5146f3378108feb13e1ce42e732effeaa2b623b3ce7aa995f341a

See more details on using hashes here.

File details

Details for the file koreui-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: koreui-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for koreui-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c8901b2eaa3e0dfe2c1d8a4280c03ead54f8d017d1ff0d28595b797e07060c1
MD5 a8d9d8a6d915db062c51fe4f22a06222
BLAKE2b-256 546d9ee6ff53c82f9b5c0c05e3b1efbbaaa3e59d09649b4de2df91c69b9898e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page