From 6dde4dd0bc5e5f91f89587c75a30c9ef7a24494c Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 6 Nov 2024 23:23:27 -0600 Subject: package as a cli app --- src/account.py | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 src/account.py (limited to 'src/account.py') diff --git a/src/account.py b/src/account.py deleted file mode 100644 index 79fcc13..0000000 --- a/src/account.py +++ /dev/null @@ -1,43 +0,0 @@ -""" -This script imports necessary modules for database interactions. - -Modules imported: - - database: A custom module providing database functionality. -""" - -import database - - -class Account: - """Represents a login account.""" - - def __init__(self, uuid: str, application: str, #pylint: disable=R0913,R0917 - username: str, #pylint: disable=R0913,R0917 - password: str, url: str) -> None: #pylint: disable=R0913,R0917 - self.uuid = uuid - self.application = application - self.username = username - self.password = password - self.url = url - - def display_account(self) -> None: - """Print the account details.""" - print('ID:', self.uuid) - print('Application:', self.application) - print('Username:', self.username) - print('Password:', self.password) - print('URL:', self.url) - - def save_account(self) -> None: - """Save the account details to the database.""" - database.add_account( - self.uuid, self.application, self.username, self.password, self.url) - - def delete_account(self) -> bool: - """Delete the account from the database. - - Returns: - bool: True if the deletion was successful. - """ - database.delete_account(self.uuid) - return True -- cgit v1.2.3-70-g09d2