yantranslate


Nameyantranslate JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/yantranslate
Summaryautomates text translation using yandex
upload_time2023-07-08 02:33:25
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords yandex translate
VCS
bugtrack_url
requirements kthread_sleep selenium translate4colors
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# automates text translation using yandex

## pip install yantranslate 

## Example Usage

```python
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.')]]

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/yantranslate",
    "name": "yantranslate",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "yandex,translate",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4e/34/f5ec73e86045e90149821e9d953ae175a6442e400a2a9588ab65b5e554ff/yantranslate-0.10.tar.gz",
    "platform": null,
    "description": "\r\n# automates text translation using yandex\r\n\r\n## pip install yantranslate \r\n\r\n## Example Usage\r\n\r\n```python\r\nfrom yantranslate import Ytranslate\r\n\r\n\r\ntextx = r\"\"\"Python. was created in the early 1990s by Guido van Rossum at Stichting Mathematisch \r\nCentrum (CWI, see https://www.cwi.nl/) in the Netherlands as a successor of a \r\nlanguage called ABC. Guido remains Python\u2019s principal author, although it includes\r\nmany contributions from others.\r\nIn 1995, Guido. continued his work on Python at the Corporation for \r\nNational Research Initiatives \r\n(CNRI, see https://www.cnri.reston.va.us/) in Reston, \r\nVirginia where he released several versions of the software.\"\"\"\r\nwith Ytranslate(\"en\", \"de\") as go:\r\n    data = go.translate(textx)\r\nprint(data)\r\nprint(data)\r\nyandex = Ytranslate(\"en\", \"de\")\r\ntranslated = yandex.translate(textx)\r\nprint(translated)\r\nyandex.quit_translator(soft_kill_first=True)\r\n\r\n\r\ncould not detect version_main.therefore, we are assuming it is chrome 108 or higher\r\n[[('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\u2019s 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\u00e4ge von anderen enth\u00e4lt. 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\u00f6ffentlichte.')]]\r\n[[('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\u2019s 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\u00e4ge von anderen enth\u00e4lt. 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\u00f6ffentlichte.')]]\r\ncould not detect version_main.therefore, we are assuming it is chrome 108 or higher\r\n[[('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\u2019s 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\u00e4ge von anderen enth\u00e4lt. 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\u00f6ffentlichte.')]]\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "automates text translation using yandex",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/yantranslate"
    },
    "split_keywords": [
        "yandex",
        "translate"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b58de9a0674cfb97a9bb95c1062076506c49938171bdf924ce00f42b7de98069",
                "md5": "5fe31f55cf9dfc29d6dec836483cea75",
                "sha256": "1b4d868f736e3158d65b1f1145eb18d3023f03c4de00b36c3c48785f2b9070d2"
            },
            "downloads": -1,
            "filename": "yantranslate-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5fe31f55cf9dfc29d6dec836483cea75",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5956,
            "upload_time": "2023-07-08T02:33:24",
            "upload_time_iso_8601": "2023-07-08T02:33:24.545896Z",
            "url": "https://files.pythonhosted.org/packages/b5/8d/e9a0674cfb97a9bb95c1062076506c49938171bdf924ce00f42b7de98069/yantranslate-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4e34f5ec73e86045e90149821e9d953ae175a6442e400a2a9588ab65b5e554ff",
                "md5": "2250eb92355f8eac31c889e409532c59",
                "sha256": "47fba7762fa559bffe88c652ca20e47457b23683ad3269e8eda47e1f0f425fab"
            },
            "downloads": -1,
            "filename": "yantranslate-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "2250eb92355f8eac31c889e409532c59",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4942,
            "upload_time": "2023-07-08T02:33:25",
            "upload_time_iso_8601": "2023-07-08T02:33:25.916266Z",
            "url": "https://files.pythonhosted.org/packages/4e/34/f5ec73e86045e90149821e9d953ae175a6442e400a2a9588ab65b5e554ff/yantranslate-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-08 02:33:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "yantranslate",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "kthread_sleep",
            "specs": []
        },
        {
            "name": "selenium",
            "specs": []
        },
        {
            "name": "translate4colors",
            "specs": []
        }
    ],
    "lcname": "yantranslate"
}
        
Elapsed time: 0.10494s