Metadata-Version: 2.1
Name: baidufanyi
Version: 0.1.2
Summary: A simple SDK for the Baidu Translation API (unofficial)
Home-page: https://github.com/xuanzhi33/baidufanyi
Author: xuanzhi33
Author-email: xuanzhi33@qq.com
License: GPL-3.0
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires: requests
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Baidu Fanyi

## Description
A simple SDK for the Baidu Translation API (unofficial)

一个简单的用于调用百度翻译api的包。

## Install

```
pip3 install baidufanyi
```

## Usage

```python
from baidufanyi import BaiduFanyi # 注意大小写

APPID = "your appid"
APPKEY = "your appkey"
# APPID 与 APPKEY 可在百度翻译开放平台获取，标准版可免费使用
fanyi = BaiduFanyi(APPID, APPKEY)

print(fanyi.translate("hello world", fromLang="auto", toLang="zh")) 
# fromLang 和 toLang 格式请查阅百度翻译api文档

```

## Features

1. 支持多行，自动合并

2. 简单易用，立即上手

3. 支持多种语言的设置


