I don't have the code, nor do I have rights, but I am writing this to help the users correctly download and use the indic-trans code in the system.
How to setup the git hub code indictrans | import error: ctranxn | from: can't read /var/mail/indictrans | libindic indic-trans code clone
git clone https://github.com/libindic/indic-trans.git
OR
git clone https://github.com/irshadbhat/indictrans.git
cd indic-trans
pip install -r requirements.txt
python setup.py install
indictrans -v
4. Then access the code library. Note you need come out of the source code directory to access the below commands;
from indictrans import Transliterator
trn = Transliterator(source='hin', target='eng', build_lookup=True)
hin = """рдХрд╛рдВрдЧреНрд░реЗрд╕ рдкрд╛рд░реНрдЯреА рдЕрдзреНрдпрдХреНрд╖ рд╕реЛрдирд┐рдпрд╛ рдЧрд╛рдВрдзреА, рддрдорд┐рд▓рдирд╛рдбреБ рдХреА рдореБрдЦреНрдпрдордВрддреНрд░реА
рдЬрдпрд▓рд▓рд┐рддрд╛ рдФрд░ рд░рд┐рдЬрд╝рд░реНрд╡ рдмреИрдВрдХ рдХреЗ рдЧрд╡рд░реНрдирд░ рд░рдШреБрд░рд╛рдо рд░рд╛рдЬрди рдХреЗ рдмреАрдЪ рдПрдХ рд╕рдорд╛рдирддрд╛
рд╣реИ. рдпреЗ рд╕рднреА рдЕрд▓рдЧ-рдЕрд▓рдЧ рдХрд╛рд░рдгреЛрдВ рд╕реЗ рднрд╛рд░рддреАрдп рдЬрдирддрд╛ рдкрд╛рд░реНрдЯреА рдХреЗ рд░рд╛рдЬреНрдпрд╕рднрд╛ рд╕рд╛рдВрд╕рдж
рд╕реБрдмреНрд░рдордгреНрдпрдо рд╕реНрд╡рд╛рдореА рдХреЗ рдирд┐рд╢рд╛рдиреЗ рдкрд░ рд╣реИрдВ. рдЙрдирдХреЗ рдЬрдпрд▓рд▓рд┐рддрд╛ рдФрд░ рд╕реЛрдирд┐рдпрд╛ рдЧрд╛рдВрдзреА рдХреЗ
рдкреАрдЫреЗ рдкрдбрд╝рдиреЗ рдХрд╛ рдХрд╛рд░рдг рдХрдерд┐рдд рднреНрд░рд╖реНрдЯрд╛рдЪрд╛рд░ рд╣реИ."""
eng = trn.transform(hin)
print(eng)
congress party adhyaksh sonia gandhi, tamilnadu kii mukhyamantri
jayalalita or reserve bank ke governor raghuram rajan ke bich ek samanta
he. ye sabhi alag-alag kaarnon se bhartiya janata party ke rajyasabha saansad
subramanyam swami ke nishane par hai. unke jayalalita or sonia gandhi ke
peeche padane kaa kaaran kathith bhrashtachar he.
trn = Transliterator(source='eng', target='hin')
hin_ = trn.transform(eng)
I have writting this all from the source https://github.com/libindic/indic-trans Please refer to this link for more details. Enjoy!!!