py-trans is a Free Python library for translate text into different languages.

Overview

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.

Supported Engines

For now py-trans supported for 5 translate engines (providers)

Engine Engine Code
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

You might also like...
Text to ASCII and ASCII to text

Text2ASCII Description This python script (converter.py) contains two functions: encode() is used to return a list of Integer, one item per character

TextStatistics - Get a text file wich contains English text

TextStatistics This program get a text file wich contains English text. The program analyses the text, and print some information. For this program I

Redlines produces a Markdown text showing the differences between two strings/text

Redlines Redlines produces a Markdown text showing the differences between two strings/text. The changes are represented with strike-throughs and unde

Hspell, the free Hebrew spellchecker and morphology engine.

Hspell, the free Hebrew spellchecker and morphology engine.

Find a Doc is a free online resource aimed at helping connect the foreign community in Japan with health services in their native language.
Find a Doc is a free online resource aimed at helping connect the foreign community in Japan with health services in their native language.

Find a Doc - Localization Find a Doc is a free online resource aimed at helping connect the foreign community in Japan with health services in their n

A simple Python module for parsing human names into their individual components

Name Parser A simple Python (3.2+ & 2.6+) module for parsing human names into their individual components. hn.title hn.first hn.middle hn.last hn.suff

Split large XML files into smaller ones for easy upload

Split large XML files into smaller ones for easy upload. Works for WordPress Posts Import and other XML files.

Paranoid text spacing in Python

pangu.py Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width charact

a python package that lets you add custom colors and text formatting to your scripts in a very easy way!
a python package that lets you add custom colors and text formatting to your scripts in a very easy way!

colormate Python script text formatting package What is colormate? colormate is a python library that lets you add text formatting to your scripts, it

Releases(py-trans-pypi-v0.5.5)
  • py-trans-pypi-v0.5.5(May 29, 2022)

    • Fixed google translate
    • Removed libre translate due to low translation accuracy and API changes
    • Fixed initializing aiohttp clients without any particular reason

    Full Changelog: https://github.com/Itz-fork/py-trans/compare/py-trans-pypi-v0.5...py-trans-pypi-v0.5.5

    Source code(tar.gz)
    Source code(zip)
  • py-trans-pypi-v0.5(Sep 22, 2021)

  • py-trans-pypi-v0.4(Sep 18, 2021)

    New Release of py-trans :partying_face: (v0.4)

    The new version (v0.4) of py-trans is just released with some newly added features and bug fixes!

    What's new.

    • Added new translation engine
    • Added function to get language name / code (ISO 639-1)
    • Added source language detection to translate.com engine
    • Added option to select full form of source language or language code of source language in language detection function

    Fixes,

    • Fixed attribute error while translating with LibreTranslate
    Source code(tar.gz)
    Source code(zip)
  • py-trans-pypi-v0.3(Sep 12, 2021)

  • py-trans-pypi(Sep 11, 2021)

Owner
I'm Not A Bot #Left_TG
Everything is impossible until You use Your Brain
I'm Not A Bot #Left_TG
strbind - lapidary text converter for translate an text file to the C-style string

strbind strbind - lapidary text converter for translate an text file to the C-style string. My motivation is fast adding large text chunks to the C co

Mihail Zaytsev 1 Oct 22, 2021
PyMultiDictionary is a Dictionary Module for Python 3+ to get meanings, translations, synonyms and antonyms of words in 20 different languages

PyMultiDictionary PyMultiDictionary is a Dictionary Module for Python 3+ to get meanings, translations, synonyms and antonyms of words in 20 different

Pablo Pizarro R. 19 Dec 26, 2022
Build a translation program similar to Google Translate with Python programming language and QT library

google-translate Build a translation program similar to Google Translate with Python programming language and QT library Different parts of the progra

Amir Hussein Sharifnezhad 3 Oct 9, 2021
Translate .sbv subtitle files

deepl4subtitle Deeplを使って字幕ファイル(.sbv)を翻訳します。タイムスタンプも含めて出力しますが、翻訳時はタイムスタンプは文の一部とは切り離されるので、.sbvファイルをそのまま翻訳機に突っ込むよりも高精度な翻訳ができるはずです。 つかいかた 入力する.sbvファイルの前処理

Yasunori Toshimitsu 1 Oct 20, 2021
Free & simple way to encipher text

VenSipher VenSipher is a free medium through which text can be enciphered. It can convert any text into an unrecognizable secret text that can only be

null 3 Jan 28, 2022
A python Tk GUI that creates, writes text and attaches images into a custom spreadsheet file

A python Tk GUI that creates, writes text and attaches images into a custom spreadsheet file

Mirko Simunovic 13 Dec 9, 2022
Etranslate is a free and unlimited python library for transiting your texts

Etranslate is a free and unlimited python library for transiting your texts

Abolfazl Khalili 16 Sep 13, 2022
Markup is an online annotation tool that can be used to transform unstructured documents into structured formats for NLP and ML tasks, such as named-entity recognition. Markup learns as you annotate in order to predict and suggest complex annotations. Markup also provides integrated access to existing and custom ontologies, enabling the prediction and suggestion of ontology mappings based on the text you're annotating.

Markup is an online annotation tool that can be used to transform unstructured documents into structured formats for NLP and ML tasks, such as named-entity recognition. Markup learns as you annotate in order to predict and suggest complex annotations. Markup also provides integrated access to existing and custom ontologies, enabling the prediction and suggestion of ontology mappings based on the text you're annotating.

Samuel Dobbie 146 Dec 18, 2022
A Python app which can convert normal text to Handwritten text.

Text to HandWritten Text ✍️ Converter Watch Tutorial for this project Usage:- Clone my repository. Open CMD in working directory. Run following comman

Kushal Bhavsar 5 Dec 11, 2022
A python tool to convert Bangla Bijoy text to Unicode text.

Unicode Converter A python tool to convert Bangla Bijoy text to Unicode text. Installation Unicode Converter can be installed via PyPi. Make sure pip

Shahad Mahmud 10 Sep 29, 2022