Skip to main content

Librería para traducir texto y PDFs entre inglés - español O Español - Ingles

Project description

📖 pytranslateinglish

🔄 Traducción de inglés a español y viceversa (texto y PDFs) con IA.

✨ Características

✅ Traducción entre inglés y español usando modelos de IA. ✅ Traduce texto o archivos PDF completos. ✅ Mantiene el formato del PDF al traducir.

🚀 Instalación

Instala la librería desde PyPI:

pip install pytranslateinglish

📝 Uso

📌 1. Traducción de texto

from pytranslateinglish import PyTranslateInglish

translator = PyTranslateInglish()
translated_text = translator.translate_text("Hello, how are you?", direction="en-es")
print(translated_text)  # "Hola, ¿cómo estás?"

📌 Parámetros:

text → Texto a traducir. direction → "en-es" (inglés → español) o "es-en" (español → inglés). 📌 2. Traducción de PDF

translator.translate_pdf("documento.pdf", "translated.pdf", direction="es-en") 📌 Parámetros:

input_pdf → Nombre del archivo PDF de entrada.
output_pdf → Nombre del PDF traducido.
direction → "en-es" o "es-en".

🛠 Requisitos

torch transformers pymupdf (Se instalan automáticamente con pip install pytranslateinglish 🎉)

Project details


Download files

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

Source Distribution

pytranslateinglish-0.1.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

pytranslateinglish-0.1.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file pytranslateinglish-0.1.2.tar.gz.

File metadata

  • Download URL: pytranslateinglish-0.1.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pytranslateinglish-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bc777cbd102d5c44eb307b39be727846d22fb7d8a972503e0e8b79225c7bf8b4
MD5 2354f60f11ca717be6d0f28e4b0504e2
BLAKE2b-256 44716ab11021eb9b4eae8f771bf8283c94d9950e214d017d149e2e7b5a59aeba

See more details on using hashes here.

File details

Details for the file pytranslateinglish-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pytranslateinglish-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cdbf50bb4d7419bf4ff5c05ae0b56201fc32cf541a8e824fa27c01683aaf3524
MD5 7ee9e468278c07b1deff0ae410f34757
BLAKE2b-256 e7a233c09c0a1d280d825434da1a0a2b32020d4d6bb117eaf99dec43c2c18421

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