Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imrandil/qr_code_generator_python
A QR code Generator with customization using python and qrcode and PIL library
https://github.com/imrandil/qr_code_generator_python
pil python qrcode qrcode-generator
Last synced: 25 days ago
JSON representation
A QR code Generator with customization using python and qrcode and PIL library
- Host: GitHub
- URL: https://github.com/imrandil/qr_code_generator_python
- Owner: IMRANDIL
- Created: 2024-04-07T13:40:37.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-07T13:50:10.000Z (10 months ago)
- Last Synced: 2024-11-08T08:51:07.827Z (3 months ago)
- Topics: pil, python, qrcode, qrcode-generator
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QR Code Generator
This Python script generates QR codes from input data. It uses the `qrcode` library to create the QR code images and the `Pillow` library to handle image processing.
## Installation
1. Make sure you have Python installed on your system.
2. Install the required libraries by running `pip install qrcode[pil]` in your terminal or command prompt.## Usage
![imrandil_github](https://github.com/IMRANDIL/QR_CODE_GENERATOR_PYTHON/assets/71559091/b88960cd-4cb8-4aba-9e84-193efbea8a67)
1. Clone this repository to your local machine.
2. Navigate to the directory containing the `customized_generate_qr.py` file.
3. Run the script using `python customized_generate_qr.py`.
4. Follow the prompts to enter the data to encode, filename to save the QR code, fill color, background color, box size, and border size.
5. After running the script, the specified QR code image will be generated in the same directory.## Customization
You can customize the QR code by modifying the input data and parameters passed to the `generateQR` function in the script. Here are the customizable parameters:
- Data to encode: This is the text or URL you want the QR code to represent.
- Filename: Name of the file to save the QR code image. Default is `qr_code.png`.
- Fill color: Color of the QR code modules (black by default).
- Background color: Color of the QR code background (white by default).
- Box size: Size of each QR code module (20 by default).
- Border size: Size of the QR code border (4 by default).## Dependencies
- qrcode
- Pillow (Python Imaging Library)## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Made with ❤️