aiodeepl


Nameaiodeepl JSON
Version 0.1.5 PyPI version JSON
download
home_pagehttps://github.com/VermiIIi0n/aiodeepl
SummaryAsync API for DeepL Translator
upload_time2024-03-06 14:10:45
maintainer
docs_urlNone
authorVermiIIi0n
requires_python>=3.12,<4.0
licenseMIT
keywords utilities
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Asynchronous API for DeepL Translator

It also shipped with a simple command line interface.

## Installation

```bash
pip install -U aiodeepl
```

## API Usage

Documentation is yet complete. Apart from the following example, you can also refer to the `__main__.py` file for more examples.

```python
import aiodeepl

async def main():
    translator = aiohttp.Translator(api_key="123")
    result = await translator.translate("Hello, World!", target_lang="DE")
    print(result)
```

## CLI Usage

```bash
aiodeepl --api-key 123 -t "Hello, World!" -d DE
```

You can save `api_key` in config file or input it interactively for security.

To translate a document, you can use the following command:

```bash
aiodeepl --api-key 123 -f README.pdf -d DE -o README_DE.pdf
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/VermiIIi0n/aiodeepl",
    "name": "aiodeepl",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.12,<4.0",
    "maintainer_email": "",
    "keywords": "utilities",
    "author": "VermiIIi0n",
    "author_email": "dungeon.behind0t@icloud.com",
    "download_url": "https://files.pythonhosted.org/packages/37/4d/dc2da95e36c4b7d656c1dbb27282507806a0f87336a5cabab6b2141d21a1/aiodeepl-0.1.5.tar.gz",
    "platform": null,
    "description": "# Asynchronous API for DeepL Translator\n\nIt also shipped with a simple command line interface.\n\n## Installation\n\n```bash\npip install -U aiodeepl\n```\n\n## API Usage\n\nDocumentation is yet complete. Apart from the following example, you can also refer to the `__main__.py` file for more examples.\n\n```python\nimport aiodeepl\n\nasync def main():\n    translator = aiohttp.Translator(api_key=\"123\")\n    result = await translator.translate(\"Hello, World!\", target_lang=\"DE\")\n    print(result)\n```\n\n## CLI Usage\n\n```bash\naiodeepl --api-key 123 -t \"Hello, World!\" -d DE\n```\n\nYou can save `api_key` in config file or input it interactively for security.\n\nTo translate a document, you can use the following command:\n\n```bash\naiodeepl --api-key 123 -f README.pdf -d DE -o README_DE.pdf\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Async API for DeepL Translator",
    "version": "0.1.5",
    "project_urls": {
        "Homepage": "https://github.com/VermiIIi0n/aiodeepl",
        "Issues": "https://github.com/VermiIIi0n/aiodeepl/issues"
    },
    "split_keywords": [
        "utilities"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6804833647527af63848b52b0f854b595b41c96bee5be16f62fe00cd9bc7d6d1",
                "md5": "b71453cd76fca785bd136a54cf08aad7",
                "sha256": "b066c3e16faa1a59b59f03e0e266c8ae12a367ae6d2b2453b09c2deaee450af8"
            },
            "downloads": -1,
            "filename": "aiodeepl-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b71453cd76fca785bd136a54cf08aad7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12,<4.0",
            "size": 9777,
            "upload_time": "2024-03-06T14:10:41",
            "upload_time_iso_8601": "2024-03-06T14:10:41.879451Z",
            "url": "https://files.pythonhosted.org/packages/68/04/833647527af63848b52b0f854b595b41c96bee5be16f62fe00cd9bc7d6d1/aiodeepl-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "374ddc2da95e36c4b7d656c1dbb27282507806a0f87336a5cabab6b2141d21a1",
                "md5": "fd5f1018d0db3fce0f7786697d7d7000",
                "sha256": "3c9bf1ea95d61e8e3d4303303579ac9bb731252aad38a847657b433fee27176e"
            },
            "downloads": -1,
            "filename": "aiodeepl-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "fd5f1018d0db3fce0f7786697d7d7000",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12,<4.0",
            "size": 9680,
            "upload_time": "2024-03-06T14:10:45",
            "upload_time_iso_8601": "2024-03-06T14:10:45.489835Z",
            "url": "https://files.pythonhosted.org/packages/37/4d/dc2da95e36c4b7d656c1dbb27282507806a0f87336a5cabab6b2141d21a1/aiodeepl-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-06 14:10:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "VermiIIi0n",
    "github_project": "aiodeepl",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "aiodeepl"
}
        
Elapsed time: 0.19146s