Skip to main content

DeepL Translator CLI using Selenium

Project description

deepl-cli

Release Package PyPI version Maintainability

MIT License

Downloads Downloads Downloads

Install

# python >=3.5,<3.10
pip install deepl-cli

demo

Docker Image

# TRY
docker run -it --rm eggplanter/deepl-cli:0.1

Requirements

Usage

from CLI

$ deepl
SYNTAX:
    $ ... | deepl <from:lang>:<to:lang>
    $ deepl <from:lang>:<to:lang> << 'EOS'
      ...
      EOS
    $ deepl <from:lang>:<to:lang> <<< "..."
    $ deepl <from:lang>:<to:lang> < <filepath>
USAGE:
    $ echo Hello | deepl en:ja
    $ deepl :ru << 'EOS' # :ru is equivalent of auto:ru
      good morning!
      good night.
      EOS
    $ deepl fr:zh <<< "Mademoiselle"
    $ deepl de:pl < README_de.md
LANGUAGE CODES:
    <from:lang>: {auto it et nl el sv es sk sl cs da
                  de hu fi fr bg pl pt lv lt ro ru en zh ja}
    <to:lang>:   {it et nl el sv es sk sl cs da
                  de hu fi fr bg pl pt lv lt ro ru en zh ja}

from Package

from deepl import deepl

t = deepl.DeepLCLI(langs=('en', 'ja'))
t.translate('hello') #=> 'こんにちわ'

Lisence

MIT

Author

Haruna(eggplants)

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

deepl-cli-0.0.17.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

deepl_cli-0.0.17-py3-none-any.whl (5.9 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