Free python library to translate text to different languages.
Project description
py-trans
from py_trans import PyTranslator
x = PyTranslator()
print(x.translate("Hi", "si"))
py-trans is a Free Python library for translate text into different languages.
Features
- Simple and Easy to use
- Synchronous & Asynchronous
- Different Translate Engines to choose
Less code, translate more
Supported Engines
For now py-trans supported for 5 translate engines (providers)
- Google Translate -
google
- LibreTranslate -
libre
- translate.com -
translate.com
- MyMemory -
my_memory
- Translate Dict -
translate_dict
Installation
Install from pypi
pip3 install py-trans
Install from source
If you want to try out latest features then install py-trans from the source.
pip install git+https://github.com/Itz-fork/py-trans.git
If you want to check whether it's successfully installed or not just run the following command in your terminal. This will print out the current version of py-trans. So you can use this to check the version also.
echo 'from py_trans import __version__ as v; print(v)' | python3
Docs
"Stop it, Get some help"
If you want more information about usage of thsi module or need some examples to get started, just read the docs of py-trans - Click here
License & Copyright
-
py-trans is licensed under MIT License
-
Copyright (c) 2021 Itz-fork
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.