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.0.tar.gz
(2.3 kB
view details)
File details
Details for the file TranslatorX-1.0.tar.gz
.
File metadata
- Download URL: TranslatorX-1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d260c0b415d8c14e6d65a380ae09bed464cb7edcc40b695c5021f3de36a1a0e |
|
MD5 | 47bb2ea1e14bd624a531f99b6047ca0e |
|
BLAKE2b-256 | e7ac2c57fcaeeef101954290c387372ad204aae47fc152f03bcb5f7cdded67f6 |