Widget Generator for JSON schema
Project description
ipywidgets-jsonschema - A widget generator for your Jupyter notebooks
This project allows you to generate Jupyter widgets from schemas that follow the JSONSchema specification. If you already have a schema available, creating a widget form for it is as simple as this:
from ipywidgets_jsonschema import Form
form = Form(schema)
form.show()
The data can then be retrieved from form
by accessing form.data
.
Features
These are the core features:
- Generation of
ipywidgets
widgets for all basic types - Read and write access to the current document state
Installation
ipywidgets-jsonschema
can be installed with pip:
python -m pip install ipywidgets-jsonschema
Known limitations
- Some aspects of the JSON Schema specification are hard to implement in
a form generator and are therefore omitted e.g.
- The
allOf
andnot
rules for schema composition - Media types
- Conditional subschemas (might be added)
- The
- Some annotations that are purely optional in the specification are required
for the schema to be usable with
ipywidgets-jsonschema
e.g. atitle
field when the resulting widget would otherwise not be self-explanatory.
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
File details
Details for the file ipywidgets_jsonschema-0.7.2.tar.gz
.
File metadata
- Download URL: ipywidgets_jsonschema-0.7.2.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89770fe9744bd93f6c44a0cd83aaac38306d869b869d9be88b9112443c97e5fd |
|
MD5 | 9d6608ebd674d292fb01813cb310edf9 |
|
BLAKE2b-256 | d97021589a8fba30dfed98c981c0d1aa60e860fe1418a6de711447fa9160db28 |