diff --git a/AddressBook/addressbook_db.py b/AddressBook/addressbook_db.py index 8f5cb6c..a8ba3e7 100644 --- a/AddressBook/addressbook_db.py +++ b/AddressBook/addressbook_db.py @@ -3,7 +3,7 @@ class AddressBookDB(): def __init__(self): - self.connection = self.create_connection('localhost', 'root', '$gameDeveloper97', 'basic_db') + self.connection = self.create_connection('localhost', 'root', '****', 'basic_db') select_last_record = "select ID from address_book order by id desc limit 1" last_record = self.execute_read_query(select_last_record) diff --git a/README.md b/README.md index b9125ff..cc9620b 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,50 @@ # Basic-Python-Project List of Simple Applications using Python -To run Hangman Game
+Programs Prerequisite
Add this following command: ``` -pip install pyfiglet +pip install pyfiglet (For Hangman) +pip install pyperclip (For Password Gen) +``` +Running the Hangman Game +``` +cd Hangman/ +python hangman.py +``` +Note: should include the candidate_words.txt upon running the app + +Running the Cipher App +``` +cd EncryptionProgram/ +python cipher_app.py +``` + +Running the Password Generator +``` +cd PasswordGenerator/ +python password_generator_app.py +``` +Prerequisite for Addressbook +``` +SQL Knowledge for setting up +(1) Must have Mysql +(2) Required Table: +|__Fields____ |_____Type___ | +|ID |int | +|firstName |varchar(255) | +|middleInitial|varchar(2) | +|lastName |varchar(255) | +|address |varchar(255) | + +(3) Change the credential under +./AddressBook/address_book_db.py +locate Class AddressBookDB() +locate __init__ function +change the root password (****) to your appropriate password +``` +Running the Addressbook +``` +cd AddressBook/ +python address_book_app.py ```