A project providing a XML Pane for use with HoloViz Panel.
Project description
✨ panel-xml
panel-xml
provides the XML
pane to display and explore XML in notebooks and Panel data apps.
It is based on react-xml-viewer.
Key Features
- Configurable Depth: Set an initial collapsible depth for better navigation.
- Collapse/Expand Tags: Intuitively collapse or expand tags to streamline XML exploration.
- Customizable Theme: Configure the colors and appearance with a customizable theme.
Installation
You can install panel-xml
using pip
:
pip install panel-xml
Usage
Basic XML Pane
Here’s how to create a simple XML pane using the XML
widget:
import panel as pn
from panel_xml import XML
pn.extension()
xml = '''
<ul>
<li>Hello</li>
<li>World</li>
</ul>
'''
XML(object=xml, depth=2).servable()
Parameters
object
(str): The XML string to display in a prettified format.indent_size
(int): The size of the indentation.collapsible
(bool): Enable collapsing/expanding tags. When collapsed, content and attributes are hidden.depth
(int): Whencollapsible
is set toTrue
, this defines the initial collapsed depth. Set it to0
for fully collapsed, or-1
for fully expanded.theme
(dict): A dictionary to customize the theme. See the react-xml-viewer theme documentation for details.
XML Editor
Open the XML Editor to explore the features and documentation of the XML
pane interactively.
❤️ Contributions
Contributions and co-maintainers are very welcome! Please submit issues or pull requests to the GitHub repository. Check out the DEVELOPER_GUIDE for more information.
Start using panel-xml
to integrate rich, interactive XML displays directly into your Python applications!
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
File details
Details for the file panel_xml-0.1.2.tar.gz
.
File metadata
- Download URL: panel_xml-0.1.2.tar.gz
- Upload date:
- Size: 7.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.26
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93571fc027aa1ee3b46783e9d0a4b72ca82ac9ca45b6d6d8eeeac75805b905e6 |
|
MD5 | 0a2c9b58ad0ca1769c7470d5cd5edfe2 |
|
BLAKE2b-256 | 889dd684bea8e1e06c4e94fdfc4ea56f2083f4099d1efd183410ba2bb477f516 |
File details
Details for the file panel_xml-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: panel_xml-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.26
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b6c2de0a8337c853b9c970ea16e2b6a316f30f8534f289b577def3791a748c3 |
|
MD5 | 644ff073c6e20a7d1dd35ab53494df91 |
|
BLAKE2b-256 | 42cbb58cea1d6ba1f66542c286808de98e6242037c1633958a3a2429ad29ffdf |