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) # '십이조 삼천사백십이억 삼천사백오십칠만 삼천칠백이십일'
Metadata
Release files for Num2Kor 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Num2Kor-1.0.3.tar.gz | 2.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Num2Kor-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.2 kB
Release files / Num2Kor-1.0.3.tar.gz
| Download URL | Num2Kor-1.0.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3d904e2ef82433854d52b2e28809fe965c50fdfc377f476e7e02ed17217561b
|
|
BLAKE2b-256 checksum How to use checksums |
4b09ed87fcc0c7f03b660f8172064d69f8da89782602f2fc4db12d9903aa8ada
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / Num2Kor-1.0.3-py3-none-any.whl
| Download URL | Num2Kor-1.0.3-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f74e51a5d310482a5bc557ed8136e15834216397c2b95c0a97623826486eec9
|
|
BLAKE2b-256 checksum How to use checksums |
e718252a9a8c3aa5a5607de788b643bcc2da30eb6a8f4d2ba4a69a7bcf6c81f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for Num2Kor 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.