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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: easytranslator-2024.6.18.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.18.tar.gz
Algorithm Hash digest
SHA256 8ccf087651e76b50a9780e6781654b078a6d1341d3b87700dfeafaefe18eeee6
MD5 1420c960358c8b1ff09d3a35a05631ae
BLAKE2b-256 aa16d898d3969f270c65d67155559cbac551be88225b5056cfa80d55b6a43469

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for easytranslator-2024.6.18-py3-none-any.whl
Algorithm Hash digest
SHA256 c5ca43869aba05731dd1e326acc5ae136ce7e15884810518ce9fca15b632470f
MD5 dedb6fe59b37f511c698c16892f9e018
BLAKE2b-256 54239c73de5c32a5b6c9ed9e8c38b642165fc231a8f7bc7e3caa46b2c931a873

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