# ITranslator
Text translation package based on Google Translate API
### Sync Example
```python
from itranslator import Translator
translator = Translator()
translated_text = translator.translate(query='hi there', to_lang='fa')
print(translated_text)
```
### Async Example
```python
from itranslator.asyncio import Translator
from asyncio import run
translator = Translator()
async def main():
translated_text = await translator.translate("Hello", "fa")
print(translated_text)
run(main())
```
### Install & Update
```bash
pip install itranslator -U
```
### License
ITranslator is released under the GPL-3.0 License. See the bundled [LICENSE](https://github.com/irvaniamirali/itranslator/blob/main/LICENSE) file for details.
Raw data
{
"_id": null,
"home_page": "https://github.com/irvaniamirali/itranslator",
"name": "itranslator",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.7",
"maintainer_email": null,
"keywords": "translate, translator, google, google-translate, free-translator, asyncio",
"author": "AmirAli Irvani",
"author_email": "social.irvaniamirali@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/9c/b8/8393d71391e52928d5165c14f6e7bb4ded84964d2d5cf7089ce74310dc27/itranslator-3.0.tar.gz",
"platform": null,
"description": "# ITranslator\nText translation package based on Google Translate API\n\n### Sync Example\n```python\nfrom itranslator import Translator\n\ntranslator = Translator()\n\ntranslated_text = translator.translate(query='hi there', to_lang='fa')\nprint(translated_text)\n```\n\n### Async Example\n```python\nfrom itranslator.asyncio import Translator\nfrom asyncio import run\n\ntranslator = Translator()\n\n\nasync def main():\n translated_text = await translator.translate(\"Hello\", \"fa\")\n print(translated_text)\n\nrun(main())\n```\n\n### Install & Update\n```bash\npip install itranslator -U\n```\n### License\nITranslator is released under the GPL-3.0 License. See the bundled [LICENSE](https://github.com/irvaniamirali/itranslator/blob/main/LICENSE) file for details.\n",
"bugtrack_url": null,
"license": null,
"summary": "Text translation package based on Google Translate API",
"version": "3.0",
"project_urls": {
"Homepage": "https://github.com/irvaniamirali/itranslator"
},
"split_keywords": [
"translate",
" translator",
" google",
" google-translate",
" free-translator",
" asyncio"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fc4846a9c71a0d1c51c117a45c5837ae0642e162116be001af30079adaedf958",
"md5": "41b9c0f1fe2b396a51b36bda7e1b138c",
"sha256": "3e129a61d25bf43ea82230f597352f6bb15b5925c11d15df13559c6ddb7c26d6"
},
"downloads": -1,
"filename": "itranslator-3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "41b9c0f1fe2b396a51b36bda7e1b138c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.7",
"size": 15941,
"upload_time": "2024-09-07T20:04:27",
"upload_time_iso_8601": "2024-09-07T20:04:27.065223Z",
"url": "https://files.pythonhosted.org/packages/fc/48/46a9c71a0d1c51c117a45c5837ae0642e162116be001af30079adaedf958/itranslator-3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9cb88393d71391e52928d5165c14f6e7bb4ded84964d2d5cf7089ce74310dc27",
"md5": "dbac37c97492fab09293c68847492a81",
"sha256": "8a515e3283f58085170ee1ea850e65af3c08d64f62e8ec04e21e9189a827ea36"
},
"downloads": -1,
"filename": "itranslator-3.0.tar.gz",
"has_sig": false,
"md5_digest": "dbac37c97492fab09293c68847492a81",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.7",
"size": 14923,
"upload_time": "2024-09-07T20:04:30",
"upload_time_iso_8601": "2024-09-07T20:04:30.039246Z",
"url": "https://files.pythonhosted.org/packages/9c/b8/8393d71391e52928d5165c14f6e7bb4ded84964d2d5cf7089ce74310dc27/itranslator-3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-07 20:04:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "irvaniamirali",
"github_project": "itranslator",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "itranslator"
}