deepl-cli


Namedeepl-cli JSON
Version 0.5.1 PyPI version JSON
download
home_pagehttps://github.com/eggplants/deepl-cli
SummaryDeepL Translator CLI without API Key
upload_time2023-07-17 14:18:43
maintainer
docs_urlNone
authoreggplants
requires_python>=3.8,<4
licenseMIT
keywords deepl translate cli
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # deepl-cli

[![Release Package](
  <https://github.com/eggplants/deepl-cli/workflows/Release%20Package/badge.svg>
  )](
  <https://github.com/eggplants/deepl-cli/actions/runs/345738487>
) [![PyPI version](
  <https://badge.fury.io/py/deepl-cli.svg>
  )](
  <https://badge.fury.io/py/deepl-cli>
)

[![Maintainability](
  <https://api.codeclimate.com/v1/badges/a56630914df8538ca93b/maintainability>
  )](
  <https://codeclimate.com/github/eggplants/deepl-cli/maintainability>
) [![pre-commit.ci status](
  <https://results.pre-commit.ci/badge/github/eggplants/deepl-cli/master.svg>
  )](
  <https://results.pre-commit.ci/latest/github/eggplants/deepl-cli/master>
)

![image](https://user-images.githubusercontent.com/42153744/159145088-752decf7-8736-44c3-86aa-37fd0cee83df.png)

- [DeepL Translator](https://www.deepl.com/translator) CLI using [playwright-python](https://github.com/microsoft/playwright-python)

Note: *This project works without DeepL API key. With DeepL API, use [DeepLcom/deepl-python](https://github.com/DeepLcom/deepl-python)*

## Install

```bash
pip install deepl-cli
```

## Usage

## CLI

```shellsession
$ deepl -h
usage: deepl [-h] (-f PATH | -s) [--fr FR] --to TO [-t MS] [-v] [-V]

DeepL Translator CLI without API Key

optional arguments:
  -h, --help            show this help message and exit
  -f PATH, --file PATH  source text file to translate (default: None)
  -s, --stdin           read source text from stdin (default: False)
  --fr FR               input language (default: auto)
  --to TO               output language (default: None)
  -t MS, --timeout MS   timeout interval (default: 5000)
  -v, --verbose         make output verbose (default: False)
  -V, --version         show program's version number and exit

valid languages of `--fr`:
{'fi', 'cs', 'lv', 'nl', 'el', 'auto', 'ru', 'da', 'sv', 'it', 'uk', 'zh', 'ko', 'et', 'de', 'en', 'es', 'bg', 'lt', 'ja', 'pl', 'tr', 'id', 'sk', 'sl', 'hu', 'fr', 'ro', 'pt'}

valid languages of `--to`:
{'fi', 'cs', 'lv', 'nl', 'lt', 'ja', 'el', 'pl', 'ru', 'tr', 'da', 'sv', 'pt', 'id', 'it', 'sk', 'sl', 'hu', 'fr', 'uk', 'zh', 'ko', 'et', 'de', 'en', 'ro', 'es', 'bg'}
```

## Package

```python
from deepl import DeepLCLI

deepl = DeepLCLI("en", "ja")
deepl.translate("hello") #=> "こんにちわ"
```

If you use with asyncio, Use `DeepLCLI.translate_async`. See [examples/async.py](https://github.com/eggplants/deepl-cli/blob/master/examples/async.py).

## License

MIT

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/eggplants/deepl-cli",
    "name": "deepl-cli",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4",
    "maintainer_email": "",
    "keywords": "deepl,translate,cli",
    "author": "eggplants",
    "author_email": "w10776e8w@yahoo.co.jp",
    "download_url": "",
    "platform": null,
    "description": "# deepl-cli\n\n[![Release Package](\n  <https://github.com/eggplants/deepl-cli/workflows/Release%20Package/badge.svg>\n  )](\n  <https://github.com/eggplants/deepl-cli/actions/runs/345738487>\n) [![PyPI version](\n  <https://badge.fury.io/py/deepl-cli.svg>\n  )](\n  <https://badge.fury.io/py/deepl-cli>\n)\n\n[![Maintainability](\n  <https://api.codeclimate.com/v1/badges/a56630914df8538ca93b/maintainability>\n  )](\n  <https://codeclimate.com/github/eggplants/deepl-cli/maintainability>\n) [![pre-commit.ci status](\n  <https://results.pre-commit.ci/badge/github/eggplants/deepl-cli/master.svg>\n  )](\n  <https://results.pre-commit.ci/latest/github/eggplants/deepl-cli/master>\n)\n\n![image](https://user-images.githubusercontent.com/42153744/159145088-752decf7-8736-44c3-86aa-37fd0cee83df.png)\n\n- [DeepL Translator](https://www.deepl.com/translator) CLI using [playwright-python](https://github.com/microsoft/playwright-python)\n\nNote: *This project works without DeepL API key. With DeepL API, use [DeepLcom/deepl-python](https://github.com/DeepLcom/deepl-python)*\n\n## Install\n\n```bash\npip install deepl-cli\n```\n\n## Usage\n\n## CLI\n\n```shellsession\n$ deepl -h\nusage: deepl [-h] (-f PATH | -s) [--fr FR] --to TO [-t MS] [-v] [-V]\n\nDeepL Translator CLI without API Key\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -f PATH, --file PATH  source text file to translate (default: None)\n  -s, --stdin           read source text from stdin (default: False)\n  --fr FR               input language (default: auto)\n  --to TO               output language (default: None)\n  -t MS, --timeout MS   timeout interval (default: 5000)\n  -v, --verbose         make output verbose (default: False)\n  -V, --version         show program's version number and exit\n\nvalid languages of `--fr`:\n{'fi', 'cs', 'lv', 'nl', 'el', 'auto', 'ru', 'da', 'sv', 'it', 'uk', 'zh', 'ko', 'et', 'de', 'en', 'es', 'bg', 'lt', 'ja', 'pl', 'tr', 'id', 'sk', 'sl', 'hu', 'fr', 'ro', 'pt'}\n\nvalid languages of `--to`:\n{'fi', 'cs', 'lv', 'nl', 'lt', 'ja', 'el', 'pl', 'ru', 'tr', 'da', 'sv', 'pt', 'id', 'it', 'sk', 'sl', 'hu', 'fr', 'uk', 'zh', 'ko', 'et', 'de', 'en', 'ro', 'es', 'bg'}\n```\n\n## Package\n\n```python\nfrom deepl import DeepLCLI\n\ndeepl = DeepLCLI(\"en\", \"ja\")\ndeepl.translate(\"hello\") #=> \"\u3053\u3093\u306b\u3061\u308f\"\n```\n\nIf you use with asyncio, Use `DeepLCLI.translate_async`. See [examples/async.py](https://github.com/eggplants/deepl-cli/blob/master/examples/async.py).\n\n## License\n\nMIT\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "DeepL Translator CLI without API Key",
    "version": "0.5.1",
    "project_urls": {
        "Homepage": "https://github.com/eggplants/deepl-cli",
        "Repository": "https://github.com/eggplants/deepl-cli"
    },
    "split_keywords": [
        "deepl",
        "translate",
        "cli"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9398df1d6eb135ad9d165db161e98c00bce0b06e2cac2cd55a1d4d52b815d7eb",
                "md5": "9a1726183a728e83f34e29989cbcb1ce",
                "sha256": "fdb059572caf11a901485737413e8695fa90e9e09681410cca4d3469a8e36a79"
            },
            "downloads": -1,
            "filename": "deepl_cli-0.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9a1726183a728e83f34e29989cbcb1ce",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4",
            "size": 7155,
            "upload_time": "2023-07-17T14:18:43",
            "upload_time_iso_8601": "2023-07-17T14:18:43.979254Z",
            "url": "https://files.pythonhosted.org/packages/93/98/df1d6eb135ad9d165db161e98c00bce0b06e2cac2cd55a1d4d52b815d7eb/deepl_cli-0.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-17 14:18:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "eggplants",
    "github_project": "deepl-cli",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "deepl-cli"
}
        
Elapsed time: 0.09796s