{"id":23785167,"url":"https://github.com/devluxor/qr-generator","last_synced_at":"2025-10-19T02:09:43.588Z","repository":{"id":269559655,"uuid":"907776763","full_name":"devluxor/qr-generator","owner":"devluxor","description":"A QR Code generator written in Python 🐍","archived":false,"fork":false,"pushed_at":"2024-12-24T11:53:56.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T13:15:02.258Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devluxor.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-12-24T11:09:28.000Z","updated_at":"2024-12-24T11:53:59.000Z","dependencies_parsed_at":"2024-12-24T12:53:33.376Z","dependency_job_id":"c858be98-3de7-40ee-87db-f694f0d3008c","html_url":"https://github.com/devluxor/qr-generator","commit_stats":null,"previous_names":["devluxor/qr-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devluxor%2Fqr-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devluxor%2Fqr-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devluxor%2Fqr-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devluxor%2Fqr-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devluxor","download_url":"https://codeload.github.com/devluxor/qr-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239995414,"owners_count":19731045,"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":"2025-01-01T13:15:04.171Z","updated_at":"2025-10-19T02:09:38.555Z","avatar_url":"https://github.com/devluxor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QR Code Generator\n\nThis is a simple Python program for generating QR codes using the `qrcode` library. Users can customize the size, padding, and colors of the QR code and save it as an image file.\n\n## Features\n\n- Accepts user input to encode in the QR code.\n- Allows customization of QR code size, padding, and colors.\n- Saves the QR code image in PNG format.\n- Provides default configurations for ease of use.\n\n## Prerequisites\n\n- Python 3.x installed.\n- `qrcode` library installed.\n- `Pillow` library installed.\n\n### Install Required Library\n\n```bash\npip install qrcode Pillow\n```\n\n## Usage\n\n1. Clone this repository or download the script.\n2. Run the script using the following command:\n\n```bash\npython main.py\n```\n\n3. Enter the text you want to encode in the QR code when prompted.\n4. The QR code image will be saved as `sample.png` in the same directory.\n\n## Configuration\n\nYou can modify the following default settings in the code:\n\n- **Size**: Controls the size of each box in the QR code grid. Default is `30`.\n- **Padding**: Sets the border thickness around the QR code. Default is `2`.\n- **Foreground Color**: The color of the QR code itself. Default is `#000` (black).\n- **Background Color**: The color of the QR code background. Default is `#FFF` (white).\n\nExample to change default configurations:\n\n```python\nDEFAULT_SIZE = 40\nDEFAULT_PADDING = 4\nDEFAULT_FG_COLOR = '#FF0000'  # Red\nDEFAULT_BG_COLOR = '#00FF00'  # Green\n```\n\n## Error Handling\n\nThe program includes error handling for common issues such as:\n\n- Invalid input data.\n- File I/O errors when saving the QR code image.\n\n## Example Output\n\nAfter running the script, a sample QR code image will be created in the directory with the name `sample.png`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevluxor%2Fqr-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevluxor%2Fqr-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevluxor%2Fqr-generator/lists"}