Welcome to the Address Book (Contacts) CLI page.
This page contains a brief description and implementation instructions for the project.
Project Description
A simple contacts manager. Allows the user to add, view, search, and delete contacts with name, phone number, and email. Data is stored (e.g. in a JSON or CSV file) for persistence.
Project Requirements
Python 3.x (built-in csv
or json
modules).
How to Run the Project
- Write a script (e.g.
contacts.py
) that maintains a list/dictionary of contacts and saves them tocontacts.json
. - Run it:
python contacts.py
. The menu lets you “Add Contact”, “List Contacts”, “Search by name”, etc. The file is updated accordingly.
Key Concepts Learned
- Data Storage: Using JSON or CSV for persistent storage.
- CRUD Operations: Creating, reading, updating, deleting records in code.
- Searching/Filtering: Looking up contacts by name.
- Input Validation: Ensuring valid phone or email formats (basic).
Possible Extensions
- Encrypt the contact file for security.
- Add more fields (address, birthday) and sort contacts.
- Build a GUI or integrate with a real database.