Skip to main content

Unofficial free DeepL translator client (No auth)

Project description

# free-deepl-translator

Unofficial free DeepL translator client for Python.

This package lets you translate text using DeepL without requiring an API key, by mimicking the web client protocol.

you can install it with this command : pip install free-deepl-translator

## 🚀 Exemple

import free_deepl_translator as deepl

deepl_instance = deepl.Deepl()

deepl_instance.Session() # Create an deepl Session

print("Session created")

translated_text = deepl_instance.Translate("How are you ?", target_lang = "fr")

if (translated_text["status"] == 0):

  print(f"Translated text : {translated_text['text']}")

  second_translated_text = deepl_instance.Translate("Je vais bien, merci", target_lang = "en", source_lang = "fr")

  if (second_translated_text["status"] == 0):

  print(f"Translated text : {second_translated_text['text']}")

  else:

  print(f"Error : {second_translated_text['msg']}")

else:

  print(f"Error : {translated_text['msg']}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

free_deepl_translator-1.0.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file free_deepl_translator-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for free_deepl_translator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f549c6588304cdf166a7ba989dee7f38076df5cb66e6a8f81a7d88258a02b287
MD5 65fe5e0fd1f9ee2d480bbb459bee1ebb
BLAKE2b-256 720a44a55ceb9c5566ef2669fd105c2288dedc1f04f549d5325f3f391a0806c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page