Skip to main content

Dash porting version of the react project React JSON Grid. Provide structured and nested grid table view of complicated JSON objects/arrays.

Project description

Dash JSON Grid

Banner

GitHub release (latest SemVer) GitHub all releases GitHub PyPI - Downloads

GitHub Actions (Build) GitHub Actions (Release)

Dash JSON Grid is a Dash component library.

Dash porting version of the react project React JSON Grid :link:. Provide structured and nested grid table view of complicated JSON objects/arrays.

The following two figures compare the demos of the original React version and the ported Dash version. Since this project is just a dash component wrapper on the original React component, the performance is the same.

React JSON Grid Dash JSON Grid
demo-react demo-dash

1. Install

Intall the latest released version of this package by using the PyPI source:

python -m pip install dash-json-grid

Or use the following commands to install the developing version from the GitHub Source when you have already installed Git :hammer:, NodeJS :hammer:, and Yarn :hammer::

git clone https://github.com/cainmagi/dash-json-grid
cd dash-json-grid
python -m pip install -r requirements-dev.txt
yarn install
yarn build
python -m pip install .

2. Usages

The following codes provide a minimal example of using this component:

import dash
import dash_json_grid as djg


app = dash.Dash("demo")
app.layout = djg.DashJsonGrid(
    data={
        "id": "0001",
        "type": "donut",
        "name": "Cake",
        "ppu": 1111.55,
        "batters": {
            "batter": [
                {"id": "1001", "type": "Regular"},
                {"id": "1002", "type": "Chocolate"},
                {"id": "1003", "type": "Blueberry"},
                {"id": "1004", "type": "Devil's Food"},
            ]
        },
        "topping": [
            {"id": "5001", "type": "None"},
            {"id": "5002", "type": "Glazed"},
            {"id": "5005", "type": "Sugar"},
            {"id": "5007", "type": "Powdered Sugar"},
            {"id": "5006", "type": "Chocolate with Sprinkles"},
            {"id": "5003", "type": "Chocolate"},
            {"id": "5004", "type": "Maple"},
        ],
    }
)

if __name__ == "__main__":
    app.run()

3. Documentation

Check the documentation to find more details about the examples and APIs.

https://cainmagi.github.io/dash-json-grid/

6. Contributing

See CONTRIBUTING.md :book:

7. Changelog

See Changelog.md :book:

8. Acknowledgements

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

dash_json_grid-0.4.3.tar.gz (359.7 kB view details)

Uploaded Source

Built Distribution

dash_json_grid-0.4.3-py3-none-any.whl (58.1 kB view details)

Uploaded Python 3

File details

Details for the file dash_json_grid-0.4.3.tar.gz.

File metadata

  • Download URL: dash_json_grid-0.4.3.tar.gz
  • Upload date:
  • Size: 359.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dash_json_grid-0.4.3.tar.gz
Algorithm Hash digest
SHA256 e7990c08893082ff1e013d4821a353b24d0b6f94d3aaebab7c83c9d30a3005a1
MD5 befab706bf71bfd030677322f4709667
BLAKE2b-256 e5fb1986439812d308760bfaf71502ead96506363c39572388c9b34a7b24831b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dash_json_grid-0.4.3.tar.gz:

Publisher: python-publish.yml on cainmagi/dash-json-grid

Attestations:

File details

Details for the file dash_json_grid-0.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for dash_json_grid-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 87f362e9154a24ba60ca95fefffc4e4fa3489b4d582ed9dcdd53f584b3d1e61d
MD5 7dd415ee84bc5aa89c18d06c408a522a
BLAKE2b-256 84672feb8cbb88b8c8072d13eeb44d963cd50ddb53cbecbbee2303395446be15

See more details on using hashes here.

Provenance

The following attestation bundles were made for dash_json_grid-0.4.3-py3-none-any.whl:

Publisher: python-publish.yml on cainmagi/dash-json-grid

Attestations:

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