Final project for Python Programming: Foundations and Best Practices 2.0
A terminal application that allows users to create, read, update, and delete contacts. Users can also view all contacts, view contact by name, and search for contacts by keyword. Also implemented opportunity to save notes separate from contacts. User can save, edit, delete and search note by title. Also added opportunity to add tags to any note, delete tag and find note by tag.
- Clone the repository
- Create a virtual environment in the project directory: python -m venv .venv
- Activate the virtual environment: source .venv/bin/activate
- Install the required packages: pip install -r requirements.txt
- Run the application: python main.py
Write a command in the terminal to interact with the application User can use the next commands:
add <name> <phone>to add a new contactadd_birthday <name> <date>to add a birthday to a contactadd_address <name> <street> <city> <postal_code> <country>to add an address to a contactedit_address <name> <street> <city> <postal_code> <country>to edit an address for a contactadd_email <name> <email>to add an email to a contactedit_email <name> <oldEmail> <newEmail>to edit an email for a contactremove_email <name> <email>to remove an email from a contactshow_contact <name>to show contactfind_contacts <query1> <queryN>to find contacts by multiple queriesshow_birthday <name>to show birthday for a contactbirthdays <days>to show the upcoming birthdays in the next days, default days is7change <name> <oldPhone> <newPhone>to change the phone number of a contactphone <name>to show the phone numbers of a contactallto show all contactsdeleteto delete contactdelete_allto delete all contactsdelete_address <name>to delete addressdelete_note <title>to delete a noteadd-note <title> <text>to add a notefind-note <title>to find a note by titleedit_note <title> <text>to edit a noteshow_notes- to show all notes that were savedadd_tags- to add many tags to noteremove_tags- to remove tags from notefind_by_tags- to show notes with mentioned tagshelpto show the help messageexitto exit the applicationcloseto close the application
User can use check dialogs to select the action or exit.