Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shpaker/makeqr
CLI QR Code Generator
https://github.com/shpaker/makeqr
Last synced: 7 days ago
JSON representation
CLI QR Code Generator
- Host: GitHub
- URL: https://github.com/shpaker/makeqr
- Owner: shpaker
- Created: 2020-01-08T15:07:14.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-23T09:40:58.000Z (about 1 month ago)
- Last Synced: 2024-12-20T11:07:40.165Z (14 days ago)
- Language: Python
- Homepage:
- Size: 79.1 KB
- Stars: 25
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MakeQR
[![PyPI](https://img.shields.io/pypi/v/makeqr.svg)](https://pypi.python.org/pypi/makeqr)
[![PyPI](https://img.shields.io/pypi/dm/makeqr.svg)](https://pypi.python.org/pypi/makeqr)Generate WiFi Access QR Codes
# Installation
```bash
pip install makeqr -U
```## To test that installation was successful, try:
```bash
makeqr --help
```or
```bash
makeqr wifi --help
```# Usage example
## Command line command
### Command
```bash
makeqr -v wifi --password TopSecret --security wpa2 HomeWiFi
```### Output
```plain
__ __ _______ ___ _ _______ _______ ______
| |_| || _ || | | || || || _ |
| || |_| || |_| || ___|| _ || | ||
| || || _|| |___ | | | || |_||_
| || || |_ | ___|| |_| || __ |
| ||_|| || _ || _ || |___ | | | | | |
|_| |_||__| |__||___| |_||_______||____||_||___| |_|Model: {"ssid": "HomeWiFi", "security": "wpa2", "password": "TopSecret", "hidden": false}
Encoded: WIFI:S:HomeWiFi;P:TopSecret;T:WPA;;
██████████████ ████ ██████ ██ ██ ██████████████
██ ██ ██████████████ ██ ██ ██
██ ██████ ██ ██ ██ ██████ ██ ██████ ██
██ ██████ ██ ██████ ██ ██ ██ ██ ██████ ██
██ ██████ ██ ██ ████ ████ ██ ██████ ██
██ ██ ██ ████ ██████████ ██ ██
██████████████ ██ ██ ██ ██ ██ ██ ██ ██████████████
████ ██████ ██████
██ ██ ██████████ ██ ██████ ██ ██████████ ██
██ ██ ██ ████ ██████ ████████
██████████████ ████ ██ ████ ████ ██
██ ██ ████ ██ ██ ████ ████ ██ ██
██████ ██ ██ ██████████ ████ ████ ██
██ ██ ████ ██ ██ ██ ██████
████████ ████ ████████████ ████ ██ ██ ██
██ ██ ██ ██ ████████ ████ ██ ██
██ ██ ██ ████ ██ ██ ██ ██ ██
██ ██ ██ ████████ ██ ██ ██████████
██ ████ ████ ██ ████████ ██ ████ ██
██████ ████████████ ████████ ██ ██ ██
████ ██ ██ ██ ██████ ██████ ██████████ ██
██████ ██ ████ ██ ████ ██
██████████████ ██ ██████ ████ ██ ██ ██ ██
██ ██ ██ ██ ████ ██ ████
██ ██████ ██ ██ ██ ████ ██ ████████████████
██ ██████ ██ ██ ██ ████ ██ ██
██ ██████ ██ ██ ████████ ████
██ ██ ████ ████ ██ ██ ████ ████
██████████████ ████████ ██████████ ████████ ██ ██
```## Docker container
```bash
docker run ghcr.io/shpaker/makeqr:4.0.1 link https://t.me/shpaker
```## As python module
```python
from makeqr import MakeQR, QRMailToModelqr = MakeQR(
model = QRMailToModel(
to='[email protected]',
subject='Awesome subject!',
)
)
data: bytes = qr.make_image_data()
```