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.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for free_deepl_translator-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e9ba8c3f6a696a46b3291020cd042ca3155658afc3597f203d96f0d9f532e90
MD5 3b2ae6fb97a6475f2d5197cbec0c40dd
BLAKE2b-256 2669b444d5b1f47fd35fa34d153b6d762cbfc0cd8cad1a6f9cecb7423176dfa1

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