Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mustafaozvardar/qr-project
This is a simple Python script to generate a QR code from a given URL. The generated QR code is saved as an SVG file.
https://github.com/mustafaozvardar/qr-project
python qrcode qrcode-generator
Last synced: about 22 hours ago
JSON representation
This is a simple Python script to generate a QR code from a given URL. The generated QR code is saved as an SVG file.
- Host: GitHub
- URL: https://github.com/mustafaozvardar/qr-project
- Owner: mustafaozvardar
- License: mit
- Created: 2023-12-17T11:29:51.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-12T21:06:21.000Z (5 months ago)
- Last Synced: 2024-11-11T15:16:01.956Z (2 months ago)
- Topics: python, qrcode, qrcode-generator
- Language: Python
- Homepage:
- Size: 4.88 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 is a simple Python script to generate a QR code from a given URL. The generated QR code is saved as an SVG file.
## Features ✨
- 🔗 Convert any URL into a QR code.
- 🖼️ Save the QR code as an SVG file.
- 🛠️ Easy to use and minimal setup.## Requirements 📦
To run this project, you'll need the following Python package installed:
- `pyqrcode`: A Python library to generate QR codes.
## Installation 🚀
Follow these steps to get the QR Code Generator up and running on your local machine.
1. **Clone the repository:**
```bash
git clone https://github.com/yourusername/qr-code-generator.git
cd qr-code-generator
```2. **Create a virtual environment (Optional but recommended):**
It's recommended to use a virtual environment to manage dependencies.
```bash
python3 -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```3. **Install dependencies:**
Install the necessary Python package:
```bash
pip install pyqrcode
```## Usage 🎨
1. Run the script:
```bash
python qrcode_generator.py
```2. Enter the URL when prompted:
```bash
Enter url to generate QR code: https://example.com
```3. The QR code will be generated and saved as `qrcode.svg` in the current directory.
## Example 📸
After running the script and entering a URL, you will get an SVG file with a QR code that looks like this: