automates text translation using yandex
Project description
automates text translation using yandex
pip install yantranslate
Example Usage
from yantranslate import Ytranslate
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 Ytranslate("en", "de") as go:
data = go.translate(textx)
print(data)
print(data)
yandex = Ytranslate("en", "de")
translated = yandex.translate(textx)
print(translated)
yandex.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.', 'Pythonschlange. wurde Anfang der 1990er Jahre von Guido van Rossum am Stichting Mathematisch Centrum (CWI, siehe https://www.cwi.nl /) in den Niederlanden als Nachfolger einer Sprache namens ABC. Guido bleibt Pythons Hauptautor, obwohl es viele Beiträge von anderen enthält. Im Jahr 1995, Guido. setzte seine Arbeit an Python bei der Corporation for National Research Initiatives (CNRI, siehe) fort https://www.cnri.reston.va.us /) in Reston, Virginia, 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.', 'Pythonschlange. wurde Anfang der 1990er Jahre von Guido van Rossum am Stichting Mathematisch Centrum (CWI, siehe https://www.cwi.nl /) in den Niederlanden als Nachfolger einer Sprache namens ABC. Guido bleibt Pythons Hauptautor, obwohl es viele Beiträge von anderen enthält. Im Jahr 1995, Guido. setzte seine Arbeit an Python bei der Corporation for National Research Initiatives (CNRI, siehe) fort https://www.cnri.reston.va.us /) in Reston, Virginia, 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.', 'Pythonschlange. wurde Anfang der 1990er Jahre von Guido van Rossum am Stichting Mathematisch Centrum (CWI, siehe https://www.cwi.nl /) in den Niederlanden als Nachfolger einer Sprache namens ABC. Guido bleibt Pythons Hauptautor, obwohl es viele Beiträge von anderen enthält. Im Jahr 1995, Guido. setzte seine Arbeit an Python bei der Corporation for National Research Initiatives (CNRI, siehe) fort https://www.cnri.reston.va.us /) in Reston, Virginia, wo er mehrere Versionen der Software veröffentlichte.')]]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yantranslate-0.10.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file yantranslate-0.10.tar.gz
.
File metadata
- Download URL: yantranslate-0.10.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47fba7762fa559bffe88c652ca20e47457b23683ad3269e8eda47e1f0f425fab |
|
MD5 | 2250eb92355f8eac31c889e409532c59 |
|
BLAKE2b-256 | 4e34f5ec73e86045e90149821e9d953ae175a6442e400a2a9588ab65b5e554ff |
File details
Details for the file yantranslate-0.10-py3-none-any.whl
.
File metadata
- Download URL: yantranslate-0.10-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b4d868f736e3158d65b1f1145eb18d3023f03c4de00b36c3c48785f2b9070d2 |
|
MD5 | 5fe31f55cf9dfc29d6dec836483cea75 |
|
BLAKE2b-256 | b58de9a0674cfb97a9bb95c1062076506c49938171bdf924ce00f42b7de98069 |