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.19.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

easytranslator-2024.6.19-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: easytranslator-2024.6.19.tar.gz
  • Upload date:
  • Size: 20.5 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.19.tar.gz
Algorithm Hash digest
SHA256 4c1b34b0f638d27d10d5a31db3901ea96e084db80d5929ebaf8cbf68f3bed8ed
MD5 cf76d713d8a386fdb2021462c5417701
BLAKE2b-256 bf4cd645a7728c51871c32a9d2b6e9783c5aa5951a44b3ae6ff4db0a396f8e8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for easytranslator-2024.6.19-py3-none-any.whl
Algorithm Hash digest
SHA256 dfb15ea1c11c66cbee592b8acb183466b7b9ecf095bf67bde132ed692ab94a65
MD5 2741c472aeee8abba993bbc931fabc56
BLAKE2b-256 46adc0af344de7ce8d35d7a34d5a4047b7c3843ba0fc3a4c9385a77452dd0270

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