{"id":22367907,"url":"https://github.com/dridk/qrfontain","last_synced_at":"2025-03-26T16:11:23.970Z","repository":{"id":259760509,"uuid":"878928595","full_name":"dridk/qrfontain","owner":"dridk","description":"Transferring data through a sequence of QR codes using a fountain code.","archived":false,"fork":false,"pushed_at":"2024-10-28T23:10:10.000Z","size":16624,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T13:56:12.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dridk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-26T13:53:05.000Z","updated_at":"2024-10-29T09:35:15.000Z","dependencies_parsed_at":"2024-10-27T21:57:19.518Z","dependency_job_id":"337bb5c7-8a17-4dac-ade4-0969258f9922","html_url":"https://github.com/dridk/qrfontain","commit_stats":null,"previous_names":["dridk/qrfontain"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dridk%2Fqrfontain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dridk%2Fqrfontain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dridk%2Fqrfontain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dridk%2Fqrfontain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dridk","download_url":"https://codeload.github.com/dridk/qrfontain/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245689509,"owners_count":20656417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T18:25:05.943Z","updated_at":"2025-03-26T16:11:23.950Z","avatar_url":"https://github.com/dridk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qrfontain\nTransferring data through a sequence of QR codes using a fountain code.\n\nThis tool enables file transfers by generating multiple QR codes using \nthe [Luby Transform Code](https://en.wikipedia.org/wiki/Luby_transform_code) thanks to [anrosent/Lt-code](https://github.com/anrosent/LT-code).\nThis fountain code allows the receiver to scan the QR codes in any order while minimizing the amount of data required \nto retrieve the complete file.\n\n![](qrfontain.gif)\n\n\n## Installation \n\n```\ngit clone git@github.com:dridk/qrfontain\ncd qrfontain \npython -m virtualenv venv \npip install -e . \n\n```\n\n## Usage\n### Encode and Decode a stream of QR Code\n\nYou can stream data to QR Codes using a generator of PIL Images: \n\n```python\nimport qrfontain \n\nwith open(\"big.txt\", \"rb\") as file:\n\n  for image in qrfontain.data_to_qrcode(file):\n    # Display image \n    # show(image)  \n\n\n```\n\nYou can decode PIL images as follow : \n\n```python\nimport qrfontain \n\nwith open(\"output.txt\", \"wb\") as file:\n\n  # Get QR Code images \n  # images = Generator.. \n  data = qrfontain.data_from_qrcode(images)\n  file.write(data)\n\n```\n\nThere is a short hand to create a video with a sample of qrcode generated :\n\n### From python \n```python\n\nimport qrfontain \nqrfontain.create_video(\"big.txt\", \"big.webm\")\n\n```\n\n### From bash\n\n```bash\nqrfontain --input big.txt --output  big.webm\n\n```\n\n## Decode using a gui_receiver.py\n\nI made a GUI to extract animated QR codes from your desktop.      \nInstall Pyside6 ```pip install pyside6``` and  run ```python gui_receiver.py```\n\nCheck the video above: \n![Screencast](https://github.com/dridk/qrfontain/raw/refs/heads/main/gui_receiver.webm)\n\n\n## Similar projects \n- [https://github.com/digitalbazaar/qram](https://github.com/digitalbazaar/qram)\n- [https://github.com/divan/txqr](https://github.com/divan/txqr)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdridk%2Fqrfontain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdridk%2Fqrfontain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdridk%2Fqrfontain/lists"}