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.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.

Установка
Пакет доступен на pypi.org и его можно установить через pip, выполнив следующую команду:
pip install groupdocs-translation-cloud

Как использовать SDK?
Наш API полностью независим от вашей операционной системы, системы баз данных или языка разработки. Вы можете использовать любой язык и платформу, поддерживающие HTTP, для взаимодействия с нашим API. Однако написание клиентского кода вручную может быть трудным, чреватым ошибками и отнимающим много времени. Поэтому мы предоставили и поддерживаем SDK на многих языках разработки, чтобы упростить интеграцию ваших облачных приложений с нами.
Быстрый старт
1. Получите ключи API, если у вас его еще нет.
Создайте личную учетную запись на GroupDocs Cloud Dashboard и нажмите Получить ключи. Эти ключи полезны для всех продуктов GroupDocs Cloud. Если у вас возникли проблемы, просмотрите это подробное руководство. После получения ключей следуйте этой статье, чтобы попробовать GroupDocs.Translation Cloud, или ознакомьтесь с руководством для разработчиков для получения более подробной информации.
2. Установите SDK
Установите groupdocs-translation-cloud с помощью PIP из PyPI следующим образом:
pip install groupdocs-translation-cloud
Или клонируйте репозиторий и установите его через Setuptools:
3. Запустите демо-версию
- Ознакомьтесь с SDK или получите от PiPy.
- Установите свой client_id и client_secret
- Запустите Jupyter Notebook demo.ipynb.
Структура
Этот проект включает в себя:
- Модуль «groupdocstranslationcloud», это SDK. Вы можете интегрировать его в свое приложение. Он содержит API перевода и хранения.
- Модуль «тест», unittests. Вы можете взглянуть на них, чтобы увидеть различные примеры кода.
- Блокнот Jupyter «демо». Образец демонстрационного блокнота.
Зависимости
Поддержка версий
Python :: 2.7, Python :: 3, Python :: 3.4, Python :: 3.5, Python :: 3.6, Python :: 3.7, Python :: 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.
| Class | | Method | HTTP request | Description |
|---|
TranslationApi | | autoPost | POST /auto | Translate any supported file |
TranslationApi | | csvPost | POST /csv | Translate CSV and TSV files |
TranslationApi | | documentPost | POST /document | Translate Microsoft Word documents, rtf, txt, odt |
TranslationApi | | documentRequestIdGet | GET /document/{requestId} | Return document translation status. Also return URLs for downloading of translated document if translation was successful |
TranslationApi | | documentTrialPost | POST /document/trial | Trial translate Microsoft Word documents, rtf, txt, odt without conversation. Translate only first page or 1000 symbols. |
TranslationApi | | hcGet | GET /hc | Health check for all services. |
TranslationApi | | htmlPost | POST /html | Translate HTML files |
TranslationApi | | hugoGet | GET /hugo | Get hugo syntax structure from markdown file |
TranslationApi | | hugoPost | POST /hugo | Run hugo syntax structure analyzing from markdown file |
TranslationApi | | imageToFilePost | POST /image-to-file | Translate image or scanned pdf and return file |
TranslationApi | | imageToTextPost | POST /image-to-text | Translate text on image or scanned pdf |
TranslationApi | | languagesGet | GET /languages | Return list of available language pairs |
TranslationApi | | markdownPost | POST /markdown | Translate Markdown files |
TranslationApi | | pdfPost | POST /pdf | Translate pdf files |
TranslationApi | | pdfTrialPost | POST /pdf/trial | Trial pdf translation. Translate only first page without conversion to another format. |
TranslationApi | | presentationPost | POST /presentation | Translate Microsoft PowerPoint presentations, odp |
TranslationApi | | resxPost | POST /resx | Translate RESX files |
TranslationApi | | spreadsheetPost | POST /spreadsheet | Translate Microsoft Excel workbooks, ods |
TranslationApi | | textPost | POST /text | Translate text |
TranslationApi | | textRequestIdGet | GET /text/{requestId} | Return text translation status. Also return translated text if translation was successful |
TranslationApi | | textTrialPost | POST /text/trial | Trial translate text. Translate only 1000 symbols. |
Documentation for Models
CloudFileResponse, CloudHugoResponse, CloudTextResponse, CsvFileRequest, FileRequest, HealthCheckStatus, HtmlFileRequest, HttpStatusCode, HugoRequest, ImageToFileRequest, ImageToTextRequest, LanguagePairData, MarkdownFileRequest, PdfFileRequest, PresentationFileRequest, ResxFileRequest, SpreadsheetFileRequest, StatusResponse, StringStringTuple, TextDocumentFileRequest, TextRequest, UrlFileInfo, WorksheetData
GroupDocs.Облачные SKD-переводы
GitHub

Менеджер пакетов

