deepl_cli


Namedeepl_cli JSON
Version 0.8.0 PyPI version JSON
download
home_pagehttps://github.com/eggplants/deepl-cli
SummaryDeepL Translator CLI without API Key
upload_time2024-09-12 19:14:50
maintainerNone
docs_urlNone
authoreggplants
requires_python<4,>=3.8
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/workflows/release.yml>
) [![Test](
  <https://github.com/eggplants/deepl-cli/actions/workflows/test.yml/badge.svg>
  )](
  <https://github.com/eggplants/deepl-cli/actions/workflows/test.yml>
) [![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": null,
    "docs_url": null,
    "requires_python": "<4,>=3.8",
    "maintainer_email": null,
    "keywords": "deepl, translate, cli",
    "author": "eggplants",
    "author_email": "w10776e8w@yahoo.co.jp",
    "download_url": "https://files.pythonhosted.org/packages/30/a2/0585b188e543f49c34cf98fc47b8cf12cb2a55349cd97a9319fb19c415f6/deepl_cli-0.8.0.tar.gz",
    "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/workflows/release.yml>\n) [![Test](\n  <https://github.com/eggplants/deepl-cli/actions/workflows/test.yml/badge.svg>\n  )](\n  <https://github.com/eggplants/deepl-cli/actions/workflows/test.yml>\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.8.0",
    "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": "b93ad2557c0c7c1626bd21f16221a194ef23baf8d02ccccb5a0a664f959c9fe0",
                "md5": "eaf083f2beb9436fdcd6d9863e9081e1",
                "sha256": "d25c7dbec8bcecdc22b74fe1959efc9d7995aacf3cdf171cfd1d46dea850c3df"
            },
            "downloads": -1,
            "filename": "deepl_cli-0.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eaf083f2beb9436fdcd6d9863e9081e1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.8",
            "size": 7313,
            "upload_time": "2024-09-12T19:14:49",
            "upload_time_iso_8601": "2024-09-12T19:14:49.706461Z",
            "url": "https://files.pythonhosted.org/packages/b9/3a/d2557c0c7c1626bd21f16221a194ef23baf8d02ccccb5a0a664f959c9fe0/deepl_cli-0.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "30a20585b188e543f49c34cf98fc47b8cf12cb2a55349cd97a9319fb19c415f6",
                "md5": "45ec44f18c120eb3357a0eb1fcb3a7b1",
                "sha256": "b626e729dc86954fef4c5dc91b55634447cf393d455b6f8361d7f4a20f5864cf"
            },
            "downloads": -1,
            "filename": "deepl_cli-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "45ec44f18c120eb3357a0eb1fcb3a7b1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.8",
            "size": 6434,
            "upload_time": "2024-09-12T19:14:50",
            "upload_time_iso_8601": "2024-09-12T19:14:50.668675Z",
            "url": "https://files.pythonhosted.org/packages/30/a2/0585b188e543f49c34cf98fc47b8cf12cb2a55349cd97a9319fb19c415f6/deepl_cli-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-12 19:14:50",
    "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.34738s