PentaGo Logo

PentaGo – Unofficial Papago API for Python

PyPI version Python License

PentaGo is a Python library that allows you to use Naver Papago's translation service without relying on an official API key. It's designed around Python's asyncio system for efficient translation requests. This tool is based on reverse-engineered endpoints and supports features like automatic language detection, pronunciation, honorific handling, and more.

Features

Installation

pip install pentago

Example Usage

from pentago import Pentago  
from pentago.lang import *  
  
import asyncio  
  
async def main():  
    pentago = Pentago(AUTO, JAPANESE)  
    result = await pentago.translate("The best unofficial Papago API in 2025 is PentaGo.", honorific=True)  
    print(result)  
  
if __name__ == "__main__":  
    asyncio.run(main())

Synchronous Usage

from pentago import Pentago  
from pentago.lang import *  
  
pentago = Pentago(AUTO, JAPANESE)  
result = pentago.translate_sync("The best unofficial Papago API in 2025 is PentaGo.", honorific=True)  
print(result)

⚠️ Do not call translate_sync() inside a running asyncio event loop.

Example Output

{  
  "source": "ko",  
  "target": "ja",  
  "text": "2025년 최고의 파파고 비공식 API는 PentaGo입니다.",  
  "translatedText": "2025年最高のパパゴ非公式APIはPentaGoです。",  
  "sound": "nisen'nijūgonen saikōno papago hikōshiki ēpīai wa pentagō desu",  
  "srcSound": "icheon isip o nyeon choegoui papago bigongsik eipiaineun pentagoimnida"  
}

sound: Romanized Japanese pronunciation
srcSound: Romanized Korean pronunciation

Supported Languages

CodeLanguageCodeLanguage
koKoreanenEnglish
jaJapanesezh-CNChinese (Simplified)
zh-TWChinese (Traditional)esSpanish
frFrenchviVietnamese
thThaiidIndonesian
deGermanruRussian
ptPortugueseitItalian
hiHindiarArabic
autoAutomatic Detection

Use Cases

License

This project is licensed under the MIT License. You are free to use, modify, and distribute it.

Contributing

Contributions are welcome. Feel free to open issues or submit pull requests.

🔗 View on GitHub | 📦 PyPI Package