A simple library management system with a MySQL database backend and Tkinter GUI.
- View all books in the library
- Add new books to the library
- Edit existing book details
- Delete books from the library
- Search for books by title, author, or genre
pip install mysql-connector-python
- Make sure MySQL server is installed and running
- Import the database schema using the provided SQL script:
mysql -u root -p < schema.sql
Or manually run the SQL commands in the schema.sql
file.
Edit the config.ini
file to match your MySQL database settings:
[database]
host = localhost
user = your_username
password = your_password
database = librarydb
python library_app.py
or use the new version with more features:
python library_app_new.py
library_app.py
- Original Tkinter GUI applicationlibrary_app_new.py
- Enhanced version with additional featuresdatabase.py
- Database connection and operations moduleschema.sql
- SQL script to create database tables and sample dataconfig.ini
- Database connection configurationrequirements.txt
- Python dependencies