This repository contains two Python projects that use MySQL for data storage:
- School Portal (
schoolportal.py
) - Library Management System (
library.py
)
A command-line portal for managing student and club information in a school.
- Student and administrator login/signup
- Student details management (add, update, delete, view)
- Club management (add, delete, change incharge, join club)
- Password management for both students and administrators
Run the SQL commands in schoolportal_schema.sql
to create the required database and tables:
mysql -u root -p < schoolportal_schema.sql
- Make sure to update the MySQL connection details in
schoolportal.py
if needed.
A command-line library system for managing books, members, and book issue/return records.
- Add, update, delete, and search books
- Add, update, delete, and search members
- Issue and return books, with fine calculation
- View all records
Run the SQL commands in library_schema.sql
to create the required database and tables:
mysql -u root -p < library_schema.sql
- Make sure to update the MySQL connection details in
library.py
if needed.
- Python 3.x
- MySQL Server
mysql-connector-python
package
Install the required Python package:
pip install mysql-connector-python
- Set up the databases by running the provided
.sql
files in your MySQL client. - Update the MySQL credentials in the Python scripts if necessary.
- Run the desired script:
- For the school portal:
python schoolportal.py
- For the library system:
python library.py
- For the school portal:
- All data is stored in MySQL databases (
schoolportal
andlibrary
). - These are console-based applications intended for educational/demo purposes.
- Make sure your MySQL server is running before starting the applications.
This project is for educational use. Feel free to modify and use as needed.