edit and view json
Project description
streamlit-editjson
A Streamlit component to view and edit JSON with a user-friendly UI.
Installation
pip install streamlit-editjson
Usage
import streamlit as st
from streamlit_editjson import editjson
value = editjson(
filepath="test.json",
key_editable=False, # default
value_editable=True, # default
)
st.write(value) # Python dict
API
editjson(filepath, key_editable=False, value_editable=True, key=None) -> dict
filepath: path to a JSON file.key_editable: allow editing JSON keys.value_editable: allow editing JSON values.key: optional Streamlit component key.
The component returns the edited JSON object as a Python dict.
Testing
Python unit tests
Run:
python -m unittest discover -s tests -p "test_*.py"
Running locally
Run:
python -m streamlit run src/streamlit_editjson/__init__.py --server.port 8501
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_editjson-1.0.0.tar.gz.
File metadata
- Download URL: streamlit_editjson-1.0.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90cea39b38562f6974b3986aeba08ca84dd41c9e9b1c04834a943eb34e18b022
|
|
| MD5 |
06727a5aca97a44e93b2e6ed9476dd86
|
|
| BLAKE2b-256 |
cc9ea09d19fbf025af5cad551283c7835a26bd80adc504c0dd6f35443fc7e992
|
Provenance
The following attestation bundles were made for streamlit_editjson-1.0.0.tar.gz:
Publisher:
cd.yml on Thomasssb1/streamlit-editjson
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
streamlit_editjson-1.0.0.tar.gz -
Subject digest:
90cea39b38562f6974b3986aeba08ca84dd41c9e9b1c04834a943eb34e18b022 - Sigstore transparency entry: 1166425031
- Sigstore integration time:
-
Permalink:
Thomasssb1/streamlit-editjson@9345d92d407e1f7824da6fe41e17a5dcb57830f2 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Thomasssb1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@9345d92d407e1f7824da6fe41e17a5dcb57830f2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file streamlit_editjson-1.0.0-py3-none-any.whl.
File metadata
- Download URL: streamlit_editjson-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3552fb892606a63881dc5006e32e26b76fd1349fefeff25c4a8ca9d1324d291
|
|
| MD5 |
2c7e5ab55e3066f379cd768a193c9c95
|
|
| BLAKE2b-256 |
036685dd20f673f257f888453d73c886b3928593bc1e4d313b36421a145c1aed
|
Provenance
The following attestation bundles were made for streamlit_editjson-1.0.0-py3-none-any.whl:
Publisher:
cd.yml on Thomasssb1/streamlit-editjson
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
streamlit_editjson-1.0.0-py3-none-any.whl -
Subject digest:
c3552fb892606a63881dc5006e32e26b76fd1349fefeff25c4a8ca9d1324d291 - Sigstore transparency entry: 1166425083
- Sigstore integration time:
-
Permalink:
Thomasssb1/streamlit-editjson@9345d92d407e1f7824da6fe41e17a5dcb57830f2 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Thomasssb1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@9345d92d407e1f7824da6fe41e17a5dcb57830f2 -
Trigger Event:
push
-
Statement type: