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.
Internally normalizes base=X to X×1000 if X < 1000.

Example

from nku import encode, decode

n = 12345678901234567890

# All valid and interchangeable
print(encode(n, base=10))       # = nk10
print(encode(n, base=100))      # = nk100
print(encode(n, base=256))      # = nk256

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.1.tar.gz (1.2 MB 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.1-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nku-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1f9f2c55e3a78ffa31689fbf8aee0362b569132ba73f1e69c0cbef50be3d3c5c
MD5 a20bd7ccd620aea4ac010bf87a30105e
BLAKE2b-256 6f9498276dd9232612d6f6760d53f212da86746597217851273d3747db03feb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nku-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 323b90b6595c46876a55ada3d0f34833b641f7bff0f582f5aedff3dfba75091b
MD5 ccd7113fca3790911f5c71a7b5651472
BLAKE2b-256 39028794be91533bdf575c7e6914eb9cb5252e23fb1a57ba3f69ec7e0ec0a47b

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