Metadata-Version: 2.4
Name: lzhbaidutranslate
Version: 1.0
Summary: 封装百度翻译 API, 翻译字符串或字符串列表
Author-email: lzh <zhhtdm@hotmail.com>
License: MIT
Project-URL: Homepage, https://github.com/zhhtdm/baidu-translate
Project-URL: Repository, https://github.com/zhhtdm/baidu-translate
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: requests

# baidu translate
「Python 包」封装百度翻译 API，翻译字符串或字符串列表

## 示例
```python
from lzhbaidutranslate import baidu_translate

query = 'Hello World! This is 1st sentence. This is 2nd sentence.'
querys = ['Hello World! This is 1st sentence.','This is 2nd sentence.']
    
# Set your own appid/appkey.
appid = ""
appkey = ""
    
print(baidu_translate(appid, appkey, query)) # 翻译字符串
print(baidu_translate(appid, appkey, querys)) # 翻译字符串列表
```

## 安装 - [PyPI](https://pypi.org/project/lzhbaidutranslate/)
```bash
pip install lzhbaidutranslate
```

## API
[Document](https://zhhtdm.github.io/baidu-translate/)


