Skip to content

AliHezarpisheh/qrcode-fastapi

Repository files navigation

FastAPI QR Code Generator

This FastAPI project allows you to dynamically generate QR codes by sending a POST request with the desired content.

Installation

  1. Clone the repository:

    git clone https://github.com/AliHezarpisheh/qrcode-fastapi.git
  2. Navigate to the project directory:

    cd qrcode-fastapi/
  3. Install dependencies using Poetry or pip:

    Using Poetry:

    poetry install

    Using pip (activate virtual environment if necessary):

    pip install -r requirements.txt

Usage

  1. Run the FastAPI server using Uvicorn:

    uvicorn main:app
  2. Once the server is running, you can make a POST request to /qrcode with the content parameter in the query string. For example:

    curl -X POST "http://localhost:8000/qrcode?content=https://example.com"

    This will generate a QR code with the content "https://example.com" and return the image.

About

FastAPI application dynamically generates QR codes based on user input.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages