-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.py
More file actions
37 lines (36 loc) · 1.27 KB
/
make.py
File metadata and controls
37 lines (36 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
try:
from termcolor import colored
except ModuleNotFoundError:
import os
os.system('pip install termcolor')
from termcolor import colored
try:
import qrcode
except ModuleNotFoundError:
import os
os.system('pip install qrcode')
import qrcode as q
import os
banner=colored('''
▄▄▄▄▄▄▄ ▄▄ ▄ ▄▄▄▄▄▄▄
█ ▄▄▄ █ ▄▀▄ █ █ ▄▄▄ █
█ ███ █ █▄▄█ █ ███ █
█▄▄▄▄▄█ ▄ ▄ ▄ █▄▄▄▄▄█
▄▄▄▄ ▄ ▄▀█▀▀▄ ▄▄▄ ▄
█▄██▄▀▄██▄▀▀ ▄ ▄▀ ▀▄█
▀▄█▄▄ ▀██▄ █▀▀ ▀▄
▄▄▄▄▄▄▄ ▀▄▄█▀▄ ▄▄ ▀ ▀
█ ▄▄▄ █ ▄ █▄▀ ▄▄██▄▀
█ ███ █ ██▄▄██ ▄ ▄▄▀
█▄▄▄▄▄█ █▄▄ ▀██▄ ▄ ▀
''','green')
imageformet=".png"
os.system('clear')
print(banner)
print(colored('Enter your ulr or msg ','yellow'))
usr=input(colored("=>",'red'))
print(colored("Enter yor save file name",'yellow'))
usr2=input(colored("=>",'red'))
qur = q.make(usr)
qur.save(usr2+imageformet)
print(colored("The qr code was saved in png format",'yellow'))