Skip to main content

Convert Number into Korean Words!

Project description

Num2Kor

Convert Number into Korean Words!
Inspired by huskyhoochu/num-to-korean

Download

pip install num2kor

Features

def numToKor(num: int, option: Format = Format.Null) -> str

class Format(Enum):
  Null, Spaced,
  Mixed, NoDots,
  Lingual, SpacedLingual

Example

from num2kor import *

numToKor(11_235_973_450, Format.Mixed)   # '112억 3,597만 3,450'

numToKor(1_123_492_832_717, Format.NoDots)   # '1조 1234억 9283만 2717'

numToKor(235_417_898_967_198, Format.Null)   # '이백삼십오조사천일백칠십팔억구천팔백구십육만칠천일백구십팔'

numToKor(2_459_873_487_316, Format.Spaced)   # '이조 사천오백구십팔억 칠천삼백사십팔만 칠천삼백일십육'

numToKor(11_231_123_111_121, Format.Lingual)   # '십일조이천삼백십일억이천삼백십일만천백이십일'

numToKor(12_341_234_573_721, Format.SpacedLingual)   # '십이조 삼천사백십이억 삼천사백오십칠만 삼천칠백이십일'

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

Num2Kor-1.0.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

Num2Kor-1.0.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file Num2Kor-1.0.3.tar.gz.

File metadata

  • Download URL: Num2Kor-1.0.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for Num2Kor-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e3d904e2ef82433854d52b2e28809fe965c50fdfc377f476e7e02ed17217561b
MD5 981ebef8da0f1f7ab9fda06cf02178ba
BLAKE2b-256 4b09ed87fcc0c7f03b660f8172064d69f8da89782602f2fc4db12d9903aa8ada

See more details on using hashes here.

File details

Details for the file Num2Kor-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: Num2Kor-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for Num2Kor-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6f74e51a5d310482a5bc557ed8136e15834216397c2b95c0a97623826486eec9
MD5 1daf4568147cd93d714c6376d5a8f02e
BLAKE2b-256 e718252a9a8c3aa5a5607de788b643bcc2da30eb6a8f4d2ba4a69a7bcf6c81f4

See more details on using hashes here.

Supported by

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