Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pytranslation

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pytranslation

It's just a simple transla

  • 1.0.3
  • PyPI
  • Socket score

Maintainers
1

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")

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc