Skip to main content

A project providing a XML Pane for use with HoloViz Panel.

Project description

✨ panel-xml

License py.cafe

panel-xml provides the XML pane to display and explore XML in notebooks and Panel data apps.

panel-xml in notebook

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

py.cafe

panel-xml

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()

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): When collapsible is set to True, this defines the initial collapsed depth. Set it to 0 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

py.cafe

Open the XML Editor to explore the features and documentation of the XML pane interactively.

Panel XML | Diagram Editor

❤️ 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

panel_xml-0.1.3.tar.gz (7.2 MB view details)

Uploaded Source

Built Distribution

panel_xml-0.1.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file panel_xml-0.1.3.tar.gz.

File metadata

  • Download URL: panel_xml-0.1.3.tar.gz
  • Upload date:
  • Size: 7.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.26

File hashes

Hashes for panel_xml-0.1.3.tar.gz
Algorithm Hash digest
SHA256 264553d9e0470d45bc51a3f8139382cfbdfffde36b20f781a179a89effc41af7
MD5 b1755ad5436101a5465b5171729257ea
BLAKE2b-256 e0927ea7cc066f79bfd0811ac772d9d058d5f604f1544bad92f282b90ffb8ec1

See more details on using hashes here.

File details

Details for the file panel_xml-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for panel_xml-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f5e4885efca8862be3f1e189712fba1705eade2e43fa79c18c69915e791aaac6
MD5 bb2a1f23bdef6c798a9d7341c75c015a
BLAKE2b-256 282ce4012b1b4377a813c5c1e93118a21d5dafbbf90996153875e3339548db1d

See more details on using hashes here.

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