Skip to content

Commit

Permalink
refactor: Remove unused GUI, API, and WEB methods
Browse files Browse the repository at this point in the history
  • Loading branch information
onuratakan committed Aug 10, 2024
1 parent 00e3e87 commit fc86118
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions kot/core/kot.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,48 +346,8 @@ def database_list(folder: str = "") -> dict:
)
return database_index.dict()

@staticmethod
def gui(password, folder: str = ""): # pragma: no cover
try:
from kot.interfaces.gui_web import GUI # pragma: no cover

GUI(folder, password) # pragma: no cover
except ModuleNotFoundError:
console.log(
"[bold red]Error: GUI module not found. Please install the 'kot_gui' package."
) # pragma: no cover

@staticmethod
def api(host, port, log: bool = True): # pragma: no cover
try:
from kot.interfaces.api import API # pragma: no cover

console.log(
f"[bold white] KOT API initializing...",
)
API(host, port) # pragma: no cover
if log:
console.log(
f"[bold green] KOT API started ({host}, {port})",
)

except ModuleNotFoundError:
console.log(
"[bold red]Error: API module not found. Please install the 'kot_api' package."
) # pragma: no cover

@staticmethod
def web(
password, folder: str = "", host="localhost", port=5000
): # pragma: no cover
try:
from kot.interfaces.gui_web import WEB # pragma: no cover

WEB(folder, password, host, port) # pragma: no cover
except ModuleNotFoundError:
console.log(
"[bold red]Error: WEB module not found. Please install the 'kot_web' package."
) # pragma: no cover

@staticmethod
def database_delete(name: str, folder: str = "") -> bool:
Expand Down

0 comments on commit fc86118

Please sign in to comment.