20KN: Twenty Kilo Numeric System (CJK-based 20,000-radix encoding)
Project description
twentykn - 20KN: Twenty Kilo Numeric System (二萬進數)
A unicode-based 20,000-radix numeric encoding system using CJK Unified Ideographs (U+4E00 to U+9FFF).
Created by blueradiance (2025).
🌐 Description (EN)
twentykn is a compression-friendly, unicode-stable, reversible numeric encoding system using exactly 20,000 continuous CJK characters.
It provides high-density information representation and preserves sortability.
- Supports integer encoding/decoding
- Uses Unicode range U+4E00 to U+9FFF
- Each character represents a value from 0 to 19999
- Sortable by unicode string order
- Fully reversible and system-safe
🇰🇷 설명 (한국어)
twentykn은 유니코드 CJK 한자(U+4E00 ~ U+9FFF) 20,000자를 기반으로 한
고압축 숫자 인코딩 시스템입니다.
정렬 가능하며, 100% 복원이 가능한 한자 기반 이만진수(20진수 × 1,000) 체계입니다.
- 정수를 유니코드 한자로 압축
- 유니코드 순서 그대로 정렬 가능
- 모든 OS에서 출력 가능
- 정보량 약 log₂(20000) ≈ 14.3비트/문자
🇨🇳 中文说明 (简体中文)
twentykn 是一个基于 Unicode 的数字编码系统,使用 20,000 个连续的汉字字符(U+4E00 到 U+9FFF)。
它压缩效率高,可逆性强,字符排序即数字排序,适用于大规模数字存储与传输。
- 每个字符表示 0 ~ 19999 的值
- 使用 Unicode 汉字区段,几乎所有系统支持显示
- 支持整数编码/解码
- 保持可排序性与兼容性
🔧 Usage
from twentykn import encode, decode
n = 1234567890
s = encode(n)
restored = decode(s)
assert restored == n
📜 License
See LICENSE.txt for terms.
Author: blueradiance
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file twentykn-1.0.0.tar.gz.
File metadata
- Download URL: twentykn-1.0.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d96b8c9c7d46592bb1d1bae293239ad42981bb672dda81615cfeec3dec733cc
|
|
| MD5 |
a9c94fdb10735a0dd45a33ac63f39441
|
|
| BLAKE2b-256 |
15aa6e8e148444876c66f178c32f36327fefcada856c564b148f27bdc05bcac5
|
File details
Details for the file twentykn-1.0.0-py3-none-any.whl.
File metadata
- Download URL: twentykn-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04154ae0f0393df38b44a6e9de7dc62153c879e599e7b6ef2d454542d224b645
|
|
| MD5 |
11d11a7b460e943d6e643c479134f823
|
|
| BLAKE2b-256 |
a892864e22c6b02376e0390c4c96b7866cddf711c971b2c9472c3d035806a514
|