Do you have mass translation tasks to do? TAAS can helps you with asynchronous translation tasks via the HTTP API.
- Make sure you already installed RabbitMQ and MongoDB on your computer.
- Using pip3 install the following packages:
sudo pip3 install googletrans flask pika pymongo
- Run TAAS consumer on background.
(python3 consumer.py > /dev/null) &
disown
- (If you want) Run TAAS server over HTTP API.
(python3 api.py > /dev/null) &
If all these command execute successfully, you will see HTTP API over port 5000.
TaaS allow you import and export translation data from database.
- Execute
python3 exportTranslate.py
After that, you can see your translate database dump at translate_dump.json
.
- Execute
python3 importTranslate.py <filename>
googletrans
on pypiflask
on pypi- RabbitMQ
- MongoDB
"王万霖"[email protected]
See License
.