Releases: DeepLcom/deepl-python
Releases · DeepLcom/deepl-python
v1.12.0
Added
- State explicitly that this library supports Python 3.11.
- Added the
should_retry
andhttp_status_code
properties to all exceptions
thrown by the library.
Fixed
- Fix
py
dependency by upgradingpytest
version to 7.2.0 for Python 3.7+.
For Python 3.6 testspytest
needs to be added manually. - Remove unused
tox
dependency. - Update
coverage
dependency. - 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 Unavailable
errors 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_reached
andany_limit_reached
properties toUsage
object
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_exceeded
andany_limit_exceeded
properties ofUsage
object returned byget_usage()
, uselimit_reached
andany_limit_reached
instead.
v1.6.0
Added
- Add
error_message
property toDocumentStatus
, describing the error in case of document translation failure.
Changed
- Improve error message if
translate_text_with_glossary
is called without an instance ofGlossaryInfo
. translate_document
andtranslate_document_from_filepath
return 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_request
is deprecated, usedocument_handle
instead.
v1.4.1
Fixed
- Fix bug in
DocumentTranslationException
stringize function.