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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05ef4fbedc845eee9a06c9506f966fd58b9e9f9e7eb93fca1fa0743a56215b61
|
|
| MD5 |
886a64b45e9197dc94778b3292a545ba
|
|
| BLAKE2b-256 |
b98f723a51d8e8f96f78900252a1ac24f4865858f3c6e8ed22e9917af12ee2e8
|
File details
Details for the file pytranslateinglish-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pytranslateinglish-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fd8c4cb6bba0102bb1f9c9dceba22bbf45bbbc92a1a67e37e1c50efbf8a9447
|
|
| MD5 |
8a632f445a32a0df6b5647fb0a2f65a5
|
|
| BLAKE2b-256 |
e59ac2470d92ffa683b6e5905066df7f054917190cd76e021b227d7e8ae1e157
|