Python Cloud SDK for text and document translation

Create cross-platform data science, AI, and automation solutions in Python based on GroupDocs.Translation API. Focus on business logic rather than the technical details.

  • GroupDocs.Translation Cloud SDK for cURL
  • GroupDocs.Translation Cloud SDK for .NET
  • GroupDocs.Translation Cloud SDK for Java
  • GroupDocs.Translation Cloud SDK for Android
Start Free Trial

GroupDocs.Translation offers real-time machine translation for texts, documents and resources. Powerful machine learning algorithms and sophisticated neural networks provide a quality close to that of a professional human translator, but much faster and more cost-effective. Running on a high-performance cloud server hosted by GroupDocs, it can translate PDF, Microsoft Office and OpenOffice documents, Markdown files, and .NET resources into 37 European, Middle East and Asian languages (across 78 language pairs). The API not only translates text, but also accurately preserves metadata, structure, styles, and layout of documents.

This SDK greatly simplifies the interaction with GroupDocs.Translation Cloud services from Python code, allowing you to focus on business logic rather than the technical details. It handles all the routine operations such as establishing connections, sending API requests, and parsing responses, wrapping all these tasks into a few simple methods that can be used in any Python application or workbook. The Python SDK, demo applications, documentation, and examples are open source distributed under the MIT license. You can use them for any purpose and change any part of the code.

Advanced features of GroupDocs.Translation Cloud SDK for Python

Supports 37 languages and 78 language pairs

Translates to and from 37 European, Middle East and Asian languages

Translates tables in Word documents and PowerPoint presentations

Translates headers and footers in documents

Translates footnotes and endnotes in Word documents

Translates image captions in Word documents

Translates text frames, charts and slides in PowerPoint presentations

Translates texts inside spreadsheet cells

Translates charts and pivot tables in Excel workbooks

Translates Markdown files preserving all common Markdown formatting

Translates files from URLs and public repositories

Converts results into different formats without additional software

Detailed developer reference based on Swagger collection

Quick start with document translation SDK for Python

GroupDocs.Translation Cloud SDK for Python comes with detailed developer guides and live code examples 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 and you are ready to use the SDK.

Translate Word document in 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)

  #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)

Any language, platform and storage service provider

GroupDocs.Translation Cloud is a REST 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 in 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.

Translate Online using GroupDocs.Translation Free App

English - Español English - Türkçe English - 한국어 English - Hrvatski English - Dansk English - Français English - বাংলা English - Bahasa Melayu English - العربية English - עברית English - Slovenčina English - Српски English - Česky English - Svenska English - ไทย / Phasa Thai English - Deutsch English - Português English - Norsk (bokmål / riksmål) English - Suomi English - Ελληνικά English - Bahasa Indonesia English - Nederlands English - ქართული English - Magyar English - Български English - Українська English - Lietuvių English - Italiano English - Русский English - Latviešu English - Azərbaycanca / آذربايجان English - فارسی English - 中文 English - Română English - Polski English - 日本語 English - Việtnam English - Gaeilge Русский - English Deutsch - Polski Deutsch - Français Deutsch - Italiano Deutsch - English Français - العربية Français - English Français - Deutsch Français - Italiano 中文 - English Español - العربية Español - English Italiano - Deutsch Italiano - English Italiano - Français العربية - Español العربية - Türkçe العربية - English العربية - Français Português - English Polski - Deutsch Polski - English Українська - English Việtnam - English Bahasa Indonesia - English हिन्दी - English Ελληνικά - English Nederlands - English Magyar - English Svenska - English Türkçe - العربية Türkçe - English 한국어 - English 日本語 - English Suomi - English Česky - English Gaeilge - English Slovenčina - English فارسی - English Azərbaycanca / آذربايجان - English עברית - English ไทย / Phasa Thai - English Română - English Bahasa Melayu - English Български - English বাংলা - English Norsk (bokmål / riksmål) - English Dansk - English Latviešu - English Lietuvių - English Hrvatski - English Српски - English

Support and Learning Resources

GroupDocs.Translation Cloud offers SDKs for popular programming languages and platforms:

  English
43870bd