A Python package for translation that uses Google translator and also supports asynchronous programming!
Project description
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
import asyncio
import TranslatorX
trans = TranslatorX.Translator()
async def main():
print(trans.translator(text='hi', to_lang='fa'))
asyncio.run(main())
Async Support
import asyncio
import TranslatorX
trans = TranslatorX.AsyncTranslator()
async def main():
print(await trans.translator(text='hi', to_lang='fa'))
asyncio.run(main())
Install Package
pip3 install -U TranslatorX
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
TranslatorX-1.1.tar.gz
(2.2 kB
view details)
File details
Details for the file TranslatorX-1.1.tar.gz
.
File metadata
- Download URL: TranslatorX-1.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 980fc037785645c02f42b85e283d221b9c5102b09099411706200d52915233b1 |
|
MD5 | 58baddf9667fc27942323feb713c9a23 |
|
BLAKE2b-256 | 3d1463e2665345528c1ef66f31124dc3deab5fac9e1e2fcf3619157a641dbe62 |