Skip to content

Releases: DeepLcom/deepl-python

v1.12.0

09 Jan 14:51
v1.12.0
b0f4255
Compare
Choose a tag to compare

Added

  • State explicitly that this library supports Python 3.11.
  • Added the should_retry and http_status_code properties to all exceptions
    thrown by the library.

Fixed

  • Fix py dependency by upgrading pytest version to 7.2.0 for Python 3.7+.
    For Python 3.6 tests pytest 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

26 Sep 19:05
v1.11.0
e3a4c37
Compare
Choose a tag to compare

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

09 Sep 08:37
v1.10.0
5f44f98
Compare
Choose a tag to compare

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.

v1.9.0

07 Jul 11:37
v1.9.0
b4bce25
Compare
Choose a tag to compare

Added

  • Add Translator.create_glossary_from_csv() allowing glossaries downloaded
    from website to be easily uploaded to API.

v1.8.0

10 Jun 07:15
v1.8.0
89074d3
Compare
Choose a tag to compare

Added

  • Optional filename parameter added to Translator.translate_document(), only required if uploading string or bytes containing file content.

Changed

  • Update contributing guidelines, we can now accept Pull Requests.

Fixed

  • Fix GitLab CI config.

v1.7.0

18 May 07:51
v1.7.0
dc44527
Compare
Choose a tag to compare

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 and any_limit_reached properties to Usage object
    returned by get_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 and any_limit_exceeded properties of Usage
    object returned by get_usage(), use limit_reached and any_limit_reached
    instead.

v1.6.0

12 Apr 13:58
v1.6.0
fc6c966
Compare
Choose a tag to compare

Added

  • Add error_message property to DocumentStatus, describing the error in case of document translation failure.

Changed

  • Improve error message if translate_text_with_glossary is called without an instance of GlossaryInfo.
  • translate_document and translate_document_from_filepath return final DocumentStatus, allowing the number of
    billed characters to be queried.

v1.5.1

11 Apr 12:18
v1.5.1
ce6bd30
Compare
Choose a tag to compare

Fixed

  • Fix bug in CLI languages command causing some target languages to be omitted.
  • Fix some tests that intermittently failed.

v1.5.0

28 Feb 15:08
v1.5.0
c77c1fc
Compare
Choose a tag to compare

Added

  • Add support for HTML tag handling in translate_text().

Deprecated

  • DocumentTranslationException.document_request is deprecated, use document_handle instead.

v1.4.1

04 Feb 11:02
v1.4.1
b1ec707
Compare
Choose a tag to compare

Fixed

  • Fix bug in DocumentTranslationException stringize function.