commit 4ab86cea29cc045fb2c87986e9a37e7b3870b0dd Author: Philipp Wagner Date: Sun Nov 6 22:19:11 2022 +0100 first commit diff --git a/9bac9b85-da81-4458-9e89-2fe5fa4afaec.png b/9bac9b85-da81-4458-9e89-2fe5fa4afaec.png new file mode 100644 index 0000000..2460c85 Binary files /dev/null and b/9bac9b85-da81-4458-9e89-2fe5fa4afaec.png differ diff --git a/b4b5ce38-37ba-4bae-9454-42b3fbf9369a.png b/b4b5ce38-37ba-4bae-9454-42b3fbf9369a.png new file mode 100644 index 0000000..d58cdb4 Binary files /dev/null and b/b4b5ce38-37ba-4bae-9454-42b3fbf9369a.png differ diff --git a/d73a7703-bbfd-4089-83d8-8be2f0f10ed5.png b/d73a7703-bbfd-4089-83d8-8be2f0f10ed5.png new file mode 100644 index 0000000..7f73307 Binary files /dev/null and b/d73a7703-bbfd-4089-83d8-8be2f0f10ed5.png differ diff --git a/main.py b/main.py new file mode 100644 index 0000000..9bca5aa --- /dev/null +++ b/main.py @@ -0,0 +1,25 @@ +import uuid +import qrcode +import time +import os + +os.system("clear") +# Questionig to where to put the payment +amount=float(input("Please enter the amount which you like to send in EURO: ")) +receiver=input("Who is the receiver: ") +bic=input("Please Input the BIC of the receiver(optional): ") +iban=input("Please also input the IBAN of the receiver: ") +usecase=input("Please input what the money will be used for: ") +char=input("Please input the char reference-char(optional): ") +reference=input("Please input the reference-number(optional): ") + +# Processing +localtime1=time.localtime() +qrcodedata = ("BCD\n002\n1\nSCT\n%s\n%s\n%s\nEUR%s\n%s\n%s\n%s %s.%s.%s %s:%s:%s"%(bic,receiver,iban,amount,char,reference,usecase,localtime1.tm_mday,localtime1.tm_mon,localtime1.tm_year,localtime1.tm_hour,localtime1.tm_min,localtime1.tm_sec)) + +img = qrcode.make(qrcodedata) + +qruuid=uuid.uuid4() +img.save("%s.png"%(qruuid)) +os.system("clear") +print ("%s.png"%(qruuid)) \ No newline at end of file diff --git a/requirments.txt b/requirments.txt new file mode 100644 index 0000000..37b5d74 --- /dev/null +++ b/requirments.txt @@ -0,0 +1,3 @@ +qrcode +image +uuid \ No newline at end of file