浏览我们的产品

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

Docs Swagger Examples Blog Support Release Notes Dashboard

安装

该软件包在 pypi.org 上 可用,可以通过执行以下命令通过 pip 安装:

pip install groupdocs-translation-cloud

PyPI - Version PyPI - Downloads Python-GroupDocsCloud


如何使用SDK?

我们的 API 完全独立于您的操作系统、数据库系统或开发语言。您可以使用任何支持 HTTP 的语言和平台与我们的 API 进行交互。然而,手动编写客户端代码可能很困难、容易出错且耗时。因此,我们提供并支持多种开发语言的SDK,以便您的云应用程序更容易与我们集成。

快速入门

1. 如果没有,请获取 API 密钥

GroupDocs Cloud Dashboard 创建个人账户,然后点击 获取密钥。这些密钥对于所有 GroupDocs Cloud 产品都很有用。如果您有任何问题,请查看这个详细手册。收到密钥后,请按照文章尝试GroupDocs.Translation Cloud或熟悉开发者指南以了解更多详情。

2.安装SDK

通过以下方式从 PyPI 安装 groupdocs-translation-cloudPIP

pip install groupdocs-translation-cloud

或者克隆存储库并通过Setuptools安装它:

python setup.py install

3. 运行演示

  • 查看 SDK 或从 PiPy 获取
    • 设置您的 client_id 和 client_secret
    • 运行 Jupyter Notebook demo.ipynb

### 结构

该项目包括:

  • 模块“groupdocstranslationcloud”,这是SDK。您可以将其集成到您的应用程序中。它包含翻译和存储 API
  • 模块“测试”,单元测试。您可以查看它们以查看各种代码示例。
  • Jupyter 笔记本“演示”。示例演示笔记本。

依赖关系

  • 参见requirements.txt

版本支持

Python :: 2.7Python :: 3Python :: 3.4Python :: 3.5Python :: 3.6Python :: 3.7Python :: 3.8

翻译纯文本

# Load the gem
import groupdocs_translation_cloud
# Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
my_client_id = ""
my_client_secret = ""

# Create instance of the API
configuration = Configuration(apiKey=my_client_secret, appSid=my_client_id)
api = TranslationApi(configuration)

#document translation
pair = "en-fr"
_format = "docx"
storage = "First Storage"
name = "test.docx"
folder = ""
savepath = ""
savefile = "test_python.docx"  
masters = False
elements = []
translator = TranslateDocument(pair, _format, storage, name, folder, savepath, savefile, masters, elements)
request = translator.to_string()
res_doc = api.post_translate_document(request)
print(res_doc.message)

API 端点的文档

所有 URI 都相对于 https://api.groupdocs.cloud/v2.0/translation

班级         方法HTTP 请求描述
TranslationApi         autoPost发布 /auto翻译任何支持的文件
TranslationApi         csvPost发布 /csv翻译 CSV 和 TSV 文件
TranslationApi         documentPost发布 /document翻译 Microsoft Word 文档、rtf、txt、odt
TranslationApi         documentRequestIdGet获取 /document/{requestId}返回文档翻译状态。 如果翻译成功,还返回用于下载翻译文档的 URL
TranslationApi         documentTrialPost发布 /document/trial尝试在无对话的情况下翻译 Microsoft Word 文档、rtf、txt、odt。仅翻译第一页或 1000 个符号。
TranslationApi         hcGet获取 /hc所有服务的健康检查。
TranslationApi         htmlPost发布 /html翻译 HTML 文件
TranslationApi         hugoGet获取 /hugo从markdown文件中获取hugo语法结构
TranslationApi         hugoPost发布 /hugo从 Markdown 文件运行 Hugo 语法结构分析
TranslationApi         imageToFilePost发布 /image-to-file翻译图像或扫描的 pdf 并返回文件
TranslationApi         imageToTextPost发布 /image-to-text翻译图像或扫描的 pdf 上的文本
TranslationApi         languagesGet获取 /languages返回可用语言对的列表
TranslationApi         markdownPost发布 /markdown翻译 Markdown 文件
TranslationApi         pdfPost发布 /pdf翻译 pdf 文件
TranslationApi         pdfTrialPost发布 /pdf/trial试用pdf翻译。仅翻译第一页,而不转换为其他格式。
TranslationApi         presentationPost发布 /presentation翻译 Microsoft PowerPoint 演示文稿、odp
TranslationApi         resxPost发布 /resx翻译 RESX 文件
TranslationApi         spreadsheetPost发布 /spreadsheet翻译 Microsoft Excel 工作簿、ods
TranslationApi         textPost发布 /text翻译文本
TranslationApi         textRequestIdGet获取 /text/{requestId}返回文本翻译状态。 如果翻译成功,还返回翻译后的文本
TranslationApi         textTrialPost发布 /text/trial尝试翻译文本。仅翻译 1000 个符号。

模型文档

CloudFileResponse, CloudHugoResponse, CloudTextResponse, CsvFileRequest, FileRequest, HealthCheckStatus, HtmlFileRequest, HttpStatusCode, HugoRequest, ImageToFileRequest, ImageToTextRequest, LanguagePairData, MarkdownFileRequest, PdfFileRequest, PresentationFileRequest, ResxFileRequest, SpreadsheetFileRequest, StatusResponse, StringStringTuple, TextDocumentFileRequest, TextRequest, UrlFileInfo, WorksheetData

GroupDocs.Translation Cloud SKD

GitHub

GitHub GitHub GitHub GitHub

包管理器

NuGet Maven PyPI Android


Docs Swagger Examples Blog Support Release Notes Dashboard


groupdocs-net-rest-api nuget sdk net-sdk cloud rest rest-api cloud-api mit jwt oauth groupdocs-total-cloud groupdocs-translation-cloud document-automation document automation cloud-document doc docx docm rtf odt xls xlsx xlsm csv tsv ods ppt pptx pptm odp pdf md markdown translate translator multi-lingual language language-pair translation-pair json paragraph header footer footnote endnote image caption table pivot cells charts master slide notes comments frames convert conversion converter french english german deutsch chinese spanish italian russian arabic portuguese polish ukrainian vietnamese indonesian hindi greek dutch hungarian swedish turkish japanese korean czech finnish irish slovak farsi persian hebrew azerbaijani thai romanian malay bulgarian english-to-french french-to-english english-to-german german-to-english english-to-deutsch deutsch-to-english english-to-chinese chinese-to-english english-to-spanish spanish-to-english english-to-italian italian-to-english english-to-russian russian-to-english english-to-arabic arabic-to-english english-to-portuguese portuguese-to-english english-to-polish polish-to-english english-to-ukrainian ukrainian-to-english english-to-vietnamese vietnamese-to-english english-to-indonesian indonesian-to-english english-to-hindi hindi-to-english english-to-greek greek-to-english english-to-dutch dutch-to-english english-to-hungarian hungarian-to-english english-to-swedish swedish-to-english english-to-turkish turkish-to-english english-to-japanese japanese-to-english english-to-korean korean-to-english english-to-czech czech-to-english english-to-finnish finnish-to-english english-to-irish irish-to-english english-to-slovak slovak-to-english english-to-farsi farsi-to-english english-to-persian persian-to-english english-to-hebrew hebrew-to-english english-to-azerbaijani azerbaijani-to-english english-to-thai thai-to-english english-to-romanian romanian-to-english english-to-malay malay-to-english english-to-bulgarian bulgarian-to-english french-to-german german-to-french french-to-deutsch deutsch-to-french french-to-italian italian-to-french french-to-arabic arabic-to-french


 简体中文