semvec/pypi-packages huggingface dataset:
easy-pyweb 1.3
web helper
Requires Python: >=3.6

# 说明
- pyweb助手，封装一些个人常用类函数
- 内置【playwright浏览器类，logger，mysql，config】
- win系统控制隐藏web窗口，需安装pywin32

# 安装使用
`pip install easy-pyweb`

## 试一试 浏览器
```python
from easy_pyweb.wb_helpers import WebHelper

def open_page():
    wb = WebHelper(use_async=False)
    wb.init_browser_sync()
    page = wb.new_page_sync()
    page.goto('https://tool.lu/timestamp/')
    print(page.title())
    print('高度%s' % page.get_height())
    value = page.locator('#jsDatetimeO').input_value()
    print('时间%s' % value)
    page.slide_bottom()
    assert page.title() == '时间戳(Unix timestamp)转换工具 - 在线工具'
```

## 试一试 日志，配置类
```python
from easy_pyweb.more_tool import SingletonLogger, ConfigParser
def log_test():
    logger = SingletonLogger(logdir='logs').get_logger()
    logger.info('This is a test log')
    logger.error('This is a error log')

def conf_test():
    conf = ConfigParser(config_file='config.ini')
    conf.init_config()
    print(conf.get_option('TEST', 'user'))
```
panel-xml 0.1.4
A project providing a XML Pane for use with HoloViz Panel.
Requires Python: >=3.9

# ✨ panel-xml

[![License](https://img.shields.io/badge/License-MIT%202.0-blue.svg)](https://opensource.org/licenses/MIT)
[![py.cafe](https://py.cafe/badge.svg)](https://py.cafe/awesome.panel.org/panel-xml-basic)

`panel-xml` provides the `XML` *pane* to display and explore XML in notebooks and [Panel](https://panel.holoviz.org/) data apps.

![panel-xml in notebook](https://github.com/awesome-panel/panel-xml/blob/main/static/panel-xml-notebook.png?raw=true)

It is based on [react-xml-viewer](https://github.com/alissonmbr/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`:

```bash
pip install panel-xml
```

## Usage

### Basic XML Pane

[![py.cafe](https://py.cafe/badge.svg)](https://py.cafe/awesome.panel.org/panel-xml-basic)

[![panel-xml](https://github.com/awesome-panel/panel-xml/blob/main/static/panel-xml.png?raw=true)](https://py.cafe/awesome.panel.org/panel-xml-editor)

Here’s how to create a simple XML pane using the `XML` widget:

```python
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): 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](https://github.com/alissonmbr/react-xml-viewer#theme-object) for details.

## XML Editor

[![py.cafe](https://py.cafe/badge.svg)](https://py.cafe/awesome.panel.org/panel-xml-editor)

[Open the XML Editor](https://py.cafe/awesome.panel.org/panel-xml-editor) to explore the features and documentation of the `XML` pane interactively.

[![Panel XML | Diagram Editor](https://github.com/awesome-panel/panel-xml/blob/main/static/panel-xml-editor.gif?raw=true)](https://py.cafe/awesome.panel.org/panel-xml-editor)

## ❤️ Contributions

Contributions and co-maintainers are very welcome! Please submit issues or pull requests to the [GitHub repository](https://github.com/awesome-panel/panel-xml). Check out the [DEVELOPER_GUIDE](DEVELOPER_GUIDE.md) for more information.

## Alternatives

- [Panel CodeEditor](https://panel.holoviz.org/reference/widgets/CodeEditor.html): Displays XML nicely if `language="xml"`.

----

Start using `panel-xml` to integrate rich, interactive XML displays directly into your Python applications!