Skip to main content

automates text translation using Deepl Translate

pip install dtranslate

Example Usage

from dtranslate import Dtranslate


textx = r"""Python. was created in the early 1990s by Guido van Rossum at Stichting Mathematisch 
Centrum (CWI, see https://www.cwi.nl/) in the Netherlands as a successor of a 
language called ABC. Guido remains Python’s principal author, although it includes
many contributions from others.
In 1995, Guido. continued his work on Python at the Corporation for 
National Research Initiatives 
(CNRI, see https://www.cnri.reston.va.us/) in Reston, 
Virginia where he released several versions of the software."""


with Dtranslate("en", "de") as go:
    data = go.translate(textx)
print(data)
print(data)
deepl = Dtranslate("en", "de")
translated = deepl.translate(textx)
print(translated)
deepl.quit_translator(soft_kill_first=True)


could not detect version_main.therefore, we are assuming it is chrome 108 or higher
[[('Python. was created in the early 1990s by Guido van Rossum at Stichting Mathematisch Centrum (CWI, see https://www.cwi.nl/) in the Netherlands as a successor of a language called ABC. Guido remains Python’s principal author, although it includes many contributions from others. In 1995, Guido. continued his work on Python at the Corporation for National Research Initiatives (CNRI, see https://www.cnri.reston.va.us/) in Reston, Virginia where he released several versions of the software.', 'Python. wurde in den frühen 1990er Jahren von Guido van Rossum am Stichting Mathematisch Centrum (CWI, siehe https: www.cwi.nl ) in den Niederlanden als Nachfolger einer Sprache namens ABC entwickelt. Guido van Rossum ist nach wie vor der Hauptautor von Python, auch wenn es viele Beiträge von anderen gibt. Im Jahr 1995 setzte Guido seine Arbeit an Python bei der Corporation for National Research Initiatives (CNRI, siehe https: www.cnri.reston.va.us ) in Reston, Virginia fort, wo er mehrere Versionen der Software veröffentlichte.')]]
[[('Python. was created in the early 1990s by Guido van Rossum at Stichting Mathematisch Centrum (CWI, see https://www.cwi.nl/) in the Netherlands as a successor of a language called ABC. Guido remains Python’s principal author, although it includes many contributions from others. In 1995, Guido. continued his work on Python at the Corporation for National Research Initiatives (CNRI, see https://www.cnri.reston.va.us/) in Reston, Virginia where he released several versions of the software.', 'Python. wurde in den frühen 1990er Jahren von Guido van Rossum am Stichting Mathematisch Centrum (CWI, siehe https: www.cwi.nl ) in den Niederlanden als Nachfolger einer Sprache namens ABC entwickelt. Guido van Rossum ist nach wie vor der Hauptautor von Python, auch wenn es viele Beiträge von anderen gibt. Im Jahr 1995 setzte Guido seine Arbeit an Python bei der Corporation for National Research Initiatives (CNRI, siehe https: www.cnri.reston.va.us ) in Reston, Virginia fort, wo er mehrere Versionen der Software veröffentlichte.')]]
could not detect version_main.therefore, we are assuming it is chrome 108 or higher
[[('Python. was created in the early 1990s by Guido van Rossum at Stichting Mathematisch Centrum (CWI, see https://www.cwi.nl/) in the Netherlands as a successor of a language called ABC. Guido remains Python’s principal author, although it includes many contributions from others. In 1995, Guido. continued his work on Python at the Corporation for National Research Initiatives (CNRI, see https://www.cnri.reston.va.us/) in Reston, Virginia where he released several versions of the software.', 'Python. wurde in den frühen 1990er Jahren von Guido van Rossum am Stichting Mathematisch Centrum (CWI, siehe https: www.cwi.nl ) in den Niederlanden als Nachfolger einer Sprache namens ABC entwickelt. Guido van Rossum ist nach wie vor der Hauptautor von Python, auch wenn es viele Beiträge von anderen gibt. Im Jahr 1995 setzte Guido seine Arbeit an Python bei der Corporation for National Research Initiatives (CNRI, siehe https: www.cnri.reston.va.us ) in Reston, Virginia fort, wo er mehrere Versionen der Software veröffentlichte.')]]

Metadata

Release files for dtranslate 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dtranslate 0.10
File Size Uploaded Provenance Actions
dtranslate-0.10.tar.gz 5.0 kB Without provenance Details for dtranslate-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dtranslate 0.10
File Interpreter ABI Platform Actions
dtranslate-0.10-py3-none-any.whl Python 3 none any Details for dtranslate-0.10-py3-none-any.whl

Total release size: 11.4 kB

Release files / dtranslate-0.10.tar.gz

Download URL dtranslate-0.10.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8c91f16a2aa7e250bb4fdf918a6bfd230db87d523f62d38c5af298cf911e6a66
BLAKE2b-256 checksum
How to use checksums
78c16995b2253715bfb09eaee1612a01a60e85ec279304fe7ce618de78fcdbe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / dtranslate-0.10-py3-none-any.whl

Download URL dtranslate-0.10-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
573651fef1c40ec61c5ee1ad33b1c48c6115de27ebc3fcaed60bf46371e726b9
BLAKE2b-256 checksum
How to use checksums
01d4ff88155aeb9aef0bd14a126163ff96bc2964b09b864edcdf00fc321717d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for dtranslate 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page