Skip to content

dolphin2410-archive/napit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Napit

A naver Translate API Client

Other Languages

Installation

Napit, short for 'Naver API Translate' is a client programmed with python that allows you to easily access the naver papago translator api. You can install this project with pypi by running the command below.

pip install napit

Usage

from napit.ApiRequest import ApiRequest
from napit.Credentials import Credentials
from napit.Languages import Language

#Your API Credentials
credential = Credentials("CLIENT_ID", "CLIENT_SECRET")

# Translates 'Hello' from english to korean
print(ApiRequest.send(credential, Language.ENGLISH, Language.KOREAN, "Hello").text) 

Notice

I learned python in a day and this is my first project with python. There might be lots of errors 😂.