Skip to main content

Simple Python translation library using Google Translate unofficial API.

Project description

py-Xtranslator

Simple Python translation library using Google Translate unofficial API.

Installation

pip install py-Xtranslator

Usage

from py-Xtranslator import translate

print(translate("سلام دنیا", to_lang="en"))
# Output: Hello World

print(translate(["سلام", "دنیا"], to_lang="en"))
# Output: ['Hello', 'World']

Features

  • Translate a text or a list of texts.
  • Auto-detect source languages.
  • No Api-Key Requested.

LICENSE

The project is published with MIT License.

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_xtranslator-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

py_xtranslator-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file py_xtranslator-0.1.0.tar.gz.

File metadata

  • Download URL: py_xtranslator-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for py_xtranslator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fb0e38189d482cce56e1842aa7f1b13c30c76ed194dae51b5b8b805dce357dee
MD5 962bbe48ac39fdfbb18bf2a26d4e4441
BLAKE2b-256 a6e4b4cd90e1ad2a823d6a1764dd01d024b138190c9bac560c8c35ae086c098c

See more details on using hashes here.

File details

Details for the file py_xtranslator-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: py_xtranslator-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for py_xtranslator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85ab7bb4c5faeed405fae9d08a7cf3e2e6e97653b77c6d2474a415927fbc94d6
MD5 b118f80e7f36a01cdba2cc6c7e44e347
BLAKE2b-256 acd98a72a7672696d25aa61cbebbbb56e461bf6684f4f960262a78d3ed17c939

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