aboutsummaryrefslogtreecommitdiff
path: root/account.py
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-11-06 21:52:32 -0600
committerChristian Cleberg <hello@cleberg.net>2024-11-06 21:52:32 -0600
commitc7e5d9fbec9418d856be961358e35f603bbbf523 (patch)
tree1aa2bbdd0bf96d7037537c2d6f5a989c19be8ffd /account.py
parente5d61719e201a1c25e9907bd220bfcac4fc9a4f5 (diff)
downloadyoshi-cli-c7e5d9fbec9418d856be961358e35f603bbbf523.tar.gz
yoshi-cli-c7e5d9fbec9418d856be961358e35f603bbbf523.tar.bz2
yoshi-cli-c7e5d9fbec9418d856be961358e35f603bbbf523.zip
configure as pypi hosted app
Diffstat (limited to 'account.py')
-rw-r--r--account.py43
1 files changed, 0 insertions, 43 deletions
diff --git a/account.py b/account.py
deleted file mode 100644
index 79fcc13..0000000
--- a/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