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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytranslateinglish-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 05ef4fbedc845eee9a06c9506f966fd58b9e9f9e7eb93fca1fa0743a56215b61
MD5 886a64b45e9197dc94778b3292a545ba
BLAKE2b-256 b98f723a51d8e8f96f78900252a1ac24f4865858f3c6e8ed22e9917af12ee2e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytranslateinglish-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8fd8c4cb6bba0102bb1f9c9dceba22bbf45bbbc92a1a67e37e1c50efbf8a9447
MD5 8a632f445a32a0df6b5647fb0a2f65a5
BLAKE2b-256 e59ac2470d92ffa683b6e5905066df7f054917190cd76e021b227d7e8ae1e157

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