{ "info": { "author": "James Axl", "author_email": "axlrose112@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Utilities" ], "description": "==================================================\nyandex-translater Yandex Translate Api for Python\n==================================================\n\n:author: James Axl\n:version: 7.0\n:date: 2018-12-02\n\n\nVERSION\n--------\n\nversion 7.0\n\n\nDESCRIPTION\n------------\n\nThis module uses the Yandex.Translate API for machine translation.\nA Yandex API key is required; see https://translate.yandex.com/developers\nfor more information.\n\nNote also that the \u201cYandex Terms of Use of API Yandex.Translate Service\u201d\nat https://yandex.com/legal/translate_api/ must be observed.\n\n\nInstall\n---------\n\n::\n\n $ pip install yandex-translater\n\n\nSYNOPSIS\n-----------\n\nTranslate a Text\n^^^^^^^^^^^^^^^^^\n\nThis is a simple example\n\n.. code-block:: pycon\n\n >>> from yandex.Translater import Translater\n >>> tr = Translater()\n >>> tr.set_key('yandex_key') # Api key found on https://translate.yandex.com/developers/keys\n >>> tr.set_from_lang('en')\n >>> tr.set_to_lang('ru')\n >>> tr.translate()\n \u041f\u0440\u0438\u0432\u0435\u0442\n\nMETHODS\n--------\n\nConstructor:\n^^^^^^^^^^^^^\n\n\n.. code-block:: pycon\n >>> tr = Translater(attributes)\n\nThis constructor returns a new object. Optional attributes include:\n\nset_key\n^^^^^^^^\n\n.. code-block:: pycon\n\n >>> tr.set_key('yandex_key')\n\nThis method is used to pass a Yandex API key (string), \ninstead of passing it in Constructor. A tr object can be \ninstantiated without any attributes.\n\nset_text\n^^^^^^^^^\n\n.. code-block:: pycon\n\n >>> tr.set_text('text_to_translate')\n\nThis method is used to pass a text to translate (string).\n\nset_from_lang\n^^^^^^^^^^^^^^\n\n.. code-block:: python\n\n >>> tr.set_from_lang('zh')\n\nThis method is used to pass a source language (string). \nFor example, Chinese would be given as zh.\n\nset_to_lang\n^^^^^^^^^^^^\n\n.. code-block:: python\n\n >>> tr.set_from_lang('ar')\n\nThis method is used to pass a destination language (string). \nFor example, Arabic would be given as ar.\n\n\nset_ui\n^^^^^^^\n\n.. code-block:: python\n\n >>> tr.set_ui('fr')\n\nThis method is used to set the user interface language (string). \nFor example, French would be given as fr.\n\nset_default_ui\n^^^^^^^^^^^^^^^\n\n.. code-block:: python\n\n >>> tr.set_default_ui('ru')\n\nThis method is used to set the default user interface language (string). \nEither ru (Russian) or en (English) or tr (Turkish) can be given.\n\nset_hint\n^^^^^^^^^\n\n.. code-block:: python\n\n >>> tr.set_hint('es', 'pt')\n\nThis method is used to set the list of likely languages for \ndetecting the text language (array reference). For example, \nSpanish and Portuguese would be given as attributes.\n\ntranslate\n^^^^^^^^^^\n\n.. code-block:: python\n\n >>> print tr.translate()\n\nThis method is used to get the translated text (string)\n\ndetect_lang\n^^^^^^^^^^^^\n\n.. code-block:: python\n\n >>> print tr.detect_lang()\n\nThis method is used to detect the language of the text. It returns a string.\n\nget_langs_list\n^^^^^^^^^^^^^^^\n\n.. code-block:: python\n\n >>> print tr.get_langs_list()\n\nThis method is used to get the list of supported translation directions. \nIn array context, it returns an array of these directions; in scalar context, \nit returns the count of them.\n\n\nSEE ALSO\n---------\nFor more information, please visit Yandex .\n\n\nSUPPORT\n--------\n\nBugs / Feature Requests\n^^^^^^^^^^^^^^^^^^^^^^^^\n\nPlease report any bugs or feature requests on my email or created in the website.\nyandex-translate-bugs \n\n\nSource Code\n^^^^^^^^^^^^\n\nThis is open source software. The code repository is available for \npublic review and contribution under the terms of the license.\n\nhttps://pypi.org/project/yandex-translater/\n\n\nAUTHORS\n--------\n\nJames Axl \n\n\nCOPYLEFT AND LICENSE\n---------------------\n\nThis software is copyleft \u00a9 2017 by James Axl.\n\nThis is free software; you can redistribute it and/or \nmodify it under the same terms as the Perl 5 programming language system itself.\n\n..\n vim: filetype=rst\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://pypi.org/project/yandex-translater/", "keywords": "yandex-translater translater yandex translate", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "yandex-translater", "package_url": "https://pypi.org/project/yandex-translater/", "platform": "", "project_url": "https://pypi.org/project/yandex-translater/", "project_urls": { "Homepage": "https://pypi.org/project/yandex-translater/" }, "release_url": "https://pypi.org/project/yandex-translater/6.0/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "API for Yandex Translate", "version": "6.0" }, "last_serial": 4551122, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "1ff71e4f8fd9504628f576a255af3bd0", "sha256": "4ff912f0d05d7b8a21eff50d03619aaff0843b7f779a7629ee0b86f70b1b4ac3" }, "downloads": -1, "filename": "yandex_translater-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1ff71e4f8fd9504628f576a255af3bd0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3692, "upload_time": "2017-05-11T18:15:53", "url": "https://files.pythonhosted.org/packages/31/96/e56c441059c6f1192d635d285478d6922157c83d1e3ae82ad729ad7d4829/yandex_translater-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1e9e9fbcf45108e4516c7753a4982177", "sha256": "d778e4df850712b7dacf1aaadfe3f0bfe641a8bfb4ff470b37a2b303fec4ea88" }, "downloads": -1, "filename": "yandex-translater-1.0.tar.gz", "has_sig": false, "md5_digest": "1e9e9fbcf45108e4516c7753a4982177", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5131, "upload_time": "2017-05-11T18:15:55", "url": "https://files.pythonhosted.org/packages/ce/2f/2590e9775a38d77de454f82cc027bb63285057163a9e29058344b3b83d0c/yandex-translater-1.0.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "79a9aa3be24a394d41fb24f8d859710f", "sha256": "e9f037ca90b04acf1ecaef967013720b0a908989aa9d345a1228be51352bb810" }, "downloads": -1, "filename": "yandex_translater-2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "79a9aa3be24a394d41fb24f8d859710f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3877, "upload_time": "2018-12-01T21:36:05", "url": "https://files.pythonhosted.org/packages/fb/ce/26eab2735fafda5165b567053dc2cdf2500d246dad1176e107dc9683eb76/yandex_translater-2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "52863c10b972ac42e08bea8d774f6cb2", "sha256": "ca887c6f5449a11251f1b14f99b0cb865f073e788eccb00d00568491625f15af" }, "downloads": -1, "filename": "yandex-translater-2.0.tar.gz", "has_sig": false, "md5_digest": "52863c10b972ac42e08bea8d774f6cb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8449, "upload_time": "2018-12-01T21:36:07", "url": "https://files.pythonhosted.org/packages/0a/b1/ee08131e7b41913753a86238e1a736657984facf3aae34e343edc1837eb9/yandex-translater-2.0.tar.gz" } ], "3.0": [ { "comment_text": "", "digests": { "md5": "a0d835a61e46615a4b8a9ffcdbeb6822", "sha256": "169408ef641fc9a4520f5319c6188e4ee52f47d570b912c5e6a33a5d9b24a729" }, "downloads": -1, "filename": "yandex_translater-3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a0d835a61e46615a4b8a9ffcdbeb6822", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5258, "upload_time": "2018-12-01T21:45:06", "url": "https://files.pythonhosted.org/packages/80/65/3da0bdffa8efca51a4b730d1331daa719c1bd6928a2825619bc5a362e36b/yandex_translater-3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eb87f9f5551abb692908637b8e58def3", "sha256": "320863b6f152964210ab945b93a33f10ad5c0a59551865e73c4da71248a44073" }, "downloads": -1, "filename": "yandex-translater-3.0.tar.gz", "has_sig": false, "md5_digest": "eb87f9f5551abb692908637b8e58def3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9189, "upload_time": "2018-12-01T21:45:07", "url": "https://files.pythonhosted.org/packages/53/bb/5195d3093a2460887a7161d8b4775ab3659265a2274e571411862f390890/yandex-translater-3.0.tar.gz" } ], "4.0": [ { "comment_text": "", "digests": { "md5": "25c142c6e7dd45283ee5891966454175", "sha256": "e6495e239a67d4264e658621df33557c3a96be8634e62f39e405bf644cdf333a" }, "downloads": -1, "filename": "yandex_translater-4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "25c142c6e7dd45283ee5891966454175", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5211, "upload_time": "2018-12-01T22:06:11", "url": "https://files.pythonhosted.org/packages/93/26/8accb78ab6b3154a518e813cddde5b06f04ff34a0743abfbee45a2aff0ee/yandex_translater-4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41c5911eb482875849b25fbcf2049eb9", "sha256": "9fb06a3c3762e4a24a282bd667c3356d54c2edc26512420edc9faea83c567673" }, "downloads": -1, "filename": "yandex-translater-4.0.tar.gz", "has_sig": false, "md5_digest": "41c5911eb482875849b25fbcf2049eb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9053, "upload_time": "2018-12-01T22:06:13", "url": "https://files.pythonhosted.org/packages/a1/d3/0ce92b51e61e42710329e18d5ddc9be72fea6c07321a9bad6d948062c94f/yandex-translater-4.0.tar.gz" } ], "5.0": [ { "comment_text": "", "digests": { "md5": "37e82f7b107b885c8468cd18c3088fb6", "sha256": "d7efa5ba9a1560f0d6211f34e2c81e854bb8da57495c04abf937f450daa01f89" }, "downloads": -1, "filename": "yandex_translater-5.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "37e82f7b107b885c8468cd18c3088fb6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3878, "upload_time": "2018-12-01T22:43:35", "url": "https://files.pythonhosted.org/packages/b3/59/9c45c5e6953d07f7ed3d09b79a9b441f972547a1071507187692187efafe/yandex_translater-5.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d30ea341886eccc62dc8ef89be9a57ba", "sha256": "0adf88da5579bcd59282c7f671c815a27083c8ec072ca75628ef78920658c430" }, "downloads": -1, "filename": "yandex-translater-5.0.tar.gz", "has_sig": false, "md5_digest": "d30ea341886eccc62dc8ef89be9a57ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8509, "upload_time": "2018-12-01T22:43:36", "url": "https://files.pythonhosted.org/packages/2a/45/d323ce8ad5e32fdeaf22fcfec750a66db0312c6cb4ff47bc210b07255596/yandex-translater-5.0.tar.gz" } ], "6.0": [ { "comment_text": "", "digests": { "md5": "d3c8a8f8965326b216eaa9848dc960ed", "sha256": "e83856a0ec84a1673dae5f136b1276d1a9fa0a82b9b180f0cdcd6491f7d5a9d9" }, "downloads": -1, "filename": "yandex_translater-6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d3c8a8f8965326b216eaa9848dc960ed", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5207, "upload_time": "2018-12-01T22:45:59", "url": "https://files.pythonhosted.org/packages/8c/fa/c65a83cd5a0e9860f8dae2c4dd27f76bc100241508a2e29127f6c4f63b9f/yandex_translater-6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b24e604f08a9efe2c3819868f94ab892", "sha256": "7419f704849345f803b0e9aa64eb4c9be13102d8751e1bcd32e4711b91e0f803" }, "downloads": -1, "filename": "yandex-translater-6.0.tar.gz", "has_sig": false, "md5_digest": "b24e604f08a9efe2c3819868f94ab892", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9007, "upload_time": "2018-12-01T22:46:01", "url": "https://files.pythonhosted.org/packages/e2/ad/82950e16b88aaf08a57da658b086c54699dd9360dfbc7a9b094b5063eb21/yandex-translater-6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d3c8a8f8965326b216eaa9848dc960ed", "sha256": "e83856a0ec84a1673dae5f136b1276d1a9fa0a82b9b180f0cdcd6491f7d5a9d9" }, "downloads": -1, "filename": "yandex_translater-6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d3c8a8f8965326b216eaa9848dc960ed", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5207, "upload_time": "2018-12-01T22:45:59", "url": "https://files.pythonhosted.org/packages/8c/fa/c65a83cd5a0e9860f8dae2c4dd27f76bc100241508a2e29127f6c4f63b9f/yandex_translater-6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b24e604f08a9efe2c3819868f94ab892", "sha256": "7419f704849345f803b0e9aa64eb4c9be13102d8751e1bcd32e4711b91e0f803" }, "downloads": -1, "filename": "yandex-translater-6.0.tar.gz", "has_sig": false, "md5_digest": "b24e604f08a9efe2c3819868f94ab892", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9007, "upload_time": "2018-12-01T22:46:01", "url": "https://files.pythonhosted.org/packages/e2/ad/82950e16b88aaf08a57da658b086c54699dd9360dfbc7a9b094b5063eb21/yandex-translater-6.0.tar.gz" } ] }