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(xml, depth=2).servable()
Api
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): Whencollapsibleis set toTrue, this defines the initial collapsed depth. Set it to0for fully collapsed, or-1for 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.
Alternatives
- Panel CodeEditor: Displays XML nicely if
language="xml".
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
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 panel_xml-0.1.4.tar.gz.
File metadata
- Download URL: panel_xml-0.1.4.tar.gz
- Upload date:
- Size: 7.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.28
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc197f580d83a668a10bad9b7ffa10dfed05118ab4611259a1a2a28ee0c435ff
|
|
| MD5 |
e8edf87e8d4d5ced616f4ce319932bd8
|
|
| BLAKE2b-256 |
3cea309c87dc655cdd42c574d9621a0978926d783ddcfb8f9f917db63c8e413a
|
File details
Details for the file panel_xml-0.1.4-py3-none-any.whl.
File metadata
- Download URL: panel_xml-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.28
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2997e3164d2930cb4c70b800c88ede619ef30339a7337e7b30d1fc3c84b26081
|
|
| MD5 |
7ba1e6b9e6160607b420aecdd563c1fd
|
|
| BLAKE2b-256 |
39df4cfc0e5103d413f06d5ec15b87a791fd91b0696d52b264173d206d5e2181
|