A simple command-line contact management system implemented in Python.
- Add contacts
- Search contacts by name
- Update contact information
- Delete contacts
- Display all contacts alphabetically
- Python 3.x installed
- pip (Python package installer)
-
Clone the repository or download the ZIP file.
git clone https://github.com/vbvsk/Techplement.git
or download the ZIP file from the GitHub repository.
-
Navigate to the project directory.
cd Techplement/week1-tasks -
Install the required dependencies.
pip install -r requirements.txt
This command will install the
prettytablelibrary, which is used for displaying contacts in a table format.
-
Run the contact management system script.
python task1.py
or
python3 task1.py
-
Follow the on-screen menu to perform various operations:
- Add Contact: Enter 1 and provide the required information.
- Search Contact: Enter 2 and input the name to search.
- Update Contact: Enter 3 and follow the prompts.
- Delete Contact: Enter 4 and input the name to delete.
- Display All Contacts: Enter 5 to view all contacts alphabetically.
- Exit: Enter 6 to exit the program.
-
Ensure that you have Python 3.x installed on your system.
-
If you encounter any issues with missing modules, install them using the
pip installcommand.pip install module_name
-
For this project, you may need to run:
pip install prettytable