2022-06-11 18:25:10 +02:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
2022-06-11 21:50:01 +02:00
|
|
|
"""Pandora-Box is a USB scaning station based on Pandora."""
|
|
|
|
|
2022-06-11 18:25:10 +02:00
|
|
|
import curses
|
2022-06-12 00:26:34 +02:00
|
|
|
from curses import wrapper
|
2022-06-11 18:25:10 +02:00
|
|
|
import pypandora
|
2022-06-11 21:06:59 +02:00
|
|
|
import time
|
2022-06-11 18:25:10 +02:00
|
|
|
import sys
|
2022-06-11 20:06:30 +02:00
|
|
|
import pyudev
|
|
|
|
import psutil
|
2022-06-11 21:06:59 +02:00
|
|
|
import os
|
2022-06-12 11:14:38 +02:00
|
|
|
import logging
|
2022-06-11 20:06:30 +02:00
|
|
|
|
2022-06-11 21:06:59 +02:00
|
|
|
# -----------------------------------------------------------
|
|
|
|
# Config variables
|
|
|
|
# -----------------------------------------------------------
|
2022-06-11 20:06:30 +02:00
|
|
|
|
2022-06-11 21:06:59 +02:00
|
|
|
NO_SCAN = True
|
|
|
|
USB_AUTO_MOUNT = True
|
|
|
|
PANDORA_ROOT_URL = "http://127.0.0.1:6100"
|
2022-06-11 20:06:30 +02:00
|
|
|
|
2022-06-11 21:06:59 +02:00
|
|
|
# -----------------------------------------------------------
|
2022-06-11 18:25:10 +02:00
|
|
|
# Screen
|
2022-06-11 21:06:59 +02:00
|
|
|
# -----------------------------------------------------------
|
|
|
|
|
2022-06-11 21:50:01 +02:00
|
|
|
"""Initialise curses"""
|
|
|
|
def intit_curses():
|
2022-06-11 21:06:59 +02:00
|
|
|
global screen
|
|
|
|
screen = curses.initscr()
|
|
|
|
screen.keypad(1)
|
|
|
|
curses.curs_set(0)
|
|
|
|
curses.mousemask(curses.ALL_MOUSE_EVENTS | curses.REPORT_MOUSE_POSITION)
|
|
|
|
curses.flushinp()
|
|
|
|
curses.noecho()
|
2022-06-12 00:26:34 +02:00
|
|
|
# screen.clear()
|
2022-06-11 21:06:59 +02:00
|
|
|
|
2022-06-11 18:25:10 +02:00
|
|
|
|
2022-06-11 21:50:01 +02:00
|
|
|
"""Print status string"""
|
|
|
|
def print_status(strStatus):
|
2022-06-12 00:26:34 +02:00
|
|
|
global status_win
|
|
|
|
#status_win.addstr(1, 1, "Status : %-32s" % strStatus, curses.color_pair(2))
|
|
|
|
#status_win.refresh()
|
2022-06-11 21:06:59 +02:00
|
|
|
|
2022-06-12 00:26:34 +02:00
|
|
|
"""Print current action"""
|
|
|
|
def print_action(label):
|
|
|
|
global status_win
|
|
|
|
#status_win.addstr(3, 1, "Action : %-32s" % label, curses.color_pair(2))
|
|
|
|
#status_win.refresh()
|
2022-06-11 20:06:30 +02:00
|
|
|
|
2022-06-11 21:50:01 +02:00
|
|
|
"""Print FS Label"""
|
2022-06-12 00:26:34 +02:00
|
|
|
def print_fslabel(label):
|
|
|
|
global status_win
|
|
|
|
status_win.addstr(1, 1, "Partition : %-32s" % label, curses.color_pair(2))
|
|
|
|
status_win.refresh()
|
|
|
|
|
|
|
|
"""Print FS Size"""
|
|
|
|
def print_size(label):
|
|
|
|
global status_win
|
|
|
|
if label == 0.0:
|
|
|
|
status_win.addstr(2, 1, "Size : ",curses.color_pair(2))
|
|
|
|
else:
|
|
|
|
status_win.addstr(2, 1, "Size : %4.1fGB " % label,curses.color_pair(2))
|
2022-06-12 11:41:35 +02:00
|
|
|
logging.info("Size: %4.1fGB" % label)
|
2022-06-12 00:26:34 +02:00
|
|
|
status_win.refresh()
|
|
|
|
|
|
|
|
"""Print FS Used Size"""
|
|
|
|
def print_used(label):
|
|
|
|
global status_win
|
|
|
|
if label == 0.0:
|
|
|
|
status_win.addstr(3, 1, "Used : ",curses.color_pair(2))
|
|
|
|
else:
|
|
|
|
status_win.addstr(3, 1, "Used : %4.1fGB " % label,curses.color_pair(2))
|
2022-06-12 11:41:35 +02:00
|
|
|
logging.info("Used: %4.1fGB " % label)
|
2022-06-12 00:26:34 +02:00
|
|
|
status_win.refresh()
|
2022-06-11 21:06:59 +02:00
|
|
|
|
2022-06-12 00:26:34 +02:00
|
|
|
def print_fstype(label):
|
|
|
|
global status_win
|
2022-06-12 11:14:38 +02:00
|
|
|
status_win.addstr(1, 50, "Part / Type : %-32s" % label, curses.color_pair(2))
|
2022-06-12 00:26:34 +02:00
|
|
|
status_win.refresh()
|
2022-06-11 20:06:30 +02:00
|
|
|
|
2022-06-12 00:26:34 +02:00
|
|
|
def print_model(label):
|
|
|
|
global status_win
|
|
|
|
status_win.addstr(2, 50, "Model : %-32s" % label, curses.color_pair(2))
|
|
|
|
status_win.refresh()
|
2022-06-11 21:06:59 +02:00
|
|
|
|
2022-06-12 00:26:34 +02:00
|
|
|
def print_serial(label):
|
|
|
|
global status_win
|
|
|
|
status_win.addstr(3, 50, "Serial : %-32s" % label, curses.color_pair(2))
|
|
|
|
status_win.refresh()
|
2022-06-11 20:06:30 +02:00
|
|
|
|
2022-06-11 21:50:01 +02:00
|
|
|
"""Initialise progress bar"""
|
|
|
|
def init_bar():
|
2022-06-11 20:06:30 +02:00
|
|
|
global progress_win
|
2022-06-12 11:14:38 +02:00
|
|
|
progress_win = curses.newwin(3, 83, 17, 10)
|
2022-06-12 00:26:34 +02:00
|
|
|
# progress_win.border(1)
|
|
|
|
progress_win.refresh()
|
2022-06-11 21:06:59 +02:00
|
|
|
|
2022-06-11 21:50:01 +02:00
|
|
|
"""Update progress bar"""
|
|
|
|
def update_bar(progress):
|
2022-06-11 20:06:30 +02:00
|
|
|
global progress_win
|
2022-06-12 00:26:34 +02:00
|
|
|
if progress == 0:
|
2022-06-12 11:14:38 +02:00
|
|
|
progress_win.clear()
|
|
|
|
progress_win.border(0)
|
|
|
|
time.sleep(0)
|
2022-06-12 00:26:34 +02:00
|
|
|
else:
|
|
|
|
pos = (80 * progress) // 100
|
|
|
|
progress_win.addstr(1, pos+1, "#")
|
|
|
|
progress_win.refresh()
|
|
|
|
|
|
|
|
def init_log():
|
|
|
|
global log_win
|
2022-06-12 11:41:35 +02:00
|
|
|
global logging
|
2022-06-12 11:14:38 +02:00
|
|
|
log_win = curses.newwin(16, 101, 20, 0)
|
2022-06-12 00:26:34 +02:00
|
|
|
log_win.border(0)
|
2022-06-12 11:14:38 +02:00
|
|
|
logging.basicConfig(
|
|
|
|
filename='pandorabox.log',
|
|
|
|
level=logging.INFO,
|
|
|
|
format='%(asctime)s - %(message)s',
|
2022-06-12 11:41:35 +02:00
|
|
|
datefmt='%m/%d/%y %H:%M'
|
2022-06-12 11:14:38 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
logs = []
|
2022-06-12 00:26:34 +02:00
|
|
|
def log(str):
|
2022-06-12 11:41:35 +02:00
|
|
|
global log_win
|
|
|
|
global logging
|
2022-06-12 11:14:38 +02:00
|
|
|
logging.info(str)
|
|
|
|
logs.append(str)
|
2022-06-12 11:41:35 +02:00
|
|
|
if len(logs)>14:
|
2022-06-12 11:14:38 +02:00
|
|
|
logs.pop(0)
|
2022-06-12 11:41:35 +02:00
|
|
|
for i in range(min(14,len(logs))):
|
2022-06-12 11:14:38 +02:00
|
|
|
log_win.addstr(i+1,1,"%-80s"%logs[i],curses.color_pair(3))
|
|
|
|
log_win.refresh()
|
|
|
|
|
|
|
|
"""Splash screen"""
|
|
|
|
s = [None] * 10;
|
|
|
|
s[0] = " ██▓███ ▄▄▄ ███▄ █ ▓█████▄ ▒█████ ██▀███ ▄▄▄ ▄▄▄▄ ▒█████ ▒██ ██▒"
|
|
|
|
s[1] = " ▓██░ ██▒▒████▄ ██ ▀█ █ ▒██▀ ██▌▒██▒ ██▒▓██ ▒ ██▒▒████▄ ▓█████▄ ▒██▒ ██▒▒▒ █ █ ▒░"
|
|
|
|
s[2] = " ▓██░ ██▓▒▒██ ▀█▄ ▓██ ▀█ ██▒░██ █▌▒██░ ██▒▓██ ░▄█ ▒▒██ ▀█▄ ▒██▒ ▄██▒██░ ██▒░░ █ ░"
|
|
|
|
s[3] = " ▒██▄█▓▒ ▒░██▄▄▄▄██ ▓██▒ ▐▌██▒░▓█▄ ▌▒██ ██░▒██▀▀█▄ ░██▄▄▄▄██ ▒██░█▀ ▒██ ██░ ░ █ █ ▒ "
|
|
|
|
s[4] = " ▒██▒ ░ ░ ▓█ ▓██▒▒██░ ▓██░░▒████▓ ░ ████▓▒░░██▓ ▒██▒ ▓█ ▓██▒ ░▓█ ▀█▓░ ████▓▒░▒██▒ ▒██▒"
|
|
|
|
s[5] = " ▒▓▒░ ░ ░ ▒▒ ▓▒█░░ ▒░ ▒ ▒ ▒▒▓ ▒ ░ ▒░▒░▒░ ░ ▒▓ ░▒▓░ ▒▒ ▓▒█░ ░▒▓███▀▒░ ▒░▒░▒░ ▒▒ ░ ░▓ ░"
|
|
|
|
s[6] = " ░▒ ░ ▒ ▒▒ ░░ ░░ ░ ▒░ ░ ▒ ▒ ░ ▒ ▒░ ░▒ ░ ▒░ ▒ ▒▒ ░ ▒░▒ ░ ░ ▒ ▒░ ░░ ░▒ ░"
|
|
|
|
s[7] = " ░░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ░ ░ ▒ ░ ░ ░ ░ ░ ▒ ░ ░ "
|
|
|
|
s[8] = " ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ "
|
|
|
|
s[9] = " ░ ░ "
|
2022-06-11 21:06:59 +02:00
|
|
|
|
2022-06-12 00:26:34 +02:00
|
|
|
"""Print main screen"""
|
2022-06-11 21:50:01 +02:00
|
|
|
def print_screen():
|
2022-06-12 00:26:34 +02:00
|
|
|
global status_win
|
|
|
|
curses.init_pair(1, curses.COLOR_RED, curses.COLOR_BLACK)
|
|
|
|
curses.init_pair(2, curses.COLOR_BLUE, curses.COLOR_BLACK)
|
|
|
|
curses.init_pair(3, curses.COLOR_GREEN, curses.COLOR_BLACK)
|
|
|
|
title_win = curses.newwin(12, 101, 0, 0)
|
2022-06-12 11:14:38 +02:00
|
|
|
# title_win.border(0)
|
|
|
|
title_win.addstr(1, 1, s[0], curses.color_pair(1))
|
|
|
|
title_win.addstr(2, 1, s[1], curses.color_pair(1))
|
|
|
|
title_win.addstr(3, 1, s[2], curses.color_pair(1))
|
|
|
|
title_win.addstr(4, 1, s[3], curses.color_pair(1))
|
|
|
|
title_win.addstr(5, 1, s[4], curses.color_pair(1))
|
|
|
|
title_win.addstr(6, 1, s[5], curses.color_pair(1))
|
|
|
|
title_win.addstr(7, 1, s[6], curses.color_pair(1))
|
|
|
|
title_win.addstr(8, 1, s[7], curses.color_pair(1))
|
|
|
|
title_win.addstr(9, 1, s[8], curses.color_pair(1))
|
|
|
|
title_win.addstr(10, 1, s[9], curses.color_pair(1))
|
2022-06-12 00:26:34 +02:00
|
|
|
title_win.refresh()
|
|
|
|
status_win = curses.newwin(5, 101, 12, 0)
|
|
|
|
status_win.border(0)
|
2022-06-12 11:14:38 +02:00
|
|
|
# print_status("WAITING")
|
2022-06-11 21:50:01 +02:00
|
|
|
print_fslabel("")
|
2022-06-12 00:26:34 +02:00
|
|
|
print_size(0.0)
|
|
|
|
print_used(0.0)
|
|
|
|
print_fstype("")
|
2022-06-11 21:50:01 +02:00
|
|
|
print_action("")
|
2022-06-12 00:26:34 +02:00
|
|
|
print_model("")
|
|
|
|
print_serial("")
|
2022-06-11 21:50:01 +02:00
|
|
|
init_bar()
|
2022-06-12 00:26:34 +02:00
|
|
|
update_bar(0)
|
|
|
|
log('Ready.')
|
2022-06-11 18:25:10 +02:00
|
|
|
|
2022-06-12 00:26:34 +02:00
|
|
|
"""Closes curses"""
|
2022-06-11 21:50:01 +02:00
|
|
|
def end_curses():
|
2022-06-11 21:06:59 +02:00
|
|
|
curses.endwin()
|
|
|
|
curses.flushinp()
|
|
|
|
|
2022-06-11 18:25:10 +02:00
|
|
|
|
2022-06-11 21:06:59 +02:00
|
|
|
# -----------------------------------------------------------
|
2022-06-12 00:26:34 +02:00
|
|
|
# Device
|
2022-06-11 21:06:59 +02:00
|
|
|
# -----------------------------------------------------------
|
|
|
|
|
2022-06-12 00:26:34 +02:00
|
|
|
"""Mount USB device"""
|
2022-06-11 21:50:01 +02:00
|
|
|
def mount_device(device):
|
2022-06-11 20:06:30 +02:00
|
|
|
if USB_AUTO_MOUNT:
|
2022-06-11 21:06:59 +02:00
|
|
|
found = False
|
|
|
|
loop = 0
|
|
|
|
while (not found) and (loop < 10):
|
|
|
|
# need to sleep before devide is mounted
|
2022-06-11 18:25:10 +02:00
|
|
|
time.sleep(1)
|
|
|
|
for partition in psutil.disk_partitions():
|
2022-06-11 21:06:59 +02:00
|
|
|
if partition.device == device.device_node:
|
2022-06-12 11:14:38 +02:00
|
|
|
log("Device mounted at {}".format(partition.mountpoint))
|
2022-06-11 21:06:59 +02:00
|
|
|
found = True
|
|
|
|
loop += 1
|
2022-06-12 00:26:34 +02:00
|
|
|
if loop < 10:
|
|
|
|
return partition.mountpoint
|
|
|
|
else:
|
|
|
|
return ""
|
2022-06-11 18:25:10 +02:00
|
|
|
else:
|
2022-06-11 21:06:59 +02:00
|
|
|
res = os.system("pmount " + device.device_node + " box")
|
2022-06-12 00:26:34 +02:00
|
|
|
if res == 1:
|
|
|
|
return "/media/box"
|
|
|
|
else:
|
|
|
|
return ""
|
2022-06-12 11:14:38 +02:00
|
|
|
log("Device mounted at /media/box")
|
2022-06-11 21:06:59 +02:00
|
|
|
|
2022-06-11 18:25:10 +02:00
|
|
|
|
2022-06-12 00:26:34 +02:00
|
|
|
"""Unmount USB device"""
|
2022-06-11 21:50:01 +02:00
|
|
|
def umount_device():
|
2022-06-11 21:06:59 +02:00
|
|
|
if not USB_AUTO_MOUNT:
|
2022-06-12 11:14:38 +02:00
|
|
|
log("Unmounting device /media/box")
|
2022-06-11 21:06:59 +02:00
|
|
|
res = os.system("pumount /media/box")
|
|
|
|
# print("Return type: ", res)
|
|
|
|
|
2022-06-11 18:25:10 +02:00
|
|
|
|
2022-06-12 00:26:34 +02:00
|
|
|
"""Main device loop"""
|
2022-06-11 21:50:01 +02:00
|
|
|
def device_loop():
|
2022-06-11 21:06:59 +02:00
|
|
|
context = pyudev.Context()
|
|
|
|
monitor = pyudev.Monitor.from_netlink(context)
|
|
|
|
monitor.filter_by("block")
|
|
|
|
for device in iter(monitor.poll, None):
|
2022-06-11 21:50:01 +02:00
|
|
|
if device.get("ID_FS_USAGE") == "filesystem" and device.device_node[5:7] == "sd":
|
2022-06-11 21:06:59 +02:00
|
|
|
if device.action == "add":
|
2022-06-12 11:14:38 +02:00
|
|
|
log("Device inserted")
|
|
|
|
log_device_info(device)
|
2022-06-11 21:50:01 +02:00
|
|
|
# display device type
|
|
|
|
print_status("KEY INSERTED")
|
|
|
|
print_fslabel(device.get("ID_FS_LABEL"))
|
2022-06-12 11:14:38 +02:00
|
|
|
print_fstype(device.get("ID_PART_TABLE_TYPE") + " " + device.get("ID_FS_TYPE"))
|
2022-06-12 00:26:34 +02:00
|
|
|
print_model(device.get("ID_MODEL"))
|
|
|
|
print_serial(device.get("ID_SERIAL_SHORT"))
|
|
|
|
# Mount device
|
|
|
|
mount_point = mount_device(device)
|
2022-06-12 11:41:35 +02:00
|
|
|
try:
|
|
|
|
statvfs=os.statvfs(mount_point)
|
|
|
|
except:
|
|
|
|
log("Unexpected error: %-80s" % sys.exc_info()[0])
|
|
|
|
continue
|
2022-06-12 00:26:34 +02:00
|
|
|
print_size(statvfs.f_frsize * statvfs.f_blocks // 1024 // 1024 / 1024)
|
|
|
|
print_used(statvfs.f_frsize * (statvfs.f_blocks - statvfs.f_bfree) // 1024 // 1024 / 1024)
|
2022-06-12 11:14:38 +02:00
|
|
|
log("Scan started...........")
|
2022-06-12 00:26:34 +02:00
|
|
|
# fake scan
|
|
|
|
loading = 0
|
|
|
|
while loading < 100:
|
|
|
|
loading += 1
|
|
|
|
time.sleep(0.03)
|
|
|
|
update_bar(loading)
|
2022-06-12 11:14:38 +02:00
|
|
|
log("Scan done.")
|
2022-06-11 21:06:59 +02:00
|
|
|
|
|
|
|
if device.action == "remove":
|
2022-06-12 11:14:38 +02:00
|
|
|
log("Device removed")
|
|
|
|
#print_status("WAITING")
|
2022-06-11 21:50:01 +02:00
|
|
|
print_action("Device removed")
|
|
|
|
print_fslabel("")
|
2022-06-12 11:14:38 +02:00
|
|
|
print_size(0.0)
|
|
|
|
print_used(0.0)
|
|
|
|
print_fstype("")
|
|
|
|
print_action("")
|
|
|
|
print_model("")
|
|
|
|
print_serial("")
|
2022-06-11 21:50:01 +02:00
|
|
|
umount_device()
|
2022-06-12 00:26:34 +02:00
|
|
|
update_bar(0)
|
2022-06-11 21:06:59 +02:00
|
|
|
|
|
|
|
|
2022-06-12 11:14:38 +02:00
|
|
|
def log_device_info(dev):
|
|
|
|
logging.info("Device name: %s" % dev.get("DEVNAME"))
|
|
|
|
logging.info("Path id: %s" % dev.get("ID_PATH"))
|
|
|
|
logging.info("Bus system: %s" % dev.get("ID_BUS"))
|
|
|
|
logging.info("USB driver: %s" % dev.get("ID_USB_DRIVER"))
|
|
|
|
logging.info("Device type: %s" % dev.get("DEVTYPE"))
|
|
|
|
logging.info("Device usage: %s" % dev.get("ID_FS_USAGE"))
|
|
|
|
logging.info("Partition type: %s" % dev.get("ID_PART_TABLE_TYPE"))
|
|
|
|
logging.info("FS type: %s" % dev.get("ID_FS_TYPE"))
|
|
|
|
logging.info("Partition label: %s" % dev.get("ID_FS_LABEL"))
|
|
|
|
# logging.info("FS: %s" % dev.get("ID_FS_SYSTEM_ID"))
|
|
|
|
logging.info("Device model: %s" % dev.get("ID_MODEL"))
|
|
|
|
# logging.info('Usage: %s' % dev.get("ID_FS_USAGE"))
|
|
|
|
logging.info('Model: %s' % dev.get("ID_MODEL_ID"))
|
|
|
|
logging.info('Serial short: %s' % dev.get("ID_SERIAL_SHORT"))
|
|
|
|
logging.info('Serial: %s' % dev.get("ID_SERIAL"))
|
|
|
|
# logging.info(os.stat(dev.get("DEVNAME")))
|
|
|
|
|
2022-06-11 21:06:59 +02:00
|
|
|
# -----------------------------------------------------------
|
2022-06-11 18:25:10 +02:00
|
|
|
# pandora
|
2022-06-11 21:06:59 +02:00
|
|
|
# -----------------------------------------------------------
|
|
|
|
|
2022-06-11 18:25:10 +02:00
|
|
|
|
2022-06-12 00:26:34 +02:00
|
|
|
"""Scan a mount point with Pandora"""
|
2022-06-11 18:25:10 +02:00
|
|
|
def scan(mountPoint):
|
2022-06-11 21:06:59 +02:00
|
|
|
pp = pypandora.PyPandora(root_url=PANDORA_ROOT_URL)
|
|
|
|
|
|
|
|
for arg in sys.argv[1:]:
|
|
|
|
print(arg, end="", flush=True)
|
|
|
|
print(":", end="", flush=True)
|
|
|
|
|
|
|
|
res = pp.submit_from_disk(arg)
|
|
|
|
|
|
|
|
while True:
|
|
|
|
print(".", end="", flush=True)
|
|
|
|
time.sleep(1)
|
|
|
|
|
|
|
|
res = pp.task_status(res["taskId"])
|
2022-06-11 18:25:10 +02:00
|
|
|
|
2022-06-11 21:06:59 +02:00
|
|
|
if res["status"] != "WAITING":
|
|
|
|
break
|
2022-06-11 18:25:10 +02:00
|
|
|
|
2022-06-11 21:06:59 +02:00
|
|
|
print(res["status"])
|
2022-06-11 18:25:10 +02:00
|
|
|
|
|
|
|
|
2022-06-11 21:06:59 +02:00
|
|
|
# --------------------------------------
|
2022-06-11 18:25:10 +02:00
|
|
|
|
|
|
|
|
2022-06-12 00:26:34 +02:00
|
|
|
"""Main entry point"""
|
|
|
|
def main(stdscr):
|
2022-06-11 21:06:59 +02:00
|
|
|
try:
|
2022-06-12 11:41:35 +02:00
|
|
|
init_log()
|
2022-06-11 21:50:01 +02:00
|
|
|
intit_curses()
|
|
|
|
print_screen()
|
|
|
|
device_loop()
|
2022-06-12 11:41:35 +02:00
|
|
|
except:
|
|
|
|
logging.error("Unexpected error:", sys.exc_info()[0])
|
|
|
|
logging.error(traceback.format_exc())
|
2022-06-11 21:06:59 +02:00
|
|
|
finally:
|
2022-06-11 21:50:01 +02:00
|
|
|
end_curses()
|
2022-06-11 18:25:10 +02:00
|
|
|
|
2022-06-11 21:06:59 +02:00
|
|
|
# --------------------------------------
|
2022-06-11 18:25:10 +02:00
|
|
|
|
|
|
|
|
2022-06-11 21:06:59 +02:00
|
|
|
if __name__ == "__main__":
|
2022-06-12 00:26:34 +02:00
|
|
|
wrapper(main)
|