Releases: DeepLcom/deepl-python
Releases · DeepLcom/deepl-python
v1.8.0
v1.7.0
Added
-
New languages available: Indonesian (
'id') and Turkish ('tr'). Add language code constants and tests.Note: older library versions also support the new languages, this update only adds new code constants.
-
Add
limit_reachedandany_limit_reachedproperties toUsageobject
returned byget_usage(). -
Add
Translator.translate_document_wait_until_done()to poll translation
status until translation is complete or fails. -
Add
auth_key_is_free_account()utility function.
Changed
- Improve readme usage examples.
Deprecated
- Deprecate
limit_exceededandany_limit_exceededproperties ofUsage
object returned byget_usage(), uselimit_reachedandany_limit_reached
instead.
v1.6.0
Added
- Add
error_messageproperty toDocumentStatus, describing the error in case of document translation failure.
Changed
- Improve error message if
translate_text_with_glossaryis called without an instance ofGlossaryInfo. translate_documentandtranslate_document_from_filepathreturn finalDocumentStatus, allowing the number of
billed characters to be queried.
v1.5.1
Fixed
- Fix bug in CLI languages command causing some target languages to be omitted.
- Fix some tests that intermittently failed.
v1.5.0
Added
- Add support for HTML tag handling in
translate_text().
Deprecated
DocumentTranslationException.document_requestis deprecated, usedocument_handleinstead.
v1.4.1
Fixed
- Fix bug in
DocumentTranslationExceptionstringize function.
v1.4.0
Added
- Add contribution guidelines -- currently we are unable to accept Pull Requests.
- Add
--glossary-idargument for CLI document command.
Changed
- Improve README.
- Raise
DocumentNotReadyExceptionwhen attempting to download a document before it has been translated. Previously the
base classDeepLExceptionwas thrown.
Fixed
- Add optional filename argument to
translate_document_upload()to fix uploading file content as string or bytes.
v1.3.1
Changed
- Limit document status update wait time to 60 seconds, and log wait times.
v1.3.0
Added
- Add glossary support for document translation.
- Add proxy support.
Fixed
- Fix issues with parallelized tests by changing how test glossaries are created and deleted.
v1.2.1
Added
- Add support for Python 3.10.
Fixed
- Fix bug that caused User-Agent header to be omitted from HTTP requests.
- Fix glossary name prefix used in unit-tests to match git repository name.
- Add workaround for possible issue in datetime.strptime in Python 3.6.