Skip to main content

deepler is a learning support tool that records the number of words that appear through DeepL. You can learn frequently used words efficiently.

Project description

deepler

deepler is a learning support tool that records the number of words that appear through DeepL. You can learn frequently used words efficiently.

# DeepL API Free Plan is here.
# https://www.deepl.com/pro#developer
$ export DEEPL_AUTH_KEY=<YOUR API KEY>

$ pip install deepler
$ deepler
usage: deepler [-h] {translate,hist,configure} ...
deepler: error: the following arguments are required: {translate,hist,configure}

Overview

# default configuration
$ deepler configure --show
{
  "ignores": [],
  "hist_file": "~/.config/deepler/counts.json",
  "min_length": 4,
  "source_lang": "EN",
  "target_lang": "JA",
  "count_lang": "EN"
}

$ deepler translate --text "deepler is a learning support tool that records the number of words that appear through DeepL."
input text(EN)
deepler is a learning support tool that records the number of words that appear through DeepL.

output text(JA)
deeplerは、DeepLを通じて出現した単語の数を記録する学習支援ツールです。

$ deepler hist
('that', 2)
('deepler', 1)
('learning', 1)
('support', 1)
('tool', 1)
('records', 1)
('number', 1)
('words', 1)
('appear', 1)
('through', 1)
('deepl', 1)

$ deepler translate --text "deepler is a learning support tool that records the number of words that appear through DeepL."
input text(EN)
deepler is a learning support tool that records the number of words that appear through DeepL.

output text(JA)
deeplerは、DeepLを通じて出現した単語の数を記録する学習支援ツールです。

$ poetry run deepler hist --num-words 3                                                                                                                                                                                                       [main]
('that', 4)
('deepler', 2)
('learning', 2)

$ poetry run deepler hist --min-count 3                                                                                                                                                                                                       [main]
('that', 4)

Currently, only space-separated languages can be counted.

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

deepler-0.1.2.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

deepler-0.1.2-py3-none-any.whl (7.3 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