{ "info": { "author": "Steph Samson", "author_email": "sdvsamson@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "pygtaw\n======\n\nA tiny Google Translate API wrapper written in Python. An API key is needed to use this. More information on obtaining the API key can be found on the `Google Translate API site`_.\n\n.. _Google Translate API site: https://cloud.google.com/translate/.\n\nThe full list of `supported languages`_.\n\n.. _supported languages: https://cloud.google.com/translate/v2/using_rest#language-params.\n\n\nUsage\n-----\nTo install: ``pip install pygtaw``.\n\nIdentify your api key and make a new Client object.\n\n.. code-block:: python\n\n >>> import pygtaw\n >>> api_key = 'ENTER_API_KEY'\n >>> client = pygtaw.Client(api_key)\n\nTo make the translation request:\n\n.. code-block:: python\n\n >>> query = 'Hello, world!'\n >>> target = 'Korean'\n >>> source = 'English'\n >>> translation = client.translate(query, target, source)\n >>> \n >>> print translation.translated_text\n \uc548\ub155\ud558\uc138\uc694\n\nYou can send a translation request without a source as well--the Google Translate API can detect the source language:\n\n.. code-block:: python\n\n >>> translation = client.translate('Hello', target='Spanish')\n >>> print translation.translated_text\n Hola\n >>> print translation.detected_source_language\n English\n\n\nTests\n-----\nCurrently, tests are made by making requests to Google Translate API. To run the tests, make a ``key`` file in the ``tests`` folder and make sure it's added to ``.gitignore``.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/stephsamson/pygtaw", "keywords": "google translate API wrapper", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pygtaw", "package_url": "https://pypi.org/project/pygtaw/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pygtaw/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/stephsamson/pygtaw" }, "release_url": "https://pypi.org/project/pygtaw/0.0.9/", "requires_dist": null, "requires_python": null, "summary": "A tiny Google Translate API wrapper written in Python.", "version": "0.0.9" }, "last_serial": 1796782, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "30a1f3c4d5b71e37ccb7c2446c35f216", "sha256": "fce978a77725b0c48919d5a850d5c0fa3efe9668f5350777e918b1f7ad9cfe06" }, "downloads": -1, "filename": "pygtaw-0.0.1.tar.gz", "has_sig": false, "md5_digest": "30a1f3c4d5b71e37ccb7c2446c35f216", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2871, "upload_time": "2014-10-09T17:11:04", "url": "https://files.pythonhosted.org/packages/73/ff/edabe65227dd8a809b9223197d0de8bbf0e5275a23931b11c303f1d3234b/pygtaw-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d14a3b72530fcfe14590ae0b2a5172bb", "sha256": "6af6531084162a6213a5bf0aaaa62b3efe525efc77cf1f3dfaf1f853554da960" }, "downloads": -1, "filename": "pygtaw-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d14a3b72530fcfe14590ae0b2a5172bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2462, "upload_time": "2014-10-09T17:16:05", "url": "https://files.pythonhosted.org/packages/5f/74/4498c0f0ee5a34f4fac56ea5f53fee712d8943266ea30cf137f541aa77bf/pygtaw-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "f05168d5a549e8b02db2ead25f712846", "sha256": "fe32907e8d49923be9160479895af65741edff0e1c55c8d5cd8dbb8d8d0c582f" }, "downloads": -1, "filename": "pygtaw-0.0.3.tar.gz", "has_sig": false, "md5_digest": "f05168d5a549e8b02db2ead25f712846", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3131, "upload_time": "2014-10-09T17:29:01", "url": "https://files.pythonhosted.org/packages/cb/c2/f8bf78307df6d8ed69afbdf293448833490ccf72f3bd16176321467138b9/pygtaw-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "87d403d23b2f5a9fbe4d6d72b9d0c1d1", "sha256": "af19203a830a238eff2cb75875cf188602ae81ced1fc6bcc7bff012ece771abb" }, "downloads": -1, "filename": "pygtaw-0.0.4.tar.gz", "has_sig": false, "md5_digest": "87d403d23b2f5a9fbe4d6d72b9d0c1d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3177, "upload_time": "2014-10-09T17:47:07", "url": "https://files.pythonhosted.org/packages/40/02/5ac2fdb9c7c129060933ba03a4ce484fa0af836d811c59a830e6a34a1be8/pygtaw-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "2414d1ca6431a72edf220ef703bdbdd2", "sha256": "5e1d142ee61cd684708fdfb9689329c4a4682b6da40d62c81493a534d88d4e31" }, "downloads": -1, "filename": "pygtaw-0.0.5.tar.gz", "has_sig": false, "md5_digest": "2414d1ca6431a72edf220ef703bdbdd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3189, "upload_time": "2014-10-11T00:10:55", "url": "https://files.pythonhosted.org/packages/59/3f/0d344a354b03ba1bb25c73ecc8ae65ff5bc14ccf432044250c3708058f13/pygtaw-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "f85fa76a4ff40edb6cc05a9e061e69cd", "sha256": "0712389962b734b2abb0693ef98e519f0c91d2778d723aeb32023619fd7ed566" }, "downloads": -1, "filename": "pygtaw-0.0.6.tar.gz", "has_sig": false, "md5_digest": "f85fa76a4ff40edb6cc05a9e061e69cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3190, "upload_time": "2014-10-15T15:10:34", "url": "https://files.pythonhosted.org/packages/58/6d/9b4db27082221a280674c33bb0466c0ea12745c9a4ca9ff4b7902480d794/pygtaw-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "bd3277168f6f26705ba2d0dd963cbc66", "sha256": "a8f98f51ede4ab819cb85a1a8c5fd65b2770794899c2e31bd57aad30c3525eee" }, "downloads": -1, "filename": "pygtaw-0.0.7.tar.gz", "has_sig": false, "md5_digest": "bd3277168f6f26705ba2d0dd963cbc66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3169, "upload_time": "2014-10-15T15:22:04", "url": "https://files.pythonhosted.org/packages/ec/a3/728c92cfbedd4f2de9af7674bf98dfd637671e39436f13cc62deab21b1c6/pygtaw-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "f66a91e5b7539d528f026cf245ae3111", "sha256": "dd6b108d4fb3a8ba5322e28ae40dc3d47c6a9615c3b6a0baf8d12dc8da820c5f" }, "downloads": -1, "filename": "pygtaw-0.0.8.tar.gz", "has_sig": false, "md5_digest": "f66a91e5b7539d528f026cf245ae3111", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3293, "upload_time": "2014-10-21T14:17:53", "url": "https://files.pythonhosted.org/packages/67/fa/c073c8c339ce14508fc34eb757370fe6da445bfb592839753eba2ae0604f/pygtaw-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "39fc1fee51a0a0e26e4e6ccca9320b1b", "sha256": "d354d7fe0146f4fa8f5a80ce324148499b4c5588c8ed40e6a7eb64d1bce41ba9" }, "downloads": -1, "filename": "pygtaw-0.0.9.tar.gz", "has_sig": false, "md5_digest": "39fc1fee51a0a0e26e4e6ccca9320b1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3308, "upload_time": "2015-11-02T09:54:02", "url": "https://files.pythonhosted.org/packages/42/1a/7876ded6bcc0ebfe41989ab11f638fc8428c1f0dadf97d27fffc43080c94/pygtaw-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "39fc1fee51a0a0e26e4e6ccca9320b1b", "sha256": "d354d7fe0146f4fa8f5a80ce324148499b4c5588c8ed40e6a7eb64d1bce41ba9" }, "downloads": -1, "filename": "pygtaw-0.0.9.tar.gz", "has_sig": false, "md5_digest": "39fc1fee51a0a0e26e4e6ccca9320b1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3308, "upload_time": "2015-11-02T09:54:02", "url": "https://files.pythonhosted.org/packages/42/1a/7876ded6bcc0ebfe41989ab11f638fc8428c1f0dadf97d27fffc43080c94/pygtaw-0.0.9.tar.gz" } ] }