Skip to main content

A Python package for reliable text translation using multiple free engines with automatic failover.

Project description

easytranslator

A Python package for reliable text translation using multiple free engines with automatic failover.

Currently, it supports the following languages:

  • English
  • Chinese Simplified
  • Chinese Traditional
  • Russian
  • Japanese
  • Korean
  • Czech
  • Danish
  • German
  • Spanish
  • French
  • Indonesian
  • Italian
  • Hungarian
  • Dutch
  • Polish
  • Portuguese
  • Swedish
  • Turkish

Installation

  1. Install: pip install easytranslator
  2. Translate a text:
    from easytranslator import EasyTranslator
    
    et = EasyTranslator()
    results = et.translate(
        text="Hello, world!", 
        dest_lang="Chinese Simplified", 
        src_lang="auto", 
        proxies=[])
    print(results) 
    '''
    {
        "translated_text": "你好,世界!",
        "status": "success",
    }
    '''
    
  3. More details can be found in the main.py file.

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

easytranslator-2024.6.12.2.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

easytranslator-2024.6.12.2-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file easytranslator-2024.6.12.2.tar.gz.

File metadata

  • Download URL: easytranslator-2024.6.12.2.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for easytranslator-2024.6.12.2.tar.gz
Algorithm Hash digest
SHA256 ab3b1b2a919679c9b3ebca617e9fbe4969b95576380e562b11ea6b64fedadd1e
MD5 e8b41be199fc64b919e4b7e303cba483
BLAKE2b-256 06ed46a3c3d369c7a9494bfa7b734de4dba4105a8d42eb8724bac4c94655f6bf

See more details on using hashes here.

File details

Details for the file easytranslator-2024.6.12.2-py3-none-any.whl.

File metadata

File hashes

Hashes for easytranslator-2024.6.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fc4978b1194201fb869f6484b254b10437805115cf83d00f1b71b57bbcbb7859
MD5 f9d0ef4a0a17be7349c1d6b803da8de3
BLAKE2b-256 df7de100bfdb0bc250e627b8ebb382a2f6f0ec586a00de8da55218e002af3855

See more details on using hashes here.

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