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
- ✅ 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)
Install via PyPI:
pip install pentago
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())
{
"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 pronunciationsrcSound
: Romanized Korean pronunciation
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-runningasyncio
event loop.
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 |
- 🧠 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
Licensed under the MIT License.
Contributions, issues, and pull requests are always welcome.