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.2.tar.gz
(2.2 kB
view details)
File details
Details for the file TranslatorX-1.2.tar.gz
.
File metadata
- Download URL: TranslatorX-1.2.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 | 1a36b2a08011d6f6b56e195bca40a92558dbc96c405c041cfd541816540c4795 |
|
MD5 | 086439a1351630062ec8fd8ce42cb014 |
|
BLAKE2b-256 | 3615aa2df5b5eae44d39f373c8649794b80d93ba5b4df4d4f1aace0c2ea0bfbb |