{ "info": { "author": "Jangwon Park", "author_email": "adieujw@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Kakaotrans\n\nUnofficial python API for [Kakao translate service](https://translate.kakao.com).\n\n## Installation\n\n```bash\n$ pip install kakaotrans\n```\n\n## Usage\n\n### Basic Usage\n\n```python\n>>> from kakaotrans import Translator\n>>> translator = Translator()\n>>> translator.translate(\"Try your best rather than be the best.\")\n# '\ucd5c\uace0\uac00 \ub418\uae30\ubcf4\ub2e4\ub294 \ucd5c\uc120\uc744 \ub2e4\ud558\ub77c.'\n>>> translator.translate(\"\ucd5c\uace0\uac00 \ub418\uae30\ubcf4\ub2e4\ub294 \ucd5c\uc120\uc744 \ub2e4\ud558\ub77c.\", src='kr', tgt='de')\n# 'Tun Sie Ihr Bestes, anstatt das Beste zu sein.'\n```\n\n### Separate the query into multiple sentences\n\nTranslation query might include multiple sentences. If you set separate_lines=True, translator will automatically separate the query and return the list of multiple sentences.\n\n```python\nfrom kakaotrans import Translator\n\ntranslator = Translator()\n\ntranslator.translate(\"\"\"\uc9c0\ub09c\ud574 3\uc6d4 \uc624\ud508\ud55c \uce74\uce74\uc624\ud1a1 \uc8fc\ubb38\ud558\uae30\ub294 \ud604\uc7ac\uae4c\uc9c0 \uc57d 250\ub9cc\uba85\uc758 \ud68c\uc6d0\uc744 \ud655\ubcf4\ud588\ub2e4.\n \uc804 \uad6d\ubbfc\uc5d0\uac8c \uce5c\uc219\ud55c \uce74\uce74\uc624\ud1a1 UI\ub97c \ud65c\uc6a9\ud558\uae30 \ub54c\ubb38\uc5d0 \ubcc4\ub3c4\uc758 \uc571\uc744 \uc124\uce58\ud560 \ud544\uc694 \uc5c6\uc774 \uce74\uce74\uc624\ud1a1 \ub0b4\uc5d0\uc11c \ubaa8\ub4e0 \uacfc\uc815\uc774 \uc774\ub904\uc9c0\ub294 \uac83\uc774 \ud2b9\uc9d5\uc774\ub2e4.\"\"\",\n src='kr', tgt='en', separate_lines=True)\n# ['The ordering of KakaoTalk, which opened in March last year, has secured about 2.5 million members to date.', 'Because it uses KakaoTalk UI, which is familiar to the whole nation, it is characterized by all the processes in KakaoTalk without having to install a separate app.']\n```\n\n### Save translated result as file\n\n```python\n>>> from kakaotrans import Translator\n>>> translator = Translator()\n>>> translator.translate(\"Try your best rather than be the best.\", save_as_file=True, file_name='result.txt')\n```\n\n## Reference\n\n- [googletrans](https://github.com/ssut/py-googletrans)\n- [pypapago](https://github.com/Beomi/pypapago)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/monologg/kakaotrans", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "kakaotrans", "package_url": "https://pypi.org/project/kakaotrans/", "platform": "", "project_url": "https://pypi.org/project/kakaotrans/", "project_urls": { "Homepage": "https://github.com/monologg/kakaotrans" }, "release_url": "https://pypi.org/project/kakaotrans/0.1.2/", "requires_dist": [ "requests" ], "requires_python": ">=3", "summary": "[Unofficial] Kakaotrans: Kakao translate API for python", "version": "0.1.2" }, "last_serial": 5695115, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "b1f443914c536743ee8e6449ea4c04dc", "sha256": "b0478713cac856b801b9720797c00d81b4a07e6771250485ddcf323ff0e26274" }, "downloads": -1, "filename": "kakaotrans-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b1f443914c536743ee8e6449ea4c04dc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5204, "upload_time": "2019-08-16T16:37:21", "url": "https://files.pythonhosted.org/packages/0f/13/e73dd650e1de46ea84049aadc23b79d30651fb4adc2513430ccddc5b570b/kakaotrans-0.1.1-py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a2cac0e4c173c1a8d02dafef698386b0", "sha256": "0476385b9a26d8f820274421cbcf72cc44af044e3cb08855dae8478b78f6428b" }, "downloads": -1, "filename": "kakaotrans-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a2cac0e4c173c1a8d02dafef698386b0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5202, "upload_time": "2019-08-18T16:16:58", "url": "https://files.pythonhosted.org/packages/d4/0d/f425ca254bf69c513c7c0150ba5dfcb095cc5d0c694af328dba7f42582b6/kakaotrans-0.1.2-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a2cac0e4c173c1a8d02dafef698386b0", "sha256": "0476385b9a26d8f820274421cbcf72cc44af044e3cb08855dae8478b78f6428b" }, "downloads": -1, "filename": "kakaotrans-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a2cac0e4c173c1a8d02dafef698386b0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5202, "upload_time": "2019-08-18T16:16:58", "url": "https://files.pythonhosted.org/packages/d4/0d/f425ca254bf69c513c7c0150ba5dfcb095cc5d0c694af328dba7f42582b6/kakaotrans-0.1.2-py3-none-any.whl" } ] }