Skip to content

ffreemt/yeekit-tr-free

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yeekit-tr-free

Yeekit translate for free: be gentle and rate-limit to 3 calls/2 seconds, first 200 calls exempted

Installation

pip install -U yeekit-tr-free

or

  • Install (pip or whatever) necessary requirements, e.g. pip install requests fuzzywuzzy pytest jmespath coloredlogs or pip install -r requirements.txt
  • Drop the file yeekit_tr.py in any folder in your PYTHONPATH (check with import sys; print(sys.path)
  • or clone the repo (e.g., git clone https://github.com/ffreemt/yeekit-tr-free.git or download https://github.com/ffreemt/yeekit-tr-free/archive/master.zip and unzip) and change to the yeekit-tr-free folder and do a python setup.py develop

Usage

from yeekit_tr import yeekit_tr

print(yeekit_tr('hello world', to_lang='zh'))  # ->'你好世界'
print(yeekit_tr('hello world', to_lang='de'))  # ->'Hallo Welt'
print(yeekit_tr('hello world', to_lang='fr'))  # ->'Bonjour le monde'
print(yeekit_tr('hello world', to_lang='ja'))  # ->'ハローワールド'
print(yeekit_tr('Diese sind Teste', 'de', 'zh'))  # ->'这是测试'
print(yeekit_tr('Diese sind Teste', 'de', 'en'))  # ->'These are tests'

Languages supported: zh, en, ru, de, fr, pt, ja, es. (zh-ko and ko-zh are probably supported.) Consult the official website for details.

Acknowledgments

  • Thanks to everyone whose code was used

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages