Skip to content

Releases: DeepLcom/deepl-python

v1.8.0

10 Jun 07:15
v1.8.0
89074d3

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

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

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

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

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

Choose a tag to compare

Fixed

  • Fix bug in DocumentTranslationException stringize function.

v1.4.0

19 Jan 12:24
v1.4.0
ed84c12

Choose a tag to compare

Added

  • Add contribution guidelines -- currently we are unable to accept Pull Requests.
  • Add --glossary-id argument for CLI document command.

Changed

  • Improve README.
  • Raise DocumentNotReadyException when attempting to download a document before it has been translated. Previously the
    base class DeepLException was thrown.

Fixed

  • Add optional filename argument to translate_document_upload() to fix uploading file content as string or bytes.

v1.3.1

16 Nov 08:39
v1.3.1
3bc6d8d

Choose a tag to compare

Changed

  • Limit document status update wait time to 60 seconds, and log wait times.

v1.3.0

15 Nov 11:59
v1.3.0
2266d4e

Choose a tag to compare

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

19 Oct 08:17
v1.2.1
80f9b78

Choose a tag to compare

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.