{"id":13702379,"url":"https://github.com/uinput/deeplator","last_synced_at":"2025-12-30T15:17:12.973Z","repository":{"id":62567411,"uuid":"101866329","full_name":"uinput/deeplator","owner":"uinput","description":"A Python library and application enabling translation via the DeepL translator available at deepl.com.","archived":true,"fork":false,"pushed_at":"2019-03-15T14:51:16.000Z","size":23,"stargazers_count":61,"open_issues_count":3,"forks_count":8,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-04T20:20:35.191Z","etag":null,"topics":["application","deepl","language","library","python","translation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uinput.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-30T10:00:49.000Z","updated_at":"2024-10-13T13:45:28.000Z","dependencies_parsed_at":"2022-11-03T16:30:33.973Z","dependency_job_id":null,"html_url":"https://github.com/uinput/deeplator","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uinput%2Fdeeplator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uinput%2Fdeeplator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uinput%2Fdeeplator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uinput%2Fdeeplator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uinput","download_url":"https://codeload.github.com/uinput/deeplator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252439502,"owners_count":21748018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["application","deepl","language","library","python","translation"],"created_at":"2024-08-02T21:00:34.838Z","updated_at":"2025-12-14T04:40:41.294Z","avatar_url":"https://github.com/uinput.png","language":"Python","funding_links":[],"categories":["Communication and Coordination","Coordination and Communication","Python"],"sub_categories":[],"readme":"# Deeplator\n\n## About\nDeeplator is a Python library and application enabling translation via the DeepL translator available at [deepl.com](https://www.deepl.com/translator).\n\nIn August 2017, DeepL released the DeepL translator.\nWith unprecedented translation quality, the DeepL translator sets a new standard in neural machine translation.\nCheck out [deepl.com](https://www.deepl.com/press.html) to get more information.\n\nCurrently, the supported languages include English, German, French, Spanish, Italian, Dutch and Polish.\n\nIf you're coding in PHP instead, [DeepLy](https://github.com/chriskonnertz/DeepLy) might be the right choice.\n\n## Application Usage\nUsing the application is straight forward.\nBasically, you just need to launch `deeplator.py`.\n\nThe `-l LANG` argument specifies the source and output languages.\nIf omitted, the application will ask for the languages interactively.\n`LANG` is the translation code in the format `AA-BB` where `AA` ist the source language code and `BB` is the output language code.\nSee the table below for all language codes.\nFor example, if you were to translate from English to German, the argument should be `-l EN-DE`.\nYou can also tell DeepL to automatically detect the language of the source text by supplying `AUTO` as the source language (e.g. `-l AUTO-DE`).\n\n|Language   |Code|\n|:----------|:--:|\n|German     |DE  |\n|English    |EN  |\n|Spanish    |ES  |\n|French     |FR  |\n|Italian    |IT  |\n|Dutch      |NL  |\n|Polish     |PL  |\n|Portuguese |PT  |\n|Russian    |RU  |\n\nYou can tell Deeplator to read input from a file using the `-f PATH` argument.\nWhen ommitted, Deeplator will read input from `stdin` instead.\nRemember to exit the multiline input with `Ctrl+D`.\n\n## Library Usage\nThe Deeplator library was written for Python 3.\n\n### Single Sentence\n```python\nfrom deeplator import Translator\n\nt = Translator(\"EN\", \"DE\")\nsentence = \"Hello world.\"\ntranslation = t.translate_sentence(sentence)\nprint(translation)\n```\n\n### Multiple Sentences\nIn case it is unknown if the input string consists of multiple sentences, use the `translate_sentences` method.\nIt will split the passed argument into sentences first and translate each sentence by its own.\n```python\nfrom deeplator import Translator\n\nt = Translator(\"EN\", \"DE\")\nparagraph = \"Hello world. DeepL is awesome.\"\ntranslations = t.translate_sentences(paragraph)\nprint(translations)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuinput%2Fdeeplator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuinput%2Fdeeplator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuinput%2Fdeeplator/lists"}