## TranslatorX
> A Python package for translation that uses Google translator and also supports asynchronous programming!
> Please star the GitHub repository to support me :)
### Simpale Example
```python
import asyncio
import TranslatorX
trans = TranslatorX.Translator()
async def main():
print(trans.translator(text='hi', to_lang='fa'))
asyncio.run(main())
```
### Async Support
```python
import asyncio
import TranslatorX
trans = TranslatorX.AsyncTranslator()
async def main():
print(await trans.translator(text='hi', to_lang='fa'))
asyncio.run(main())
```
### Install Package
```bash
pip3 install -U TranslatorX
```
Raw data
{
"_id": null,
"home_page": "https://github.com/shayanheidari01/TranslatorX",
"name": "TranslatorX",
"maintainer": "",
"docs_url": null,
"requires_python": "~=3.7",
"maintainer_email": "",
"keywords": "translator,translate,google,asyncio,googletrans",
"author": "Shayan Heidari",
"author_email": "contact@shayanheidari.info",
"download_url": "https://files.pythonhosted.org/packages/36/15/aa2df5b5eae44d39f373c8649794b80d93ba5b4df4d4f1aace0c2ea0bfbb/TranslatorX-1.2.tar.gz",
"platform": null,
"description": "## TranslatorX\r\n\r\n> A Python package for translation that uses Google translator and also supports asynchronous programming!\r\n\r\n> Please star the GitHub repository to support me :)\r\n\r\n### Simpale Example\r\n```python\r\nimport asyncio\r\nimport TranslatorX\r\n\r\ntrans = TranslatorX.Translator()\r\n\r\nasync def main():\r\n print(trans.translator(text='hi', to_lang='fa'))\r\n\r\nasyncio.run(main())\r\n```\r\n\r\n### Async Support\r\n```python\r\nimport asyncio\r\nimport TranslatorX\r\n\r\ntrans = TranslatorX.AsyncTranslator()\r\n\r\nasync def main():\r\n print(await trans.translator(text='hi', to_lang='fa'))\r\n\r\nasyncio.run(main())\r\n```\r\n\r\n### Install Package\r\n```bash\r\npip3 install -U TranslatorX\r\n```\r\n",
"bugtrack_url": null,
"license": "",
"summary": "A Python package for translation that uses Google translator and also supports asynchronous programming!",
"version": "1.2",
"project_urls": {
"Homepage": "https://github.com/shayanheidari01/TranslatorX"
},
"split_keywords": [
"translator",
"translate",
"google",
"asyncio",
"googletrans"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3615aa2df5b5eae44d39f373c8649794b80d93ba5b4df4d4f1aace0c2ea0bfbb",
"md5": "086439a1351630062ec8fd8ce42cb014",
"sha256": "1a36b2a08011d6f6b56e195bca40a92558dbc96c405c041cfd541816540c4795"
},
"downloads": -1,
"filename": "TranslatorX-1.2.tar.gz",
"has_sig": false,
"md5_digest": "086439a1351630062ec8fd8ce42cb014",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.7",
"size": 2245,
"upload_time": "2023-07-30T15:40:56",
"upload_time_iso_8601": "2023-07-30T15:40:56.055476Z",
"url": "https://files.pythonhosted.org/packages/36/15/aa2df5b5eae44d39f373c8649794b80d93ba5b4df4d4f1aace0c2ea0bfbb/TranslatorX-1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-30 15:40:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "shayanheidari01",
"github_project": "TranslatorX",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "translatorx"
}