You are browsing as a guest. Sign up (or log in) to start making projects!

QR Code Generator

  • 2 Devlogs
  • 4 Total hours

A simple Streamlit app to generate custom QR codes, preview them, download as PNG, and browse your generation history.

Open comments for this post

3h 13m 13s logged

Phase 1: QR Code Generation Completed

I have just finished setting up the core QR generation logic. This app now successfully runs by taking any text or URL, then processes it using qrcode and pillow, and in the web page it lets u to customize the colors and size before generation.


Next Phase 2: Building the History feature

So, next I am going to build a history feature based on browser sessions. The ideas is simple and clear is to keep track of all codes you have generated during the browser session. And can easily download them without regenerating them.

Phase 1: QR Code Generation Completed

I have just finished setting up the core QR generation logic. This app now successfully runs by taking any text or URL, then processes it using qrcode and pillow, and in the web page it lets u to customize the colors and size before generation.


Next Phase 2: Building the History feature

So, next I am going to build a history feature based on browser sessions. The ideas is simple and clear is to keep track of all codes you have generated during the browser session. And can easily download them without regenerating them.

Replying to @vedasm

1
9
Open comments for this post

43m 4s logged

🛠️ Building a QR Code Generator with Streamlit.

Hey everyone! I am currently working on a QR Code Generator - a simple, sleek Streamlit app that lets you generate custom QR codes, preview them instantly, download them as PNGs, and even keep track of your generation history.

To make sure the app runs smoothly and scales nicely, I have mapped out the system architecture.

📐 System Architecture:

  • User Interface (Streamlit): The frontend is responsible for the input form, which allows users to personalize their text/URL, colors, and sizes. It also contains the preview/download section and the history panel.
  • QR Generation Logic (qrcode): This server-side component receives the user’s inputs and constructs the basic QR matrix.
  • Image Processing (Pillow): Works with the basic matrix and converts it into a neat, downloadable PNG image.
  • Session State Management: By making use of Streamlit’s session state, the app keeps last_result (for immediate preview and download) and makes it into a history list of all previously generated codes.

Features I am going to add:

  • Generate a QR code from any text or URL
  • Customize foreground and background colors
  • Adjustable box size and border
  • Download the generated QR code as a PNG
  • Session history of all codes generated, each individually downloadable

🛠️ Building a QR Code Generator with Streamlit.

Hey everyone! I am currently working on a QR Code Generator - a simple, sleek Streamlit app that lets you generate custom QR codes, preview them instantly, download them as PNGs, and even keep track of your generation history.

To make sure the app runs smoothly and scales nicely, I have mapped out the system architecture.

📐 System Architecture:

  • User Interface (Streamlit): The frontend is responsible for the input form, which allows users to personalize their text/URL, colors, and sizes. It also contains the preview/download section and the history panel.
  • QR Generation Logic (qrcode): This server-side component receives the user’s inputs and constructs the basic QR matrix.
  • Image Processing (Pillow): Works with the basic matrix and converts it into a neat, downloadable PNG image.
  • Session State Management: By making use of Streamlit’s session state, the app keeps last_result (for immediate preview and download) and makes it into a history list of all previously generated codes.

Features I am going to add:

  • Generate a QR code from any text or URL
  • Customize foreground and background colors
  • Adjustable box size and border
  • Download the generated QR code as a PNG
  • Session history of all codes generated, each individually downloadable

Replying to @vedasm

1
116

Followers

Loading…