Skip to main content

Widget Generator for JSON schema

Project description

ipywidgets-jsonschema - A widget generator for your Jupyter notebooks

License: MIT GitHub Workflow Status PyPI version Binder

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 and not rules for schema composition
    • Media types
    • Conditional subschemas (might be added)
  • Some annotations that are purely optional in the specification are required for the schema to be usable with ipywidgets-jsonschema e.g. a title field when the resulting widget would otherwise not be self-explanatory.

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

ipywidgets_jsonschema-0.7.1.tar.gz (9.8 kB view details)

Uploaded Source

File details

Details for the file ipywidgets_jsonschema-0.7.1.tar.gz.

File metadata

  • Download URL: ipywidgets_jsonschema-0.7.1.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

Hashes for ipywidgets_jsonschema-0.7.1.tar.gz
Algorithm Hash digest
SHA256 f6b7a116b9273d6d1714bc07f67cd0d1a102edfc0b323a73e04fc191aa219631
MD5 c338a0633e10207cf7fd7d9c8b2387d6
BLAKE2b-256 65dd7a169f5700f31b22dfa703704cd78964edb4983bfd6ac39b4f830df4ae64

See more details on using hashes here.

Provenance

Supported by

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