An open API service indexing awesome lists of open source software.

https://github.com/simatwa/qrcode-maker

Simple qrcode maker Flask API
https://github.com/simatwa/qrcode-maker

flask flask-api qrcode-maker

Last synced: 25 days ago
JSON representation

Simple qrcode maker Flask API

Awesome Lists containing this project

README

          



QRCode-maker


License
wakatime
Progress
Code-style

> Generate [QR-code](https://en.wikipedia.org/wiki/QR_code) for whatever text in [.png](https://en.wikipedia.org/wiki/PNG) format.

## Installation

You need to have [Python>=3.9](python.org) installed.

```
git clone https://github.com/Simatwa/qrcode-maker.git
cd qrcode-maker
pip install -r requirements.txt
```

## Usage
Fire up the server:

- `python -m flask run -p 8000`

The v1 endpoint will be available at `http://localhost:8000/v1`

### Parameters

- `data` - The text : ()
- `fit` - Ensures data fit more efficiently - `Boolean` *data type* : true
- `version` - QR code version - *number of modules/dots*. : (1)
- `box_size` - Size of each box : (10)
- `border` - Number of modules/dots around QR Code. : (5)
- `fill_color` - Self explanatory : (black)
- `back_color` - background color : (white)

## Conclusion

Have some fun with the api available [here](https://qrcode.pythonanywhere.com/v1?data=hello)

Kick off with this https://qrcode.pythonanywhere.com/v1?data=hello%20world&back_color=yellow&box_size=15&fill_color=blue