A simple Python-based contact management system that interacts with a PostgreSQL database to create, update, retrieve, and delete contact information.
- Create Contact: Add a new contact to the database with name, phone number, email, and address.
- View Contacts: Retrieve all contacts stored in the database.
- Update Contact: Modify an existing contact's details.
- Delete Contact: Remove a contact from the database.
- Python 3.x
- PostgreSQL
To run the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/LeonByte/contact-manager.git
-
Install the required Python packages:
pip install -r requirements.txt
-
Set up the PostgreSQL database:
- Create a PostgreSQL database (e.g.,
contacts_db
). - Update the connection details in the code (e.g., username, password) to match your PostgreSQL setup.
- Create a PostgreSQL database (e.g.,
-
Run the application:
python index.py
Once the project is running, you can interact with it through the command-line interface. The available options are:
- 1: Create a new contact.
- 2: Show all contacts.
- 3: Update an existing contact.
- 4: Remove a contact.
- 5: Quit the application.
Feel free to fork the repository and submit pull requests for bug fixes, improvements, or new features.
This project is licensed under the MIT License - see the LICENSE file for details.