Skip to main content

It's just a simple transla

Project description

Python Translation

Document    |    Installation    |    Usage    |    GitHub

Getting Started

Well, here is the beginning of a simple code that you can use no matter what

Installation

Of course we will now install the library through a command pip
if your system is Windows

$ pip install pytranslation

if your system is Linux

pip3 install pytranslation

And here we finish installing the library

Usage

Through this code and instructions, you will be able to use the library as required

# Here we will call the library
# (py) Python
from pytranslation import Translation

translate = Translation()
# Through this command. You can convert from any language to the language you want
translate = translate.convert('en', 'ru', 'Welcome to USA!')
# This is here output 
print(translate)

You can also translate from the names of the entire language

translate = translate.convert('English', 'Russian', 'Welcome to USA!')

Oh! also, instead of typing the language, you can learn the language automatically (this feature wotk in Google Engin, I don't know if it works with other engines)

translate = translate.convert('auto', 'ru', 'Welcome to USA!')

Do you know that ? Indee, you can choose another engine for translation through this example

# If you don't use a specific engin, Google Translate will be the default
translate = translate.convert('en', 'ru', 'Welcome to USA!', engine="Liber")

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyTranslation-1.0.3-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file PyTranslation-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: PyTranslation-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.27.1 setuptools/59.6.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.9.10

File hashes

Hashes for PyTranslation-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fa7123d7b1972c175d9b502a118b8c521059538748b73148be4c8dfb76a749c3
MD5 67db9729356c1a0033c600f6d30dd579
BLAKE2b-256 8043096c1314e8e3457f2252af650e9eb505fc6b37526c3f802e443c674b3b7c

See more details on using hashes here.

Supported by

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