Skip to main content

Library of Babel tools: encode any file to a deterministic coordinate, decode, and run scripts

Project description

Library of Babel Tools (libobsh)

[PyPI version] (https://badge.fury.io/py/libobsh) [License: GPL v3] (https://img.shields.io/badge/License-GPLv3-blue.svg)

Proof of Concept

This tool is primarily for learning and skill improvement. It is functional for small data but has limited practical application due to coordinate size overhead. See "Limitations" below.

Installation

pip install libobsh

Usage

  • Encode a file (any size): lob-encode myfile Creates myfile.coord

  • Decode a coordinate back to a file: lob-decode myfile.coord restored

  • Run a bash script directly from its coordinate: lob-run myfile.coord

How it works

  • Files <= 3200 bytes are stored in a single Library page; the .coord contains the page address.
  • Larger files are split into 3200‑byte pages; a manifest (JSON) is stored in the Library, and the .coord contains the manifest address.
  • The decoder automatically detects whether the coordinate points to a manifest or raw data.

Limitations

Proof of concept / educational project This tool is a personal exploration of the Library of Babel concept and deterministic encoding. It is fully functional for small files (e.g., shell scripts, configuration files, short text) but does not provide storage compression. On the contrary, a Library coordinate is always longer (about 1.55x) than the original data. For a 3200‑byte page, the coordinate is ≈4950 characters.

Practical use

  • Works well for tiny files (a few hundred bytes) where the coordinate length is still manageable.
  • Inefficient for large files (megabytes): the manifest (list of page coordinates) becomes larger than the original file.
  • Not suitable as a general‑purpose archiving or compression tool.

Educational value The primary purpose of this project is to learn about: - Base‑256 to base‑36 conversion and big‑integer arithmetic. - Deterministic addressing and recursion for splitting data. - Building a complete Python package from scratch (CLI, packaging, PyPI, documentation).

Use this tool to experiment, learn, or satisfy curiosity – not for production storage of large files.

Requirements

  • Python 3.6+ (no external libraries).

License

GNU General Public License v3.0

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

libobsh-0.1.3.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

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

libobsh-0.1.3-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file libobsh-0.1.3.tar.gz.

File metadata

  • Download URL: libobsh-0.1.3.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for libobsh-0.1.3.tar.gz
Algorithm Hash digest
SHA256 727efd25c9ff3abb4e952d9c65043f701bebba896fad68fb8bf4d056865d9a08
MD5 ab8eb304b02ba6f0e2e66de79dacf07f
BLAKE2b-256 d251688b6826c3af3d91c05f52a6fd9e559083eebe62c4202f01d2432dddcbff

See more details on using hashes here.

File details

Details for the file libobsh-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: libobsh-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for libobsh-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f35b12972e42db912206af259dddd8c194b1553f965c5ec0efb22f34de0c9173
MD5 703d55320bc705ba040d094805db775a
BLAKE2b-256 e90ddbdcbc328d9aa8b19ea4b4879a7572ca5f65c14b74915136f64e487036a4

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