All Projects → stunstunstun → Papago

stunstunstun / Papago

PAPAGO translate API with Python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Papago

Ehsyringe
E 站注射器,将中文翻译注入到 E 站体内
Stars: ✭ 759 (+4116.67%)
Mutual labels:  translation
Nginx Docs
Nginx 中文文档. Chinese translation of Nginx documentation.
Stars: ✭ 809 (+4394.44%)
Mutual labels:  translation
Kotlin Docs Zh
为了彻底掌握 Kotlin 语法,花了好几个月把官方文档翻译了一遍。
Stars: ✭ 837 (+4550%)
Mutual labels:  translation
System Design Primer Zh Tw
system-design-primer 繁體中文翻譯計畫。原作者:https://github.com/donnemartin/system-design-primer
Stars: ✭ 776 (+4211.11%)
Mutual labels:  translation
Fgmk
Retro RPG Game Maker
Stars: ✭ 794 (+4311.11%)
Mutual labels:  pypi
Fluent
Fluent — planning, spec and documentation
Stars: ✭ 818 (+4444.44%)
Mutual labels:  translation
Translation
The Translation component provides tools to internationalize your application.
Stars: ✭ 6,196 (+34322.22%)
Mutual labels:  translation
Miui8 Xml Japanese
Japanese MIUI 8 translation for xiaomi.eu
Stars: ✭ 16 (-11.11%)
Mutual labels:  translation
Django Rosetta
Rosetta is a Django application that eases the translation process of your Django projects
Stars: ✭ 806 (+4377.78%)
Mutual labels:  translation
Sen
Terminal User Interface for docker engine
Stars: ✭ 835 (+4538.89%)
Mutual labels:  pypi
Ailab
Experience, Learn and Code the latest breakthrough innovations with Microsoft AI
Stars: ✭ 6,896 (+38211.11%)
Mutual labels:  translation
Depth
Add some Depth to your fragments
Stars: ✭ 789 (+4283.33%)
Mutual labels:  translation
Git Repo
Git-Repo: CLI utility to manage git services from your workspace
Stars: ✭ 818 (+4444.44%)
Mutual labels:  pypi
Frenchkiss.js
The blazing fast lightweight internationalization (i18n) module for javascript
Stars: ✭ 776 (+4211.11%)
Mutual labels:  translation
Pandoc Latex Tip
A pandoc filter for adding tip in LaTeX
Stars: ✭ 7 (-61.11%)
Mutual labels:  pypi
React I18next
Internationalization for react done right. Using the i18next i18n ecosystem.
Stars: ✭ 6,942 (+38466.67%)
Mutual labels:  translation
Meshio
input/output for many mesh formats
Stars: ✭ 814 (+4422.22%)
Mutual labels:  pypi
Translatedjs
Internationalization and localization for JavaScript and Node.js
Stars: ✭ 17 (-5.56%)
Mutual labels:  translation
Xml Comp
Compare ANY markup documents.
Stars: ✭ 16 (-11.11%)
Mutual labels:  translation
Bilibili Evolved
强大的哔哩哔哩增强脚本
Stars: ✭ 10,368 (+57500%)
Mutual labels:  translation

Build Status

Papago API with Python

Unofficial Papago translation API with Python

Install

PyPI

$ pip install papago

Download and Installing manually

$ git clone https://github.com/stunstunstun/papago.git
$ cd papago
$ python setup.py install

Usage

Prerequisite

export CLIENT_ID='Your application's client id'
export CLIENT_SECRET='Your application's client secret'

Basic Usage

>>> from papago import Translator
>>> translator = Translator(os.environ['CLIENT_ID'], os.environ['CLIENT_SECRET'])
>>> response = translator.translate('안녕하세요')
>>> response = translator.translate('안녕하세요', 'ko', 'en')
>>> print(response)
Response(code=0, message=None, text=Hello., source=ko)

Test

$ virtualenv env
$ source env/bin/activate
$ pip install -r test-requirements.txt
$ python -m unittest

Languages Code

Code Desc
ko Korean
en English
ja Japanese
zh-CN Chinese
zh-TW Chinese traditional
es Spanish
fr French
vi Vietnamese
th Thai
id Indonesia

License

The MIT License (MIT)

Copyright (c) 2017 Minhyeok Jung

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].