Aplikasi web sederhana untuk menggenerate QR code yang langsung mengarah ke chat WhatsApp dengan pesan tertentu. Dibangun menggunakan Streamlit dan Python.
- 🔗 Generate QR code untuk WhatsApp link (wa.me)
- 📱 Input nomor WhatsApp dan pesan custom
- 💾 Simpan QR code ke database SQLite
- 📥 Download QR code dalam format PNG
- 📋 Kelola daftar QR code yang sudah dibuat
- 🗑️ Hapus QR code yang tidak diperlukan
- 🎯 Interface yang user-friendly
- Python 3.x
- Streamlit - Framework web app
- qrcode - Library untuk generate QR code
- Pillow (PIL) - Image processing
- SQLite3 - Database untuk menyimpan metadata
- Python 3.7 atau lebih baru
- pip (Python package manager)
-
Clone repository
git clone <repository-url> cd qr-generator
-
Buat virtual environment (opsional tapi disarankan)
python -m venv .venv source .venv/bin/activate # Linux/Mac # atau .venv\Scripts\activate # Windows
-
Install dependencies
pip install -r requirements.txt
-
Jalankan aplikasi
streamlit run app.py
-
Buka browser dan akses
http://localhost:8501 -
Generate QR Code:
- Isi Nama (identifier untuk QR code)
- Isi Placement (lokasi/tempat penggunaan)
- Masukkan Nomor WhatsApp (format: 6281234567890)
- Tulis Pesan yang akan dikirim
- Klik "Generate QR Code"
-
Download atau Kelola QR Code:
- QR code akan ditampilkan dan bisa didownload
- Lihat daftar QR code yang sudah dibuat di bagian bawah
- Download atau hapus QR code sesuai kebutuhan
qr-generator/
├── app.py # Main application file
├── requirements.txt # Python dependencies
├── README.md # Documentation
├── .gitignore # Git ignore rules
├── qrcodes.db # SQLite database (auto-generated)
├── qrcodes/ # Folder untuk menyimpan QR code images
└── .venv/ # Virtual environment (optional)
- Gunakan format internasional tanpa tanda + atau 0 di depan
- Contoh:
6281234567890untuk nomor Indonesia - Contoh:
601234567890untuk nomor Malaysia
- Aplikasi menggunakan SQLite database (
qrcodes.db) - Database akan dibuat otomatis saat pertama kali menjalankan aplikasi
- Struktur tabel:
CREATE TABLE qrcodes ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, placement TEXT, filename TEXT );
QR code yang dihasilkan akan mengarah ke URL seperti:
https://wa.me/6281234567890?text=Halo%20saya%20tertarik%20dengan%20produk%20Anda
- Fork repository ini
- Buat branch untuk fitur baru (
git checkout -b feature/AmazingFeature) - Commit perubahan (
git commit -m 'Add some AmazingFeature') - Push ke branch (
git push origin feature/AmazingFeature) - Buat Pull Request
Project ini bersifat open source. Silakan gunakan dan modifikasi sesuai kebutuhan.
Jika menemukan bug atau ingin request fitur baru, silakan buat issue di repository ini.
Untuk pertanyaan atau support, silakan hubungi [maintainer].
Happy Coding! 🎉