Skip to main content

Python pip module of Inko.js

Project description


Inko.py

Open Source Library, Converting Misspelled English characters into Korean letters (& vice versa)
Python implementation of Inko.js


Getting Started

Requirements

  • Python >= 3.6

Installation

python -m pip install inko-py

Usage

import inko
myInko = inko.Inko()

or

from inko import Inko
myInko = Inko()

영어(en) -> 한글(ko)

print(myInko.ko2en('ㅗ디ㅣㅐ 재깅!'))
# output: hello world!

한글(ko) -> 영어(en)

print(myInko.en2ko('dkssudgktpdy tptkd!'))
# output: 안녕하세요 세상!

Optional parameter

Key Type Value Description
allowDoubleConsonant Boolean True or False 복자음 설정여부

설정을 부여하는 방법은 아래의 세 가지 방법으로 지원합니다.

  1. 인스턴스 생성할 때 생성자의 인자로 설정 부여
from inko import Inko
myInko = Inko(allowDoubleConsonant=True)
  1. config 함수로 설정 부여
myInko.config(allowDoubleConsonant=True)
  1. en2ko 함수의 인자로 설정 부여
myInko.en2ko('rtrt', allowDoubleConsonant=True);
# output: ㄳㄳ
myInko.en2ko('rtrt', {allowDoubleConsonant=False);
# output: ㄱㅅㄱㅅ

Related

Contributing

이 오픈소스 프로젝트에 누구나 기여할 수 있습니다. 기여하고 싶은 분들은 이 레포지토리를 포크한 후 풀리퀘스트 요청해주세요!

License

Inko.py is released under the MIT License. See LICENSE file for details.

Credits

Thanks to Jon Jee(738), the original author of Inko.js

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inko-py-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

inko_py-1.0.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file inko-py-1.0.0.tar.gz.

File metadata

  • Download URL: inko-py-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for inko-py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c3a3cf65bac36af6a9c998b0e3b128d9c463459fdd0c5b60e7da129c4bbb0daf
MD5 f87feeb27eada74f6aba6fdb2102c20e
BLAKE2b-256 ed3abec14abf1d04df911f8d7e818df974b4ff8d6f78a155fabfd3923eff2df9

See more details on using hashes here.

File details

Details for the file inko_py-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: inko_py-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for inko_py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48ce1efe0e14879a50ea8220b043d1d6ed578fce8ea97c554e3d5afbf78185bd
MD5 1efa103c557393a8cf2a542cff2c940b
BLAKE2b-256 160ba15b9c33098d5866873022a45b37baf6662d698a5be2da8248821b8a59d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page