Releases: DeepLcom/deepl-python
Releases · DeepLcom/deepl-python
v1.23.0
Added
- Added feature to add arbitrary body parameters in
translate_text
Deprecated
- Dropped support for Python 3.8 and older.
Security
- Updated
requests
minimum version to 2.32.4 to resolve security advisories
CVE-2024-47081 and CVE-2024-35195.
v1.22.0
Added
- Added support for the /v3 Glossary APIs in the client library while providing backwards compatibility for the previous /v2 Glossary endpoints. Please refer to the README for usage instructions.
v.1.21.1
Added
- (beta) optional parameter to specify timeout for document translation calls
v1.21.0
Added
- Added support for the Write API in the client library, the implementation
can be found in theDeepLClient
class. Please refer to the README for usage
instructions.
Changed
- The main functionality of the library is now also exposed via the
DeepLClient
class. Please change your code to use this over theTranslator
class whenever
convenient.
v1.20.0
Added
- Added
model_type
option totranslate_text()
to use models with higher
translation quality (available for some language pairs), or better latency.
Options are'quality_optimized'
,'latency_optimized'
, and'prefer_quality_optimized'
- Added the
model_type_used
field totranslate_text()
response, that
indicates the translation model used when themodel_type
option is
specified.
v1.19.1
Fixed
- Fixed typing issues, black-formatting and a test case failure.
v1.19.0
Added
- Added
billed_characters
to response fromtranslate_text()
.
v1.18.0
Added
-
New language available: Arabic (
'ar'
). Add language code constants and tests.
Arabic is currently supported only for text translation; document translation
support for Arabic is coming soon.Note: older library versions also support the new language, this update only adds new code constants.
-
Added a section in the readme on how to configure retry options in
http_client.py
v1.17.0
Added
- Added
output_format
parameter for document upload function, that indicates
the file extension of the desired file format for the translated document. - Added basic usage example of the library
Fixed
- Fixed typechecking errors when using
mypy
'sstrict
mode- Thanks to derlikh-smart and vad for the report in #82