Skip to main content

Baidu Translate Simple SDK (unofficial)

Project description

Baidu Fanyi package

Description

Baidu Translate Simple SDK (unofficial) 一个简单的用于调用百度翻译api的包。

Usage

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. 支持多种语言的设置

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

baidufanyi-0.1.0.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file baidufanyi-0.1.0.tar.gz.

File metadata

  • Download URL: baidufanyi-0.1.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.9

File hashes

Hashes for baidufanyi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e67afc8cb48f2901a29fc9dd88c4c6f0e8570f705934e8007be6c76d3b7d5e65
MD5 1b8159d00e1e7b87c6965dd0c05eb04f
BLAKE2b-256 69b615d94c533b87a377b583020e193cde400532edbd03dca944998f0111f8b3

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