Skip to main content

Free python library to translate text to different languages.

Project description

py-trans

Free Python library for translate text into different languages.

Supported Engines

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

Installation

Install from pypi

pip3 install py-trans

Install from source

pip install git+https://github.com/Itz-fork/py-trans.git

Usage

Some example code snippet to use py-trans

from py_trans import PyTranslator

# Create an instance of py_trans
x = PyTranslator(provider="google")

print(x.translate("Hi", "si"))

Docs

For now there is no documentation, but still you can get some help using Docstrings. Use below code for it.

from py_trans import PyTranslator

print(help(PyTranslator.translate))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-trans-0.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page