Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AddressBook/addressbook_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
46 changes: 44 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,50 @@
# Basic-Python-Project
List of Simple Applications using Python

<strong>To run Hangman Game</strong><br>
<strong>Programs Prerequisite</strong><br>
Add this following command:
```
pip install pyfiglet
pip install pyfiglet (For Hangman)
pip install pyperclip (For Password Gen)
```
<strong>Running the Hangman Game</strong>
```
cd Hangman/
python hangman.py
```
<i>Note: should include the candidate_words.txt upon running the app</i>

<strong>Running the Cipher App</strong>
```
cd EncryptionProgram/
python cipher_app.py
```

<strong>Running the Password Generator</strong>
```
cd PasswordGenerator/
python password_generator_app.py
```
<strong>Prerequisite for Addressbook</strong>
```
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
```
<strong>Running the Addressbook</strong>
```
cd AddressBook/
python address_book_app.py
```