Skip to main content

A high-performance CLI tool to convert a code repository into a single, compressed, and encrypted image and back.

Project description

repo2img (CLI)

A Python tool to encode and decode full code repositories into a single PNG image. Supports optional AES-256 encryption.

Features

  • Encode full folders into a single .png file
  • Decode image back into original repo (exact structure)
  • Optional AES-256 encryption using password
  • Offline CLI utility

Installation

pip install -r requirements.txt

Encode

python main.py encode --path ./my_repo --out repo.png --encrypt --password mypass

Decode

python main.py decode --path repo.png --out ./restored_repo --password mypass

Project Structure

  • cli/: CLI argument handlers
  • core/: core logic (archive, crypto, encode/decode)
  • utils/: helpers for I/O, hashing
  • main.py: CLI entrypoint

Encryption

  • AES-256-GCM (with salt + password-derived key)
  • Ensure password is kept safe to recover the repo

Notes

  • Max repo size supported ~12GB (based on PNG pixel limits)
  • All encoding is lossless and fully reversible
  • Output image is not meant to be human-viewable

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

repo2img-1.0.3.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

repo2img-1.0.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file repo2img-1.0.3.tar.gz.

File metadata

  • Download URL: repo2img-1.0.3.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for repo2img-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1eeb98d2fd35410d9cace72a173276fd53d5d7d03ef1872a1145bc4939006b0f
MD5 75ae8d6d8d1355f415b8fc3ae4e6f7e6
BLAKE2b-256 e652824399115f0c8c0e3ac36a453a2fc2d856a77da7d2eba1377dea20e1edfb

See more details on using hashes here.

File details

Details for the file repo2img-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: repo2img-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for repo2img-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e260b456cfd51680fe2f1823878f8273479ad10b69b07f06a7ef37781faa0534
MD5 4847bd6e56d64bbf2bce7a264a7dd552
BLAKE2b-256 4e4c2267c8ff2b451236173714257f3adff3cc393b20a0c87859aa165213582d

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