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 (lob)

PyPI version License: GPL v3

Encode any file to a deterministic Library of Babel coordinate, and decode/run it.

Installation

git clone https://github.com/yourusername/libobsh.git
cd libobsh
./setup.sh
export PATH="$HOME/.local/bin:$PATH"

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: stored in a single Library page; .coord contains the page address.
  • Larger files: 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.

Requirements

  • Python 3.6+ (no external libraries).

License

GNU GPLv3

Credits

This software is based on the concept of the "Library of Babel" by Jorge Luis Borges and the technical implementation by Jonathan Basile (libraryofbabel.info). It also uses algorithmic ideas from the open‑source repository jrhea/library-of-babel. See CREDITS.md for details.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: libobsh-0.1.1.tar.gz
  • Upload date:
  • Size: 17.1 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.1.tar.gz
Algorithm Hash digest
SHA256 536b42c0ac35eee3b45ae35902894da4e62d5052d0049a581b6b0cd9cea02bf2
MD5 3fe411de23990770f4e02da8bfc2ac1e
BLAKE2b-256 3a7d7b0403649aef0301acafe306fd01b3df383d613569e85289baf7dda3e577

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libobsh-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 acaffff1bacc5d25a9ae5e955b45e48e1b91502e51bfc87f22c48375b859966f
MD5 71436342190a7c1d8c0f04a4309b6d07
BLAKE2b-256 dcfbd484f5af4d4b902d4fa481952b8ae24b88f997591235a129505d46794c29

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