123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- # @author: nandHyf
- import os
- # import Stateful
- import tomlkit, sqlite3
- import base64, datetime
- class client():
- def __init__(self) -> None:
- pass
- def get_config():
- pass
- def excute():
- pass
- def start():
- pass
- class User:
- def __init__(self, command, obj0=[], tag0=None, content=[], tag1=None, obj1=None) -> None:
- self.enableGlobalCommand = False
- self.command = command
- self.obj0 = obj0
- self.tag0 = tag0
- self.content = content
- self.tag1 = tag1
- self.obj1 = obj1
- def command_help():
- pass
- # try:
- # with open("help.txt","r") as help:
- # helpText = help.read()
- # if helpText == '':
- # print("could not find correct'help.txt'")
- # else:
- # print(helpText)
- # except:
- # print("could not find correct'help.txt'")
- # def command_exit():
- # exit()
- def command_export():
- pass
-
- def list_board():
- pass
-
- def list_event():
- pass
- def select_board():
- pass
- def Command_add():
- pass
- def Command_edit():
- pass
- def Command_move():
- pass
- def Command_delete():
- pass
- def Command_archive():
- pass
- def Command_back2home():
- pass
- def Command_get_info():
- pass
-
- def Command_get_num():
- pass
- class Board(User):
- pass
- class Event(User):
- pass
- class Trigger():
- def __init__(self, T_obj) -> None:
- self.T_obj = T_obj
- def generate_uid(T_obj):
- dt_now = str(datetime.datetime.now(datetime.timezone.utc))
- genText = str.encode(T_obj + "_" + dt_now)
- uid = base64.b64encode(genText)
-
- return(uid)
- # ----- functions binding command to model -----
- class WithTxt():
- pass
-
- class WithToml():
- pass
- class WithSqlite3():
- def __init__():
- pass
-
- def list_():
- pass
-
- def add_insert():
- pass
- def edit_update():
- pass
- def del_delete():
- pass
-
- con = sqlite3.connect("KanbanCore.db")
- cur = con.cursor
- # class WithMd():
- # class WithCsv():
- # class WithMongo():
- if __name__ == "__main__":
-
- command = input()
|