Ever needed to transfer or archive files without relying on traditional methods? Meet the Zip-to-QR Code Converter & Reassemblerβa high-performance Python solution that turns your zipped files into a series of QR codes, and effortlessly reassembles them back into their original form.
This Python project efficiently processes ZIP files, converting every file inside into QR codes wrapped with XML metadata. Each QR code holds up to 2048 characters of data, enabling secure and easy handling, even offline. The tool is versatile, handling both encoding (ZIP β QR codes) and decoding (QR codes β original files).
Download or Clone:
C:\qrvid
).Dependencies:
pip install -r requirements.txt
Verify Source:
C:\huggingface\gpt-2-master.zip
).qrvid/
βββ src/
β βββ zip_processor.py
β βββ qr_encoder.py
β βββ qr_decoder.py
β βββ file_assembler.py
β βββ xml_wrapper.py
β βββ utils.py
βββ images/ (generated QR codes)
βββ output/ (reconstructed files)
βββ temp/ (temporary files)
βββ encode.py
βββ decode.py
βββ requirements.txt
βββ config.yaml
βββ README.md
# Default encoding
python encode.py
# Custom ZIP and output location
python encode.py --input-zip "C:\path\file.zip" --output-dir "qr_codes"
# Adjust chunk size
python encode.py --chunk-size 1800
# Default decoding
python decode.py
# Custom directories
python decode.py --qr-dir "qr_codes" --output-dir "reconstructed_files"
# Enable integrity checks
python decode.py --verify-integrity
# Allow partial reconstruction
python decode.py --allow-partial --force-reconstruct
# Check QR integrity and identify issues
python decode.py --diagnose --qr-dir "images"
Customize your process by editing config.yaml
:
zip_path: "C:\\huggingface\\gpt-2-master.zip"
qr_output_directory: "images"
file_output_directory: "output"
max_chunk_size: 2048
qr_error_correction: "M" # Options: L, M, Q, H
qr_box_size: 10
qr_border: 4
preserve_structure: true
calculate_checksums: true
verify_integrity: true
Every QR code contains XML-formatted data:
<doc page="1" x="@tariusdamon" file="model.py" chunk="1" total="5">base64_encoded_content</doc>
@tariusdamon
)# Step 1: Encode ZIP to QR codes
python encode.py --input-zip "C:\huggingface\gpt-2-master.zip" --output-dir "qr_output"
# Step 2: Decode QR codes to files
python decode.py --qr-dir "qr_output" --output-dir "reconstructed"
--input-zip
, --output-dir
, --chunk-size
, --log-level
, --agent-mode
, --no-cleanup
--qr-dir
, --output-dir
, --verify-integrity
, --allow-partial
, --force-reconstruct
, --diagnose
qrcode[pil]
, opencv-python
, pyzbar
, Pillow
, PyYAML
, tqdm
, click
This project is licensed for Non-Commercial Use (personal, educational, research, open source, and small businesses under \$100k revenue).
For Commercial Use (corporations, revenue-generating applications), please contact for licensing terms, which include priority support, custom development, and legal compliance.
Feel free to contribute by submitting issues or enhancement requests. Commercial contributors may need to sign a Contributor License Agreement (CLA).
Explore the power and versatility of the Zip-to-QR Code Converter & Reassemblerβsecure, efficient, and ready for any task.