Lulzx / pydeepl

A python API wrapper for deepl.com translating service.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pydeepl

A python API wrapper for deepl.com translating service.

Installation

pip install pydeepl

Getting Started

Python Version

Pydeepl was written for both python 2 and python 3.

Add pydeepl to your application

import pydeepl

sentence = 'I like turtles.'
from_language = 'EN'
to_language = 'ES'

translation = pydeepl.translate(sentence, to_language, from_lang=from_language)
print(translation)

# Using auto-detection
translation = pydeepl.translate(sentence, to_language)
print(translation)

Supported Languages

Pydeepl supports these languages:

Code Language
auto Auto detect
DE German
EN English
FR French
ES Spanish
IT Italian
NL Dutch
PL Polish
Note that auto detection only is possible for the source language.

Disclaimer

DeepL is a product from DeepL GmbH. More info: deepl.com/publisher.html

This package has been heavily inspired by node-deepls and DeepLy.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A python API wrapper for deepl.com translating service.

License:MIT License


Languages

Language:Python 100.0%