Skip to content

This code takes user input for a URL and generates a QR code using the qrcode library in Python. The code then saves the generated QR code as a PNG image file. A message is displayed to inform the user that the QR code has been generated and saved locally. This code can be useful for generating QR codes for various purposes i.e sharing information.

Notifications You must be signed in to change notification settings

AnjumShehzad7/QR-Code-Generator-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Setting Up the Project

  1. After cloning the project open it up in the Compiler.

  2. Press the combination of Ctrl+j or open the terminal from the upper "main menu" -> "Terminal" -> "new Terminal".

  3. First, make sure you have virtualenv installed. If not, install it using command:

    pip install virtualenv

  4. Create a new virtual environment with the name "virtual-environment" using this command:

    virtualenv virtual-environment

  5. This will create a new directory named 'virtual-environment' in your current directory, which will contain the virtual environment.

  6. Activate the virtual environment by the following command:

  7. virtual-environment\Scripts\activate

  8. After activating the virtual environment, you should see the name of the environment in your command prompt or terminal, indicating that you are now working within the virtual environment.

  9. Now Install the module using the command in the terminal:

    pip install qrcode

  10. After all the above steps run the file by running command:

    python main.py

  11. Then enter your URL to which you wanted to generate the QR Code.

  12. The ".png" file will be downloaded in the local directory where code is saved.

About

This code takes user input for a URL and generates a QR code using the qrcode library in Python. The code then saves the generated QR code as a PNG image file. A message is displayed to inform the user that the QR code has been generated and saved locally. This code can be useful for generating QR codes for various purposes i.e sharing information.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages