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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: easytranslator-2024.6.20.tar.gz
  • Upload date:
  • Size: 20.7 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.20.tar.gz
Algorithm Hash digest
SHA256 84a5225cf415627e4794cc7e96b0239bed60a3f63de1f5d48aa82c2ea2dd1d73
MD5 2f1038cf640518176b0120035ed1fa99
BLAKE2b-256 f787df07cfbb7d87031a1513a9764eff03d6c4b8a630f3aac6a4a9f571a2cd48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for easytranslator-2024.6.20-py3-none-any.whl
Algorithm Hash digest
SHA256 b92c951f36b135129f46806a64eefe48a6e69b1aab83907b99ea03b11d5f6481
MD5 3bd4d2486138c2948c373ec14fa007a4
BLAKE2b-256 82bbff5e61ee9bb5a393aea640d7ef9b2b9636cb3e6b086267ff20fce3ba8ef2

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