Skip to main content

Free & Easy translators for Python, such as Google, Alibaba, Tencent, NetEase(Youdao), etc.

Project description

translators

PyPI - Version PyPI - License PyPI - Python PyPi - Coverage PyPI - Status PyPI - Wheel

1. Description:

  • Free & Easy translators for Python, such as Google, Alibaba, Tencent, NetEase(Youdao), etc.

2. Installation & Tutorials:

Examples:

>>>import translators as ts

>>> ts.google('Hello,World!', 'en', 'zh')
'你好,世界!'

>>>ts.youdao('再见,世界!', 'zh', 'ko')
'안녕, 세계야!'

>>>ts.tencent('Am happy', 'en', 'ar')
'أنا سعيد'

>>>ts.alibaba('Estoy muy mal.', 'es', 'en')
"I'm really bad."

3. License

Warning: Prohibition of Commercial Use !

This module is designed to help students and individuals with translation services.
For commercial use, please purchase API services from translation suppliers.

4. Dictionary of LANGUAGES:

LANGUAGES = {
    'af': 'afrikaans',
    'sq': 'albanian',
    'am': 'amharic',
    'ar': 'arabic',
    'hy': 'armenian',
    'az': 'azerbaijani',
    'eu': 'basque',
    'be': 'belarusian',
    'bn': 'bengali',
    'bs': 'bosnian',
    'bg': 'bulgarian',
    'ca': 'catalan',
    'ceb': 'cebuano',
    'ny': 'chichewa',
    'zh-CN': 'chinese (simplified)',
    'zh-TW': 'chinese (traditional)',
    'co': 'corsican',
    'hr': 'croatian',
    'cs': 'czech',
    'da': 'danish',
    'nl': 'dutch',
    'en': 'english',
    'eo': 'esperanto',
    'et': 'estonian',
    'tl': 'filipino',
    'fi': 'finnish',
    'fr': 'french',
    'fy': 'frisian',
    'gl': 'galician',
    'ka': 'georgian',
    'de': 'german',
    'el': 'greek',
    'gu': 'gujarati',
    'ht': 'haitian creole',
    'ha': 'hausa',
    'haw': 'hawaiian',
    'iw': 'hebrew',
    'hi': 'hindi',
    'hmn': 'hmong',
    'hu': 'hungarian',
    'is': 'icelandic',
    'ig': 'igbo',
    'id': 'indonesian',
    'ga': 'irish',
    'it': 'italian',
    'ja': 'japanese',
    'jw': 'javanese',
    'kn': 'kannada',
    'kk': 'kazakh',
    'km': 'khmer',
    'ko': 'korean',
    'ku': 'kurdish (kurmanji)',
    'ky': 'kyrgyz',
    'lo': 'lao',
    'la': 'latin',
    'lv': 'latvian',
    'lt': 'lithuanian',
    'lb': 'luxembourgish',
    'mk': 'macedonian',
    'mg': 'malagasy',
    'ms': 'malay',
    'ml': 'malayalam',
    'mt': 'maltese',
    'mi': 'maori',
    'mr': 'marathi',
    'mn': 'mongolian',
    'my': 'myanmar (burmese)',
    'ne': 'nepali',
    'no': 'norwegian',
    'ps': 'pashto',
    'fa': 'persian',
    'pl': 'polish',
    'pt': 'portuguese',
    'pa': 'punjabi',
    'ro': 'romanian',
    'ru': 'russian',
    'sm': 'samoan',
    'gd': 'scots gaelic',
    'sr': 'serbian',
    'st': 'sesotho',
    'sn': 'shona',
    'sd': 'sindhi',
    'si': 'sinhala',
    'sk': 'slovak',
    'sl': 'slovenian',
    'so': 'somali',
    'es': 'spanish',
    'su': 'sundanese',
    'sw': 'swahili',
    'sv': 'swedish',
    'tg': 'tajik',
    'ta': 'tamil',
    'te': 'telugu',
    'th': 'thai',
    'tr': 'turkish',
    'uk': 'ukrainian',
    'ur': 'urdu',
    'uz': 'uzbek',
    'vi': 'vietnamese',
    'cy': 'welsh',
    'xh': 'xhosa',
    'yi': 'yiddish',
    'yo': 'yoruba',
    'zu': 'zulu'
}

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

translators-4.2.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

translators-4.2.0-py3.7.egg (30.9 kB view details)

Uploaded Egg

File details

Details for the file translators-4.2.0.tar.gz.

File metadata

  • Download URL: translators-4.2.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for translators-4.2.0.tar.gz
Algorithm Hash digest
SHA256 ef1f1e8f4ba4b0dac008f465ad8c3f3d5ada0f0e943916d09bbb8fa00afb61c0
MD5 f7806a92cda4dc7af90f91f654a91325
BLAKE2b-256 fb69206e27c639b6064e1229bafea84cdc748bb03cf7ededb70cddc3f91b9331

See more details on using hashes here.

File details

Details for the file translators-4.2.0-py3.7.egg.

File metadata

  • Download URL: translators-4.2.0-py3.7.egg
  • Upload date:
  • Size: 30.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for translators-4.2.0-py3.7.egg
Algorithm Hash digest
SHA256 5cf51f60a86fea3eebc187d21594c4e0a64c888ced31bbe5d2ad44c25441e7ad
MD5 05bed601cc78a836bbaaf494d93e9b68
BLAKE2b-256 8f77f60098d5c15dcfd0bd8f36bffc0de7298f8f3d430c240e2876bdb06386ae

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