Python Document Translation REST API & SDK

Empower your applications and tools with document translation features using Python REST API and Cloud SDK.

Start Free Trial
GroupDocs.Translation Cloud SDK for Python

GroupDocs.Translation Cloud SDK for Python

 
 

GroupDocs.Translation Cloud SDK for Python enables developers to get started with translation of Microsoft Word, Excel and plain text documents within Python-based cloud applications. It supports converting English language text from supported file formats back and forth to other most popular business languages namely French, German, Chinese, Italian, Spanish, Russian, Arabic, Polish and Portuguese without disturbing the original document structure (paragraphs, tables, image captions, charts, cells, pivot tables).

GroupDocs.Translation Cloud SDK for Python has been built as a layer on top of GroupDocs.Translation Cloud REST API that saves valuable development time by managing low-level requests and handling responses. The developers can focus on writing up the specific code only as needed in the project.

 

Advanced Document Translation REST API Features

 

 

Supports 10 languages and 20 language pairs

 

Translation of tables in Word documents

 

Translation of headers and footers in Word documents

 

Translation of footnotes and endnotes in Word document

 

Translation of image captions in Word documents

 

Translation of cells containing text in Excel workbooks

 

Translation of charts in Excel workbooks

 

Translation of tables in Excel workbooks

 

Translation of pivot tables in Excel workbooks

 

APIs are secured and require authentication

 

API explorer based on swagger collection

Working with Document Translation REST API

GroupDocs.Translation Cloud API comes with detailed developer guides and live code examples for all major programming languages to start working with API features in no time. Simply create a free account at GroupDocs Cloud, get APP SID & Key information to communicate with GroupDocs Cloud API and you are ready to make an API request on any platform using cURL commands or the SDKs of your choice.

Translate Word document - Python


//Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).

from groupdocstranslationcloud.configuration import Configuration
from groupdocstranslationcloud.api.translation_api import TranslationApi
from groupdocstranslationcloud.models.translate_text import TranslateText
from groupdocstranslationcloud.models.translate_document import TranslateDocument

#enter valid apiKey and appSid
configuration = Configuration(apiKey="", appSid="")
api = TranslationApi(configuration)

pair = "en-fr"
_format = "docx"
storage = "First Storage"
name = "test.docx"
folder = ""
savepath = ""
savefile = "test_python.docx"  
translator = TranslateDocument(pair, _format, storage, name, folder, savepath, savefile)
request = translator.to_string() 
res_doc = api.post_translate_document(request)
print(res_doc.message)

Any Language, Platform and Storage Service Provider

GroupDocs.Translation for Cloud is a REST based API that can easily be integrated with any language or platform, capable to manage HTTP requests and responses. It supports all popular cloud storage services such as Google Cloud, Drive, DropBox and Amazon S3 to interact without any dependencies.

Translate plain text - Python


//Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).

from groupdocstranslationcloud.configuration import Configuration
from groupdocstranslationcloud.api.translation_api import TranslationApi
from groupdocstranslationcloud.models.translate_text import TranslateText
from groupdocstranslationcloud.models.translate_document import TranslateDocument

#enter valid apiKey and appSid
configuration = Configuration(apiKey="", appSid="")
api = TranslationApi(configuration)

pair = "en-fr"
text = "Welcome to Paris"
translator = TranslateText(pair, text)
request = translator.to_string()
res_text = api.post_translate_text(request)
print(res_text.translation)

Security and Authentication

The GroupDocs.Translation Cloud API is SSL secured and the authentication requests require a signature and AppSID query parameters or OAuth 2.0 authorization header.

 

Support and Learning Resources

 
  

GroupDocs.Translation Cloud also offers document translation SDKs for other languages as listed below: