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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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