Skip to main content

🗺️ mintrans - A translation API wrapper 🗺️

mintrans is a free API wrapper that utilizes Bing, DeepL, and Google Translate for translation purposes. 🤖

💡 How to use 💡

from mintrans import BingTranslator, DeepLTranslator, GoogleTranslator
from mintrans import RateLimitException

text = 'Hello World!'
from_lang = 'en'  
to_lang = 'fr'

# Bing Translator
bing_translator = BingTranslator()  
bing_translation = bing_translator.translate(text, from_lang, to_lang)
print(bing_translation)

# DeepL Translator  
deepl_translator = DeepLTranslator()
try:
	deepl_translation = deepl_translator.translate(text, from_lang, to_lang)
	print(deepl_translation)
except RateLimitException:
	print('Limit of DeepL Translator reached!')

# Google Translator
google_translator = GoogleTranslator()  
google_translation = google_translator.translate(text, from_lang, to_lang)
print(google_translation)

🔑 Features 🔑

  • Bing, DeepL and Google translators for more translation options!
  • Easy switching between translators.
  • Supports 100+ languages across translators. 🌍

🏆 Examples 🏆

text = 'This is a longer text to test the translation.'

bing_translation = bing_translator.translate(text, 'en', 'es') 

deepl_translation = deepl_translator.translate(text, 'en', 'de')

google_translation = google_translator.translate(text, 'en', 'fr')  

Metadata

Release files for mintrans 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mintrans 1.1.0
File Size Uploaded Provenance Actions
mintrans-1.1.0.tar.gz 5.4 kB Without provenance Details for mintrans-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mintrans 1.1.0
File Interpreter ABI Platform Actions
mintrans-1.1.0-py3-none-any.whl Python 3 none any Details for mintrans-1.1.0-py3-none-any.whl

Total release size: 12.6 kB

Release files / mintrans-1.1.0.tar.gz

Download URL mintrans-1.1.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3437fa4450c33d07ed78aad104eaafe0f541c06f0f21398aef1c5ca98724804d
BLAKE2b-256 checksum
How to use checksums
1c5744612e01c8b516fb59835a4bf76237dc9068f6ca47dcda658a8eecb21fb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Release files / mintrans-1.1.0-py3-none-any.whl

Download URL mintrans-1.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1fa0c3dd28709f9dda58f574891e27e11a2fba5739f9aac684fe28cc962c3fb
BLAKE2b-256 checksum
How to use checksums
20d0e45272adce8edd1c7307f404364f612f3831d4ead6235d7591537654326b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Security for mintrans 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page