{"id":16701006,"url":"https://github.com/mgedmin/qr2text","last_synced_at":"2025-04-10T04:04:46.926Z","repository":{"id":44883764,"uuid":"450088637","full_name":"mgedmin/qr2text","owner":"mgedmin","description":"Convert PyQRCode generated SVG to ASCII art","archived":false,"fork":false,"pushed_at":"2025-01-20T12:23:12.000Z","size":51,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T04:04:39.181Z","etag":null,"topics":["code","qr","svg"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/qr2text/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgedmin.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":null,"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":"2022-01-20T12:29:44.000Z","updated_at":"2025-03-26T00:34:58.000Z","dependencies_parsed_at":"2023-11-11T15:26:20.280Z","dependency_job_id":"6bc3c7a2-2219-4b6f-9cb0-0aa1de952bc9","html_url":"https://github.com/mgedmin/qr2text","commit_stats":{"total_commits":63,"total_committers":2,"mean_commits":31.5,"dds":"0.031746031746031744","last_synced_commit":"8a073fa810b2b4d75d5dee88bc28ee70a1874634"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgedmin%2Fqr2text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgedmin%2Fqr2text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgedmin%2Fqr2text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgedmin%2Fqr2text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgedmin","download_url":"https://codeload.github.com/mgedmin/qr2text/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154984,"owners_count":21056543,"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":["code","qr","svg"],"created_at":"2024-10-12T18:27:29.560Z","updated_at":"2025-04-10T04:04:46.902Z","avatar_url":"https://github.com/mgedmin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"qr2text\n=======\n\nConvert SVG images containing barcodes generated by PyQRCode to ASCII art,\nfor displaying in a terminal.\n\nBecause I'm a weird person who reads mail using Mutt over SSH in a terminal,\nand sometimes people send me QR codes for setting up TOTP authentication.\n\nExample::\n\n    $ python3\n    \u003e\u003e\u003e import pyqrcode\n    \u003e\u003e\u003e qr = pyqrcode.create('Hello world!')\n    \u003e\u003e\u003e qr.svg('hello.svg')\n\n    $ qr2text --white-background hello.svg\n\n\n        █▀▀▀▀▀█ ▀▄█▄▀▄▀▀▄ █▀▀▀▀▀█\n        █ ███ █ ▀ █▄  █   █ ███ █\n        █ ▀▀▀ █ ▀▀▄▄▀ ▀ ▄ █ ▀▀▀ █\n        ▀▀▀▀▀▀▀ █▄█▄▀▄▀▄▀ ▀▀▀▀▀▀▀\n         ▄▄▄▄▀▀ ▄▀▄▀██▀▀▀ ▀▄█▄▀ ▀\n        ▀▀▀▀▀▄▀▀▄▀▄▀▄ ▀▀█▀▄ ▀█ ██\n        ▄█▀▄▀ ▀▀▄  ▄██▄▀  ▀▄ █▄ ▀\n        █   ▄ ▀▀▀█▄  ██▀█▀██▀█▄▀█\n        ▀  ▀ ▀▀▀▄█▄▀▄█▀▀█▀▀▀███ ▄\n        █▀▀▀▀▀█ ▄  █▀▄▀██ ▀ █   █\n        █ ███ █  █▀▄ ▄  ▀▀█▀▀▀█▀▄\n        █ ▀▀▀ █  ▄▀▀▀▀  ▀ ▄█▄█  █\n        ▀▀▀▀▀▀▀  ▀ ▀▀  ▀▀ ▀ ▀   ▀\n\n\n    Hello world!\n\nNote: you may have to tell qr2text whether your terminal is black-on-white\n(--white-background) or white-on-black (--black-background).  Some QR code\nscanners don't care, but others will refuse to recognize inverted QR codes.\n\nNote: for QR code decoding to work you need to have libzbar installed on your\nsystem (e.g. ``sudo apt install libzbar0`` on Ubuntu).\n\n.. [[[cog\n..   import cog, subprocess, textwrap, os\n..   os.environ['COLUMNS'] = '80'  # consistent line wrapping\n..   helptext = subprocess.run(['qr2text', '--help'],\n..                             capture_output=True, text=True).stdout\n..   cog.outl('\\nSynopsis::\\n')\n..   cog.outl(textwrap.indent(helptext, '    '))\n..   # Run `tox -e cog-apply` to re-generate the README.\n.. ]]]\n\nSynopsis::\n\n    usage: qr2text [-h] [--version] [--black-background] [--white-background]\n                   [--big] [--trim] [--pad PAD] [--decode] [--no-decode]\n                   [--encode-text ENCODE_TEXT]\n                   [filename ...]\n\n    Convert PyQRCode SVG images to ASCII art\n\n    positional arguments:\n      filename              SVG file with the QR code (use - for stdin)\n\n    options:\n      -h, --help            show this help message and exit\n      --version             show program's version number and exit\n      --black-background    terminal is white on black (default)\n      --white-background, --invert\n                            terminal is black on white\n      --big                 use full unicode blocks instead of half blocks\n      --trim                remove empty border\n      --pad PAD             pad with empty border\n      --decode              decode the QR codes (default if libzbar is available)\n      --no-decode           don't decode the QR codes\n      --encode-text ENCODE_TEXT\n                            generate a QR code with given text\n\n.. [[[end]]]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgedmin%2Fqr2text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgedmin%2Fqr2text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgedmin%2Fqr2text/lists"}