Python Prompts Free Prompt

Python Script to Generate QR Codes

Write a Python script to generate QR codes from text or URLs
☆ Save
Prompt
You are a Python developer. Write a script that generates QR codes from user input. Use the qrcode library. The script must: 1) Accept text or URL as command-line argument, 2) Generate a QR code image, 3) Allow customization: size, error correction, colors, 4) Save the image to a file, 5) Provide an option to decode a QR code from an image, 6) Handle batch processing from a file, 7) Include a simple GUI using tkinter (optional). Add comments and a README.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.