Skip to main content

B10 (Base-4096) number system for space saving

Project description

B10 Numerical System (Base-4096)

B10 is a high-density numerical encoding system that uses a custom 4096-character alphabet. It is designed to minimize data weight in text-based protocols by encoding 12 bits of data into a single UTF-8 character.

Key Features

  • High Density: Significant reduction in string length compared to decimal or Base64.
  • Float Support: Handles floating-point numbers with precision.
  • Cross-Platform: Fully compatible with the B10 JavaScript ecosystem.

Installation

pip install num_b10

Usage

from num_b10 import num_b10

# Encoding a number
encoded = num_b10.encode(2026)
print(encoded)  # Output: ꇍ

# Decoding back to a number
decoded = num_b10.decode(encoded)
print(decoded)  # Output: 2026

Technical Details

The system utilizes a specific range of Unicode characters to ensure a unique 4096-character alphabet, allowing each character to represent exactly 12 bits of information.

Support

Contact: support.base.4096@gmail.com

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

num_b10-1.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

num_b10-1.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: num_b10-1.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for num_b10-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2c9a05611a3d57b2eea2ff70f2dec64b70583697d272487e0677213b87f7ef29
MD5 4f0c3b61071d869b395347b443b24427
BLAKE2b-256 24e6cc814bc17b84feb6e819646738f66cdf764fee55c345c02d968cd70de31f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: num_b10-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for num_b10-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dbbe11eac9ad40ac5cd391e387665c3a91b70a12717e50aa18037e0a6aac50ad
MD5 8632c907aa71717fa0ac9a0b74090111
BLAKE2b-256 051cbd2b164396396129274f3c24f05388d2e29b45d34d485899f1f34db11883

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