Skip to main content

Unified controller for NK Unicode numeral systems (nk10, nk20, nk30, nk100, nk200, nk256). Handles compact number encoding and decoding across multiple radices.

Project description

nku

Unified controller for NK Unicode numeral systems (nk10, nk20, nk30, nk100, nk200, nk256).
Handles compact number encoding and decoding across multiple radices.

Features

  • One interface to handle multiple Unicode numeral systems
  • Accepts base=10 or base=10000 equivalently (internally normalized ×1000)
  • Modules supported: nk10, nk20, nk30, nk100, nk200, nk256
  • Simplifies encoding logic across your projects

Example

from nku import encode, decode

n = 12345678901234567890

e1 = encode(n, base=10)       # nk10
e2 = encode(n, base=20)       # nk20
e3 = encode(n, base=100)      # nk100
e4 = encode(n, base=256)      # nk256

print(decode(e1, base=10))
print(decode(e2, base=20))
print(decode(e3, base=100))
print(decode(e4, base=256))

License

Custom License for nku (Unified Controller by blueradiance, 2025)

  • Free to use with attribution
  • Commercial use allowed
  • Do not rebrand or modify without notice

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

nku-1.0.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nku-1.0.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file nku-1.0.0.tar.gz.

File metadata

  • Download URL: nku-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for nku-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ecc1c66926f75e5c44b0b3ec5b89693642b8a9662707805616f737dc2be675f4
MD5 6e42a3be551c1ad05980618fdfe4e3e9
BLAKE2b-256 b8f9eab79a25fa95707e1239ee5bea444324a2ad76d3408a11d626eaf1b7401e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nku-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for nku-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2951f958719ada38e977800a6524c0e3bd15598970b4a835c57acc4eb27fc0c3
MD5 a264991b81d0e5de8ddc4159f268fdf0
BLAKE2b-256 9088b9c76e6ec9421febb8a982a65de8e947055419aab4bab93f538f362b85dd

See more details on using hashes here.

Supported by

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