A Python-based contact management application with GUI and MySQL database integration.
- Add, edit, search and delete contacts
- View all contacts in a list
- Store contact details (name, address, phone, email)
- User-friendly Tkinter interface
- MySQL database backend
- Python 3.x
- MySQL Server
- Libraries: mysql-connector-python, tkinter
- Install dependencies:
pip install mysql-connector-python
- Create MySQL database:
CREATE DATABASE your_database;
- Update MySQL credentials in
contactbook.py
:
my = sql.connect(
host="localhost",
user="root",
password="your_password",
database="your_database"
)
- Run the application:
python contactbook.py
CREATE TABLE contactbook (
fname varchar(50) primary key,
lname varchar(50),
address varchar(100),
number numeric(12) primary key,
email varchar(20)
);
Contributions welcome! Feel free to:
- Report issues
- Submit pull requests
- Suggest improvements
Open source software. Use and modify freely.