Skip to content

Klypse/PentaGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PentaGo Logo Orbitron Heading

PyPI version Python License


PentaGo – Unofficial Papago API for Python

PentaGo is an unofficial, resilient Python library that interacts with Naver Papago’s web-based translation service. It uses reverse-engineering techniques to automate translations without relying on an official API key, and is suitable for both lightweight tasks and scalable pipelines.

This library is ideal for developers seeking a programmable interface to Papago for bot integration, automation pipelines, language tools, and more.

Actively maintained and confirmed working as of 2025


🚀 Features

  • ✅ Access Papago without official API keys
  • ⚡ Built with native Python asyncio support
  • 🌍 Supports 16+ languages, including Korean, English, Japanese, and Chinese
  • 🔁 Automatic language detection
  • 💬 Returns pronunciation, honorific forms, and dictionary-level details
  • 🧱 Stable key regeneration for dynamic request headers (resilient to changes)

📦 Installation

Install via PyPI:

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())

🔍 Expected 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

🧱 Synchronous Usage

If you're working in a purely synchronous environment, you can call .translate_sync() instead:

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 an already-running asyncio event loop.


🌐 Supported Languages

Code Language Code Language
ko Korean en English
ja Japanese zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional) es Spanish
fr French vi Vietnamese
th Thai id Indonesian
de German ru Russian
pt Portuguese it Italian
hi Hindi ar Arabic
auto Automatic Detection

📂 Use Cases

  • 🧠 Build translation bots without API rate limits
  • 🤖 Integrate into automation tools or data pipelines
  • 📚 Enhance personal projects requiring multilingual support
  • 🔐 Work around commercial API constraints via resilient scraping

📄 License

Licensed under the MIT License.


🤝 Contributing

Contributions, issues, and pull requests are always welcome.

Releases

No releases published

Packages

No packages published

Languages