Skip to main content

B10 (Base-4096) number system for space saving

Project description

B10 (Base-4096) Full Ecosystem

A high-performance implementation of the Base-4096 (B10) encoding system designed for extreme data compression of numbers and colors. This package provides a unified API for both numerical and color transformations across JavaScript and Python environments.

Features

  • Number Encoding: Convert large integers and floating-point numbers into compact B10 strings.
  • Color Compression: Compress standard 24-bit Hex colors (#RRGGBB) into just 2 B10 characters.
  • Cross-Platform: Consistent alphabet and logic across JavaScript (Browser/Node.js) and Python.
  • Zero Dependencies: Pure implementation using native language features.

Installation

JavaScript (NPM)

npm install b10-full

Python (Pip)

pip install full-b10

Quick Start

JavaScript

const b10Full = require('b10-full');

// Numbers
const encodedNum = b10Full.num.encode(2026);
console.log(b10Full.num.decode(encodedNum));

// Colors
const b10Color = b10Full.clr.fromHex("#FF5733");
console.log(b10Full.clr.toHex(b10Color)); // #FF5733
console.log(b10Full.clr.toRgb(b10Color)); // [255, 87, 51]

Python

from full_b10 import b10_full

# Numbers
encoded = b10_full.encode_num(12345.67)
decoded = b10_full.decode_num(encoded)

# Colors
b10_clr = b10_full.from_hex("#4A90E2")
hex_val = b10_full.to_hex(b10_clr)

CDN Usage

For browser direct integration:

<script src="https://cdn.jsdelivr.net/gh/oorraanngee/b10@main/b10-full.js"></script>

License

Cite: `https://base-4096.vercel.app/ Copyright (c) 2026 B10 Developer. Distributed under the MIT License.

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

full_b10-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

full_b10-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for full_b10-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cc34f8eb4a2a3f5eba4252a9361372a14b6f265e2c3cc719013263ce2bcebdc5
MD5 e0aea47f77f547ec98284f49ade1f7b6
BLAKE2b-256 72035ce5700fe77458bd10470f1a88be340cfbcb1cb10295c805bdd9091f8cdf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for full_b10-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 def9c60951bbd1c07b543945dccecb8dac2a5aea8c51829cc3bd6baeed4abe4d
MD5 7a6bf6845060ee4c406f03316d66d8e1
BLAKE2b-256 b0d13224a51519211642277298d366965660bd52073ff9affcf5456468ecc2e0

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