server skeleton done
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Torma Kristóf 2021-04-19 18:19:34 +02:00
parent cf46944e50
commit 893f264a5e
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
1 changed files with 25 additions and 0 deletions

View File

@ -1,2 +1,27 @@
#!/usr/bin/env python3
from executor import Executor
class Server:
def __init__(self, homeDirectory: str, sessionTimeout: int = 120, availableServer: bool = True,
currentDirectory: str = ""):
self.isAuthenticated = False
self.homeDirectory = homeDirectory
self.sessionTimeout = sessionTimeout
self.availableServer = availableServer
if currentDirectory == "":
self.currentDirectory = homeDirectory
else:
self.currentDirectory = currentDirectory
self.executor = Executor(homeDirectory)
def login(username: str, password: str) -> bool:
pass
def logout() -> None:
pass
def execute(command: str, firstParam: str, secondParam: str) -> bool:
pass