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
Metadata
Release files for twentykn 1.0.0
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 | Actions |
|---|---|---|---|---|
| twentykn-1.0.0.tar.gz | 3.3 kB | Without provenance | Details for twentykn-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| twentykn-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for twentykn-1.0.0-py3-none-any.whl |
Total release size: 7.0 kB
Release files / twentykn-1.0.0.tar.gz
| Download URL | twentykn-1.0.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d96b8c9c7d46592bb1d1bae293239ad42981bb672dda81615cfeec3dec733cc
|
|
BLAKE2b-256 checksum How to use checksums |
15aa6e8e148444876c66f178c32f36327fefcada856c564b148f27bdc05bcac5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / twentykn-1.0.0-py3-none-any.whl
| Download URL | twentykn-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04154ae0f0393df38b44a6e9de7dc62153c879e599e7b6ef2d454542d224b645
|
|
BLAKE2b-256 checksum How to use checksums |
a892864e22c6b02376e0390c4c96b7866cddf711c971b2c9472c3d035806a514
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for twentykn 1.0.0
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.