Metadata-Version: 2.4
Name: pyzlbus2
Version: 0.5.14
Summary: ZLBus Python SDK - 用于与ZLBus设备通信的Python库
Author-email: ZeroLab <larry.lv@zero-lab.tech>
Keywords: pyzlbus,pyzlbus2
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.10
Requires-Dist: bleak>=0.21.0
Requires-Dist: pyserial>=3.4
Requires-Dist: zlbusapi>=0.5.14
Description-Content-Type: text/markdown

# pyZlBus2

ZeroLab ZlBus API for Python

This package provides an API for interacting with ZeroLab Bus devices using Python.

## Installation

```bash
pip install pyzlbus2
```

## Usage

```python
import pyZlBus2 as zl

# zl.test()
zl.bleDemo()  # 蓝牙
# zl.bleDemo(bleScannerPass=True)  # 蓝牙
# zl.serialDemo()  # 串口
# zl.serialRfDemo()  # 需要dongle支持

# Example usage
```

### 以下为示例代码，用于获取数据格式
> 两种写法功能相同，只是第二种写法更方便，因为pyZlBus2是对zlbusapi的封装，所以可以直接使用zlbusapi的函数。

```python
import zlbusapi as zlapi
print(zlapi.ul_getDataFormat().hex(' ').upper())
```

```python
# PyZlBus2 includes ZlBusApi module
import pyZlBus2 as zlb
print(zlb.api.ul_getDataFormat().hex(' ').upper())
```

## License

MIT
