jt-nti / qr-file-share

Share small files from an offline source using only a QR code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qr-file-share

Share small files from an offline source using only a QR code!

Why?

Imagine: You want to share a file with a friend nearby. You want to share from a source that does not have internet access - you just want to beam the file directly to your friend. This system lets you embed your file into a QR code that loads as an actual file download on your friend's device. Try it out here if you're feeling brave! The image that is downloaded by scanning this QR code is not hosted on any server, it only lives inside the QR code.

QR code with file embedded

Usage

To generate one of these QR codes, you can either:

  1. use the web app (this can be saved to your computer to run offline).
  2. use the included python script.
    1. Install the dependencies using pip install -r requirements.txt
    2. Run using python generate_pr.py input_file.txt. The QR code png will be generated with the same filename (+ .png) by default, or you can explicitly pass in an alternate output filename as a second argument.

About

Share small files from an offline source using only a QR code

License:MIT License


Languages

Language:HTML 82.4%Language:Python 17.6%