Complete refactor... Some issue...

This commit is contained in:
2025-05-11 02:09:24 +02:00
parent c763e76ec7
commit ebd8529c41
8 changed files with 431 additions and 179 deletions

32
commons.py Normal file
View File

@@ -0,0 +1,32 @@
from enum import Enum
class Status(Enum):
ENABLED = 1
DISABLED = 0
class Credential:
def __init__(self, username: str, password: str):
self._username: str = username
self._password: str = password
def __dict__(self):
return {
"username": self._username,
"password": self._password
}
@property
def username(self) -> str:
return self._username
@username.setter
def username(self, username: str):
self._username = username
@property
def password(self) -> str:
return self._password
@password.setter
def password(self, password: str):
self._password = password