Releases: DeepLcom/deepl-python
Releases · DeepLcom/deepl-python
v1.12.0
Added
- State explicitly that this library supports Python 3.11.
- Added the
should_retryandhttp_status_codeproperties to all exceptions
thrown by the library.
Fixed
- Fix
pydependency by upgradingpytestversion to 7.2.0 for Python 3.7+.
For Python 3.6 testspytestneeds to be added manually. - Remove unused
toxdependency. - Update
coveragedependency. - Also send options in API requests even if they are default values.
v1.11.0
Added
- Add formality options
'prefer_less'and'prefer_more'.
Changed
- Requests resulting in
503 Service Unavailableerrors are now retried.
Attempting to download a document before translation is completed will now
wait and retry (up to 5 times by default), rather than raising an exception.
v1.10.0
Added
-
New language available: Ukrainian (
'uk'). Add language code constant and tests.Note: older library versions also support new languages, this update only adds new code constant.
Changed
- Add note and workaround to README about Poetry error on Ubuntu 22.04.
- Pull request #48 thanks to FOehlschlaeger.
v1.9.0
Added
- Add
Translator.create_glossary_from_csv()allowing glossaries downloaded
from website to be easily uploaded to API.
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.